download_sim2#
- download_sim2.download_sim2(dst_folder, variables=None, start_date=None, end_date=None, mask=None, extension='.nc', target_crs=4326)[source]#
Download SIM2 reanalysis data from meteo.data.gouv.fr.
Parameters#
- dst_folderstr or pathlib.Path
Output directory.
- variablesstr, list of str, or None
Variables to download. Accepts names with or without ‘_Q’ suffix. If None, all variables are downloaded.
- start_datestr, int, or datetime-like, optional
Start of the period (default: 1958).
- end_datestr, int, or datetime-like, optional
End of the period (default: yesterday).
- maskstr, pathlib.Path, or gpd.GeoDataFrame, optional
Spatial mask for clipping.
- extensionstr
Output format (‘.nc’ or ‘.csv’). Default ‘.nc’.
- target_crsint, str, or None, default 4326
Output CRS for NetCDF files. Default WGS84. Pass 27572 to keep the SIM2 native Lambert II étendu grid, or None to skip reprojection. Ignored for the CSV path.
Returns#
- dict
Mapping of variable name -> output file path.