pacificclimate / data-prep-actions

Data Preparation actions - record of ephemera used to prepare data for PCIC data portals and other tools
0 stars 0 forks source link

Update frost free days script to handle non-annual data #33

Closed corviday closed 4 years ago

corviday commented 4 years ago

Previously the frost free days script always calculated frost free days by subtracting the number of frost days from 365, which only worked for annual datasets. This change allows calculating frost free days for monthly and seasonal datasets as well.

It is intended to be run on climatologies, so the effects of leap years are ignored, though it does have separate handling for datasets with a 360 day calendar.