mikejohnson51 / climateR

An R 📦 for getting point and gridded climate data by AOI
https://mikejohnson51.github.io/climateR/
MIT License
168 stars 40 forks source link

Dealing with GridMet Palmer Index #34

Closed mikejohnson51 closed 3 years ago

mikejohnson51 commented 3 years ago

Following up on some requests and issues (#33, #32, #7) will the Palmer Index (gridmet) we will try to solve it once and for all.

The confusion is with the appropriate timestep of the data stored. While most gridmet variables are daily, palmer is not. The gridMet webpage suggests it is a 10-day product, while the Thredds server suggests it is a five-day value (pentad), while the variable name within the CDM is "daily_mean_palmer_drought_severity_index".

It appears that the data is pentad, so the function needs to adopt in such a way that requests for palmer return pentad data.

mikejohnson51 commented 3 years ago

Fixed with a6dc1b72480a5988f27fad493d994fad732174fd