earthlab / cft

Climate futures toolbox: easy MACA (MACAv2) climate data access 📦
https://www.earthdatascience.org/cft/index.html
25 stars 6 forks source link

Explicit attributes #24

Closed WilliamsTravis closed 4 years ago

WilliamsTravis commented 4 years ago

Make sure all space-time dimensions are set explicitly in each data set. The lack of an explicit date-time attribute can be problematic for many applications.

WilliamsTravis commented 4 years ago

To set the time dimension requires one extra step in retrieve_subset in subsetting.R. Typically, we set this to the number of days since a baseline. If 'ds' is the xarray data set, I believe ds$assign_coords(time=) should do it.