NC Forecast Extract Point To Weather Data Model
ECMWFExtractPointToWeatherDataModel
Bases: ECMWFExtractBaseToWeatherDataModel
Extract a single point from a local .nc file downloaded from ECMWF via MARS
Parameters:
Name | Type | Description | Default |
---|---|---|---|
lat |
float
|
Latitude of point to extract |
required |
lon |
float
|
Longitude of point to extract |
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_extractpoint_to_weather_data_model.py
20 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 |
|