Application Programming Interface (API) Reference¶
Full program as executed from CLI¶
|
Perform end-to-end model-to-observational co-location. |
Core functions¶
Data input and compliance¶
TODO. |
|
|
Read in all observational input data. |
|
Read in all model input data. |
|
Return the field(s) of interest from the input dataset. |
|
Return a model field with arbitrary computed vertical coordinates. |
Return a model field with computed vertical coordinate of altitude. |
|
Return a model field with computed 'air_pressure' vertical coordinate. |
|
|
Ensure the chosen field is CF compliant with the correct format. |
|
TODO |
|
Ensure the chosen fields have consistent units and calendars. |
|
Replace observational time data with those starting from a new value. |
|
Return the relevant time coordinates from the fields. |
Co-location and bounding¶
|
Perform model-to-observational colocation using a single file source. |
|
Apply a custom query to get the bounding box. |
Extract only relevant data in the model field via a 4D subspace. |
|
|
Interpolate the flight path spatially (3D for X-Y and vertical Z). |
|
TODO. |
|
Interpolate the flight path temporally (in time T). |
Data output¶
Create a compressed contiguous ragged array DSG output. |
|
|
Write out the 4D (XYZT) colocated result as output data. |
Helper¶
Instances of the Logger class represent a single logging channel. |
|
|
A decorator to measure and report function execution time. |
Provide an optional report of environment and diagnostics. |
Performance¶
|
Persist all of the metadata for a field. |
Custom exceptions¶
Raised for cases of errors caused by lack of CF Compliance. |
|
Raised for cases of incompatibility between the Model and Obs inputs. |
|
Raised for cases of failure to read appropriate data input file(s). |
|
Raised for cases of configuration values being invalid or unsuitable. |
|
Raised for cases of the toolkit behaviour emerging wrong. |
Plotting¶
|
Generate plots of the flight track for a pre-colocation preview. |
|
Generate a post-colocation result plot of the track(s) or swath(s). |
|
Generate plots of the flight track for a pre-colocation preview. |
|
Generate a post-colocation result plot of the track(s) or swath(s). |
Command-line parsing¶
|
Configure the package log level assuming CLI counted '-v' flag input. |
|
Parse and process all command-line arguments. |
Process all configuration, from CLI, file or a default if neither set. |
|
|
TODO |
|
Process a configuration file. |
Default values¶
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2). |
Plugins¶
For Satellite observational data¶
|
Pre-processing of a field from a satellite swath. |
|
The converter. |
For WRF Data¶
|
Extra CF compliance fixes for WRF data. |
|
More CF compliance fixes for WRF data. |