prismdata.core¶
Module Contents¶
Functions¶
|
Downloads PRISM data within a specified time range and frequency. |
- prismdata.core.download_prism(start: str = None, end: str | None = None, variable: str = None, freq: str | None = 'daily', download_dir: str | None = None, unzip: bool | None = True, remove_zip: bool | None = True) None¶
Downloads PRISM data within a specified time range and frequency.
- Args:
start (str): The start date of the data range in ‘YYYYMMDD’ | ‘YYYYMM’ | ‘YYYY’ format. Defaults to None.
end (str, optional): The end date of the data range in ‘YYYYMMDD’ | ‘YYYYMM’ | ‘YYYY’ format. Defaults to None.
variable (str): The PRISM variable to be downloaded. Options are: “ppt”, “tmin”, “tmax”, “tmean”, “tdmean”, “vpdmin” and “vpdmax”.
freq (str, optional): The frequency of the data to be downloaded. Options: daily, monthly and annual. Defaults to “daily”.
download_dir (str, optional): The directory where the downloaded data will be saved. Defaults to “data” under current directory.
unzip (bool, optional): If True, the downloaded zip files will be unzipped. Defaults to True.
remove_zip (bool, optional): If True, the downloaded zip files will be removed. Defaults to True.