Data (rojak.core.data)#
Generic infrastructure for retrieving, loading, and accessing meteorological data
This module provides:
DataRetriever/DataPreprocessor: abstract interfaces for downloading and preprocessing raw meteorological data files.CATPrognosticData/CATData: containers validating and exposing the meteorological fields (e.g., wind, temperature, vorticity, …) required to compute CAT diagnostics, withCATDataadditionally deriving further quantities (potential temperature, velocity derivatives, deformation, ISSR) on demand. These effectively form the interface that every meteorological data source must be adapted into.MetData: an abstract base for a source of meteorological data, handling spatial domain selection and longitude wraparound (shift_longitude()). Each concrete subclass is responsible for adapting its own underlying data into aCATData. This is the extension point of the architecture: new data sources can be added by implementing a newMetDatasubclass, without having to change any of the diagnostic code inrojak.turbulence, which only ever depends on theCATData/CATPrognosticDatainterface.AmdarDataRepository/AmdarTurbulenceData: abstract interfaces for loading AMDAR (Aircraft Meteorological Data Relay) turbulence observations, spatially bucketing them onto a grid, and mapping them to their closest pressure level.
Functions
|
Method to convert a data frame into a GeoDataFrame. |
|
Lazily load and concatenate every file matching |
|
Shift the longitude coordinate to lie within |
Classes
|
Abstract AMDAR data repository interface. |
|
Abstract container for AMDAR turbulence observations, spatially bucketed onto a grid |
|
|
|
Validated container for the raw meteorological fields required to compute CAT diagnostics |
Abstract interface for preprocessing raw data files before they are used |
|
Abstract interface for downloading raw data files for a set of years, months, and days |
|
|
Mapping between a variable's name in the source dataset and its CF standard name |
|
A single calendar date, as used by |
|
Abstract base for a generic source of meteorological data |