Skip to content

Commit

Permalink
Correct unlimited dimension in netCDF export
Browse files Browse the repository at this point in the history
Correct the unlimited dimension from "time" to "time_counter" when exporting
to netCDF in make_CHS_currents_file.py.
  • Loading branch information
douglatornell committed Sep 2, 2024
1 parent d9f7433 commit 0681d0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nowcast/workers/make_CHS_currents_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def _write_netcdf(src_dir, urot5, vrot5, urot10, vrot10, run_type):
}

filename = src_dir / "CHS_currents.nc"
myds.to_netcdf(filename, encoding=encoding, unlimited_dims=("time",))
myds.to_netcdf(filename, encoding=encoding, unlimited_dims=("time_counter",))

logger.debug(f"{run_type}: netcdf file written: {filename}")

Expand Down

0 comments on commit 0681d0f

Please sign in to comment.