pvcompare.era5.get_era5_data_from_datespan_and_position¶
- pvcompare.era5.get_era5_data_from_datespan_and_position(start_date, end_date, variable='pvcompare', latitude=None, longitude=None, grid=None, target_file=None, chunks=None, cds_client=None)[source]¶
Send request for era5 data to the Climate Data Store (CDS)
- Parameters
variable ((str or list of str) ERA5 variables to download. If you) – want to download all variables necessary to use the pvlib, set variable to ‘pvlib’. If you want to download all variables necessary to use the windpowerlib, set variable to ‘windpowerlib’. To download both variable sets for pvlib and windpowerlib, set variable to ‘feedinlib’.
start_date (str) – start date of the date span in YYYY-MM-DD format
end_date (str) – end date of the date span in YYYY-MM-DD format
latitude (number) – latitude in the range [-90, 90] relative to the equator, north corresponds to positive latitude.
longitude (number) – longitude in the range [-180, 180] relative to Greenwich Meridian, east relative to the meridian corresponds to positive longitude.
grid (list of float) –
- provide the latitude and longitude grid resolutions in deg. It needs to
be an integer fraction of 90 deg.
target_file (str) – name of the file in which to store downloaded data locally
chunks (dict) –
cds_client (handle to CDS client (if none is provided, then it is created)) –
- Returns
- Return type
CDS data in an xarray format