E3SM-Project / e3sm_to_cmip

Tools to CMORize E3SM output
https://e3sm-to-cmip.readthedocs.io/en/latest/
MIT License
7 stars 7 forks source link

Explicitly close `xr.Dataset` in `VarHandler.cmorize()` #244

Closed tomvothecoder closed 9 months ago

tomvothecoder commented 9 months ago

Description

By explicitly closing the multi-file xr.Dataset object, we avoid any possibility of resource locking with .nc files

This is an attempted fix for https://github.com/E3SM-Project/zppy/issues/549.

Checklist

If applicable: