earthscope_sfg_workflows.pipelines.plotting
Pipeline result plotting utilities for campaign diagnostics.
get_rinex_timelast(rinex_asset: earthscope_sfg_workflows.data_mgmt.model.AssetEntry) -> datetime.datetime¶
Gets the last timestamp from a RINEX file.
Parameters¶
rinex_asset The RINEX asset entry.
Returns¶
datetime.datetime The last timestamp in the RINEX file.
plot_kin_position_data(kin_position_data: earthscope_sfg_tools.tiledb_integration.arrays.TDBKinPositionArray, rinex_entries: list[earthscope_sfg_workflows.data_mgmt.model.AssetEntry] = None) -> None¶
Plots KinPosition data over time. This function plots KinPosition data over time, with each subplot representing a unique month of data.
The function performs the following steps:
Extracts unique dates from the KinPosition data.
Organizes the dates by year and month.
Creates a subplot for each unique month.
Reads the KinPosition data for the date range of each month.
Plots the KinPosition data points as scatter plots.
Adds vertical lines to indicate daily and hourly markers.
Formats the x-axis with hourly ticks and rotates the labels for better readability.
Sets the title for each subplot to indicate the date range of the data.
Adjusts the layout and displays the plot.
Parameters¶
kin_position_data An object containing KinPosition data with methods to retrieve unique dates and read data frames. rinex_entries A list of RINEX asset entries, by default [].
to_timestamp(time: numpy.datetime64 | datetime.datetime) -> float¶
Converts a numpy.datetime64 or datetime.datetime object to a UNIX timestamp.
Parameters¶
time The time to convert.
Returns¶
float The UNIX timestamp.