TIMED SABER has an extra variable for time, for use with the tpaltitude profiles. This means that 'Epoch' will not be renamed 'time', breaking the new expand_dims code in pysat 3.1.0.
BONUS BUG: when multiple xarray files are combined via xr.combine_nested, the attrs for each variable are dropped, meaning that meta is not set for each variable.
Renames the profile time variable as 'tp_time', fixing the bug.
xr.combine_nested now uses the kwarg combine_attrs='override' to use the attrs from the first file.
Uses the kwarg use_cdflib=True for xarray objects to suppress warning message. pysatCDF does not currently support xarray, so this can be hard wired
Type of change
Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
Loading a day of data and inspecting the metadata.
Description
Addresses #174
TIMED SABER has an extra variable for time, for use with the tpaltitude profiles. This means that 'Epoch' will not be renamed 'time', breaking the new expand_dims code in pysat 3.1.0.
BONUS BUG: when multiple xarray files are combined via
xr.combine_nested
, the attrs for each variable are dropped, meaning that meta is not set for each variable.xr.combine_nested
now uses the kwargcombine_attrs='override'
to use the attrs from the first file.use_cdflib=True
for xarray objects to suppress warning message. pysatCDF does not currently support xarray, so this can be hard wiredType of change
How Has This Been Tested?
Loading a day of data and inspecting the metadata.
Test Configuration
Checklist:
develop
(notmain
) branchCHANGELOG.md
, summarizing the changes