RDPS_astro module
Handles parsing and caching of RDPS astronomy model grids (seeing and transparency).
- class RDPS_astro.RDPS_astro(forecast_dir)
Bases:
object
Class to handle parsing and caching of RDPS astronomy model grids (seeing and transparency).
- forecast_dir
directory to cache forecast grids
- Type:
str
- get_latest_RDPS_astro()
Get latest RDPS run for astronomy parameters (seeing, transparency). This will download the most recent model run if not already cached. Data are loaded into xarray datasets self.seeing_ds and self.trsp_ds.
- parse_grib_ds(ds)
Parse grib2 dataset in xarray from the RDPS astro model. Calculates time from model start time and timestep, and converts longitude from (0, 360) to (-180, +180) range
- Parameters:
ds (xarray.Dataset) – xarray dataset from RDPS atro model
- Returns:
parsed xarray dataset
- Return type:
ds (xarray.Dataset)