Release notes
This release adds the option to keep netCDF files open after creation. Previously, when calling `create_netcdf.main`, the netCDF file would be closed after it was made, meaning it then had to be opened again in append mode before data could be added. Now, the option has been added to keep the netCDF file open and return the open file from the function, saving the need to re-open the file. The previous method is still the default and is being deprecated, with the new method available using `return_open=True` in the `create_netcdf.main`, `create_netcdf.make_netcdf`, and `create_netcdf.make_product_netcdf` functions. The new method will be the default option in 2.4.0, and the old method removed from 2.5.0.
This led to the need for a deprecation policy, which has been added to the documentation, along with a revision history starting with 2.3.0; this may later be backfilled.
Other highlights include:
- changing supported python versions from 3.7-3.11 to 3.8-3.12
- raising errors (with option to warn instead) when trying to add invalid flag values to quality control variables
- option to use locally saved tsv files
What's Changed
* Changes and updates for 2.3 by joshua-hampton in https://github.com/joshua-hampton/ncas_amof_netcdf_template/pull/107
* use locally saved tsv files https://github.com/joshua-hampton/ncas_amof_netcdf_template/issues/91
* error or warn if adding invalid QC flag data https://github.com/joshua-hampton/ncas_amof_netcdf_template/issues/103
* keep netCDF file open after creation https://github.com/joshua-hampton/ncas_amof_netcdf_template/issues/104
* bug fix that stopped empty QC variables being removed https://github.com/joshua-hampton/ncas_amof_netcdf_template/issues/105
* changes to documentation including addition of new history and deprecation page https://github.com/joshua-hampton/ncas_amof_netcdf_template/issues/106
**Full Changelog**: https://github.com/joshua-hampton/ncas_amof_netcdf_template/compare/2.2.2...2.3.0