era5
canari_ml.download.era5
¶
canari_ml.download.era5.logger = logging.getLogger(__name__)
module-attribute
¶
canari_ml.download.era5.download_daily(var_names, var_levels, start_dates, end_dates, hemisphere, frequency, output_group_by, config_path, overwrite, delete_cache, cache_only, compress=0, workers=1)
¶
Download ERA5 daily reanalysis dataset from AWS S3 using download-toolbox.
Processes configuration settings and downloads daily ERA5 data for the specified variables, pressure levels, and date range.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
var_names
|
list[str]
|
List of ERA5 variables to download |
required |
var_levels
|
list[int]
|
Corresponding list of pressure levels for the variables |
required |
start_dates
|
list[str] | str
|
Start dates in "YYYY-MM-DD" format |
required |
end_dates
|
list[str] | str
|
End dates in "YYYY-MM-DD" format, matching length with start_dates |
required |
hemisphere
|
str
|
Either "north" or "south" |
required |
frequency
|
str
|
Temporal resolution of data (e.g., "daily") |
required |
output_group_by
|
str
|
Grouping frequency for output files |
required |
config_path
|
str
|
Path to save configuration file |
required |
overwrite
|
bool
|
Whether to overwrite existing files |
required |
delete_cache
|
bool
|
Delete temporary cache files after download |
required |
cache_only
|
bool
|
Only use cached files, no download |
required |
compress
|
optional
|
Compression level (0-9) Defaults to 0. |
0
|
workers
|
optional
|
Number of download workers. Defaults to 1. |
1
|