metobs_toolkit.Modeldata.get_ERA5_data#
- Modeldata.get_ERA5_data(metadf, startdt_utc, enddt_utc, obstypes='temp')[source]#
Extract timeseries of the ERA5_hourly dataset.
The units are converted to the toolkit standard units.
- (This method is a specific ERA5_hourly wrapper on the
get_gee_dataset_data() method)
- Parameters:
metadf (pandas.DataFrame) – A dataframe with a ‘name’ index and ‘lat’, ‘lon’ columns. Timeseries are extracted for these locations.
startdt_utc (datetime.datetime) – Start datetime of the timeseries in UTC.
enddt_utc (datetime.datetime) – Last datetime of the timeseries in UTC.
obstypes (str or list of str, optional) – Toolkit observation type to extract data from. There should be a bandname mapped to this obstype for the gee map. Multiple observation types can be extracted if given as a list. The default is ‘temp’.
- Return type:
None.
Note
When extracting large amounts of data, the timeseries data will be written to a file and saved on your google drive. In this case, you need to provide the Modeldata with the data using the .set_model_from_csv() method.