pydda.constraints.download_needed_era_data#

pydda.constraints.download_needed_era_data(Grid, start_date, end_date, file_name)[source]#

Written by: Hamid Ali Syed (@syedhamidali), and Bobby Jackson. This function will download the ERA-5 data in the region specified by the input Py-ART Grid within the interval specified by start_date and end_date. This is useful for the batch processing of files since the CDS-API is limited to 20 queued requests at a time. This is also useful if you want to store ERA5 data for future use without having to download it again.

You need to have the ERA5 CDSAPI and an CDS Copernicus account set up in order to use this feature. Go to this website for instructions on installing the API and setting up your account:

https://cds.climate.copernicus.eu/api-how-to

Parameters:
  • Grid – Py-ART Grid The input Py-ART Grid to modify.

  • start_date – datetime.datetime The start date of the data to download.

  • end_date – datetime.datetime The end date of the data to download.

  • file_name – str The name of the destination file.

Returns:

None