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

Scripts to process return period datasets #6

Closed corviday closed 4 years ago

corviday commented 5 years ago

The return period netCDFs are generated with the variable named rp.5, rp.20, or rp.50, depending on the return period. These variable names aren't very informative for climate explorer users, since a user selecting rp.20 doesn't know if they're going to see a 20 year precipitation, maximum temperature, or minimum temperature event.

This script checks the attributes of each netCDF variable and renames the variables something like rp5tasmax, rp20tasmin, or rp50pr to make the contents of each dataset clearer to users.