NetCDF attributes like long_name
and units
lost on .mean()
· Issue #442 · pydata/xarray (original) (raw)
When reading in a variable from netCDF, the standard attributes like long_name
, standard_name
, and units
are being propagated, but apparently lost when calling .load()
.mean()
on the DataArray
.
Couldn't these CF-Highly Recommended Variable Attributes be kept during this operation?
(What to do with them afterwards, e.g. upon merge, is a different question, unresolved also in the pandas community.)
EDIT: the problem actually occurs when calling .mean()
(not .load()
, as originally posted).