download_fr.sim2#
- download_fr.sim2(*, dst_folder: str, var_list=None, first_year: int = None, last_year: int = None, extension='.nc', mask=None)[source]#
Depuis le 13/12/2023 ces données sont en accès ouvert sur https://meteo.data.gouv.fr (onglet “Données climatologiques de référence pour le changement climatique”, puis “Données changement climatique - SIM quotidienne” : https://meteo.data.gouv.fr/datasets/6569b27598256cc583c917a7 )
Parameters#
- dst_folderstr or pathlib.Path
Path to the output folder containing the clipped SIM2 netCDF files. According to the files already present in this folder, only the necessary complementary files will be downloaded.
- var_listiterable, optional
List of variable names. Works with SIM2 variable names: ‘DRAINC_Q’ | ‘RUNC_Q’ | ‘EVAP_Q’ | ‘PRETOT_Q’ | ‘T_Q’ … The ‘_Q’ is optional (‘DRAINC’, ‘RUNC’… also work).
If None, all variables will be retrieved.
- first_yearint, optional
Data will be extracted from 1st January of first_year to 31st December of last_year. If None, the earliest available date will be considered.
- last_yearint, optional
End date of data to be extracted. If None, the current date of the day will be used instead.
- extension{‘.nc’, ‘.csv’}, default ‘.nc’
Output file type.
- maskstr or pathlib.Path, optional
Shapefile path to indicate how to clip the CSV or netCDF files that will be exported to the
dst_folder
folder. Note: The only purpose of usingmask
at this step is to save space on disk.
Returns#
None. Create or update the netcdf files.