metobs_toolkit.Modeldata.get_gee_dataset_data#

Modeldata.get_gee_dataset_data(mapname, metadf, startdt_utc, enddt_utc, obstypes=['temp'])[source]#

Extract timeseries of a gee dataset.

The extraction can only be done if the gee dataset bandname (and units) corresponding to the obstype is known.

The units are converted to the toolkit standard units!!

Parameters:
  • mapname (str) – Mapname of choice of the GEE dataset to extract data from.

  • 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 strings, optional) – Toolkit observation type to extract data from. There should be a bandname mapped to this obstype for the gee map. Multiple obstypes can be given in 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.