NC Forecast Extract Grid To Weather Data Model
ECMWFExtractGridToWeatherDataModel
Bases: ECMWFExtractBaseToWeatherDataModel
Extract a grid from a local .nc file downloaded from ECMWF via MARS
Parameters:
Name | Type | Description | Default |
---|---|---|---|
lat_min |
float
|
Minimum latitude of grid to extract |
required |
lat_max |
float
|
Maximum latitude of grid to extract |
required |
lon_min |
float
|
Minimum longitude of grid to extract |
required |
lon_max |
float
|
Maximum longitude of grid to extract |
required |
grid_step |
float
|
The grid length to use to define the grid, e.g. 0.1. |
required |
load_path |
str
|
Path to local directory with nc files downloaded in format "yyyy-mm-dd_HH.nc" |
required |
date_start |
str
|
Start date of extraction in "YYYY-MM-DD HH:MM:SS" format |
required |
date_end |
str
|
End date of extraction in "YYYY-MM-DD HH:MM:SS" format |
required |
run_frequency |
str
|
Frequency format of runs to download, e.g. "H" |
required |
run_interval |
str
|
Interval of runs, e.g. a run_frequency of "H" and run_interval of "12" will extract the data of the 00 and 12 run for each day. |
required |
utc |
bool
|
Add utc to the datetime indexes? Defaults to True. |
True
|
Source code in src/sdk/python/rtdip_sdk/pipelines/transformers/spark/ecmwf/nc_extractgrid_to_weather_data_model.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
|