Download

cloudcasting.download.download_satellite_data(start_date: ~typing.Annotated[str, <typer.models.ArgumentInfo object at 0x7f349c69d550>], end_date: ~typing.Annotated[str, <typer.models.ArgumentInfo object at 0x7f349e47f990>], output_directory: ~typing.Annotated[str, <typer.models.ArgumentInfo object at 0x7f349e2d4190>], download_frequency: ~typing.Annotated[str, <typer.models.OptionInfo object at 0x7f349e124410>] = '15min', get_hrv: ~typing.Annotated[bool, <typer.models.OptionInfo object at 0x7f349c69d690>] = False, override_date_bounds: ~typing.Annotated[bool, <typer.models.OptionInfo object at 0x7f35887aad90>] = False, lon_min: ~typing.Annotated[float, <typer.models.OptionInfo object at 0x7f35887abfd0>] = -16, lon_max: ~typing.Annotated[float, <typer.models.OptionInfo object at 0x7f349c6a4d10>] = 10, lat_min: ~typing.Annotated[float, <typer.models.OptionInfo object at 0x7f349c6a4e10>] = 45, lat_max: ~typing.Annotated[float, <typer.models.OptionInfo object at 0x7f349c6a4f10>] = 70, test_2022_set: ~typing.Annotated[bool, <typer.models.OptionInfo object at 0x7f349c6a5010>] = False, verify_2023_set: ~typing.Annotated[bool, <typer.models.OptionInfo object at 0x7f349c6a5110>] = False) None

Download a selection of the available EUMETSAT data.

Each calendar year of data within the supplied date range will be saved to a separate file in the output directory.

Parameters:
  • start_date (str) – First datetime (inclusive) to download in ‘YYYY-MM-DD HH:MM’ format

  • end_date (str) – Last datetime (inclusive) to download in ‘YYYY-MM-DD HH:MM’ format

  • output_directory (str) – Directory to which the satellite data should be saved

  • download_frequency (str) – Frequency to download data in pandas datetime format. Defaults to “15min”.

  • get_hrv (bool) – Whether to download the HRV data, otherwise only non-HRV is downloaded. Defaults to False.

  • override_date_bounds (bool) – Whether to override the date range limits

  • lon_min (float) – The west-most longitude (in degrees) of the bounding box to download. Defaults to -16.

  • lon_max (float) – The east-most longitude (in degrees) of the bounding box to download. Defaults to 10.

  • lat_min (float) – The south-most latitude (in degrees) of the bounding box to download. Defaults to 45.

  • lat_max (float) – The north-most latitude (in degrees) of the bounding box to download. Defaults to 70.

  • test_2022_set (bool) – Whether to filter data from 2022 to download the test set (every 2 weeks)

  • verify_2023_set (bool) – Whether to download verification data from 2023. Only used at project end.

Raises:
  • FileNotFoundError – If the output directory doesn’t exist.

  • ValueError – If there are issues with the date range or if output files already exist.