Skip to content
Snippets Groups Projects
Commit 05f9824c authored by Frisinghelli Daniel's avatar Frisinghelli Daniel
Browse files

Rename temporal dimension.

parent 46a5746e
No related branches found
No related tags found
No related merge requests found
...@@ -80,6 +80,9 @@ if __name__ == '__main__': ...@@ -80,6 +80,9 @@ if __name__ == '__main__':
LOGGER.info('Aggregating different years into single file ...') LOGGER.info('Aggregating different years into single file ...')
ds = xr.open_mfdataset(source, parallel=True).compute() ds = xr.open_mfdataset(source, parallel=True).compute()
# rename temporal dimension: from DATE to time
ds = ds.rename({'DATE': 'time'})
# set NetCDF file compression for each variable # set NetCDF file compression for each variable
for _, var in ds.data_vars.items(): for _, var in ds.data_vars.items():
var.encoding['zlib'] = True var.encoding['zlib'] = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment