Skip to content
Snippets Groups Projects
Commit ff57e71f authored by Shavers, Nicholas H's avatar Shavers, Nicholas H
Browse files

cf convention updated from 1.4 to 1.6

parent 87823bcd
No related branches found
No related tags found
1 merge request!379Netcdf mvp
......@@ -198,7 +198,7 @@ class NetCDFFactory(TimeseriesFactory):
# Create an empty NetCDF structure with minimal CF compliance
with netCDF4.Dataset(fh, "w", format="NETCDF4") as nc_dataset:
nc_dataset.title = "Geomagnetic Time Series Data"
nc_dataset.Conventions = "CF-1.4"
nc_dataset.Conventions = "CF-1.6"
return
timeseries.merge()
......@@ -214,7 +214,7 @@ class NetCDFFactory(TimeseriesFactory):
print("No matching channels found after filtering.")
with netCDF4.Dataset(fh, "w", format="NETCDF4") as nc_dataset:
nc_dataset.title = "Geomagnetic Time Series Data"
nc_dataset.Conventions = "CF-1.4"
nc_dataset.Conventions = "CF-1.6"
return
timeseries.sort(keys=["starttime"])
......@@ -237,7 +237,7 @@ class NetCDFFactory(TimeseriesFactory):
# Create NetCDF dataset with CF conventions
with netCDF4.Dataset(fh, "w", format="NETCDF4") as nc_dataset:
# Define global attributes with CF compliance
nc_dataset.Conventions = "CF-1.4"
nc_dataset.Conventions = "CF-1.6"
nc_dataset.title = "Geomagnetic Time Series Data"
nc_dataset.institution = getattr(stats, "agency_name", "")
# nc_dataset.source = getattr(stats, "source", "")
......
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