API Reference¶
swxsoc Package¶
Functions¶
|
Print the current configuration options. |
swxsoc.swxdata Module¶
Container class for Measurement Data.
Classes¶
|
A generic object for loading, storing, and manipulating space weather time series data. |
swxsoc.util Package¶
Functions¶
|
Creates a new annotation for a specified event or time period, with optional filtering by dashboard and panel names. |
|
Return a compliant filename. |
|
Retrieves the dashboard UID by its name. |
|
Retrieves the panel ID by dashboard UID and panel name. |
|
Parses a science filename into its constituent properties. |
|
Queries annotations within a specific timeframe with optional filters for tags, dashboard, and panel names. |
|
Record a timeseries of measurements to AWS Timestream for viewing on a dashboard like Grafana. |
|
Deletes an annotation by its ID. |
|
Raise a |
|
Raise a |
Classes¶
|
Attribute to specify the data type for the search. |
|
Attribute for specifying whether to search in the DevelopmentBucket for testing purposes. |
|
Attribute for specifying the instrument for the search. |
|
Attribute for specifying the data level for the search. |
A warning class to indicate a deprecated feature. |
|
A warning class to indicate a soon-to-be deprecated feature. |
|
Client for searching for SWXSOC data on AWS. |
|
The primary warning class for SWxSOC. |
|
The base warning class from which all SWX warnings should inherit. |
|
|
Attribute for specifying the time range for the search. |
swxsoc.util.config Module¶
This module provides configuration file functionality.
- This code is based on that provided by SunPy see
licenses/SUNPY.rst
Functions¶
Load and read the configuration file. |
|
|
Copy the default configuration file to the user's configuration directory. |
|
Print the current configuration options. |
swxsoc.util.const Module¶
Various constants defined in cdf.h and used in spacepy.pycdf. Most constants referred to in the CDF manuals are provided by this module.
- This code is based on that provided by SpacePy see
licenses/SPACEPY.rst
swxsoc.util.exceptions Module¶
This module provides errors/exceptions and warnings of general use.
Exceptions that are specific to a given package should not be here, but rather in the particular package.
- This code is based on that provided by SunPy see
licenses/SUNPY.rst
Functions¶
|
Raise a |
|
Raise a |
Classes¶
The base warning class from which all SWX warnings should inherit. |
|
The primary warning class for SWxSOC. |
|
A warning class to indicate a deprecated feature. |
|
A warning class to indicate a soon-to-be deprecated feature. |
swxsoc.util.io Module¶
Classes¶
Abstract base class for handling input/output operations of heliophysics data. |
|
A concrete implementation of SWXIOHandler for handling heliophysics data in CDF format. |
swxsoc.util.logger Module¶
- This code is based on that provided by SunPy and AstroPy see
licenses/SUNPY.rst and licenses/ASTROPY.rst
Functions¶
|
Initializes the log. |
|
Translates a user-provided YAML config dictionary to |
Classes¶
|
This class is used to set up logging. |
swxsoc.util.schema Module¶
This module provides schema metadata derivations.
- This code is based on that provided by SpacePy see
licenses/SPACEPY.rst
Classes¶
|
Class representing a schema for data requirements and formatting. |
swxsoc.util.util Module¶
This module provides general utility functions.
Functions¶
|
Return a compliant filename. |
|
Parses a science filename into its constituent properties. |
|
Record a timeseries of measurements to AWS Timestream for viewing on a dashboard like Grafana. |
|
Retrieves the dashboard UID by its name. |
|
Retrieves the panel ID by dashboard UID and panel name. |
|
Queries annotations within a specific timeframe with optional filters for tags, dashboard, and panel names. |
|
Creates a new annotation for a specified event or time period, with optional filtering by dashboard and panel names. |
|
Deletes an annotation by its ID. |
|
Record a single measurement to an AWS timestream for viewing on a dashboard such as Grafana. |
Classes¶
Client for searching for SWXSOC data on AWS. |
|
|
Attribute for specifying the time range for the search. |
|
Attribute for specifying the data level for the search. |
|
Attribute for specifying the instrument for the search. |
|
Attribute to specify the data type for the search. |
|
Attribute for specifying whether to search in the DevelopmentBucket for testing purposes. |
swxsoc.util.validation Module¶
Functions¶
|
Validate a data file such as a CDF. |
Classes¶
|
Abstract base class for heliophysics data validators. |
|
Validator for CDF files. |