es_sfgtools.workflows.pipelines.plotting module

es_sfgtools.workflows.pipelines.plotting.get_rinex_timelast(rinex_asset: AssetEntry) datetime

Gets the last timestamp from a RINEX file.

Parameters:

rinex_asset (AssetEntry) – The RINEX asset entry.

Returns:

The last timestamp in the RINEX file.

Return type:

datetime.datetime

es_sfgtools.workflows.pipelines.plotting.plot_kin_position_data(kin_position_data: TDBKinPositionArray, rinex_entries: List[AssetEntry] = []) 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: 1. Extracts unique dates from the KinPosition data. 2. Organizes the dates by year and month. 3. Creates a subplot for each unique month. 4. Reads the KinPosition data for the date range of each month. 5. Plots the KinPosition data points as scatter plots. 6. Adds vertical lines to indicate daily and hourly markers. 7. Formats the x-axis with hourly ticks and rotates the labels for better

readability.

  1. Sets the title for each subplot to indicate the date range of the data.

  2. Adjusts the layout and displays the plot.

Parameters:
  • kin_position_data (TDBKinPositionArray) – An object containing KinPosition data with methods to retrieve unique dates and read data frames.

  • rinex_entries (List[AssetEntry], optional) – A list of RINEX asset entries, by default [].

es_sfgtools.workflows.pipelines.plotting.to_timestamp(time: datetime64 | datetime) float

Converts a numpy.datetime64 or datetime.datetime object to a UNIX timestamp.

Parameters:

time (np.datetime64 | datetime.datetime) – The time to convert.

Returns:

The UNIX timestamp.

Return type:

float