Debug the NetCDF issue
From the log:
Traceback (most recent call last):
File "/var/spool/slurmd/job1145500/slurm_script", line 8, in <module>
sys.exit(main())
File "/linkhome/rech/genlmd01/uql95ey/.local/lib/python3.10/site-packages/datarigueur/entrypoint.py", line 24, in main
args.func(args)
File "/linkhome/rech/genlmd01/uql95ey/.local/lib/python3.10/site-packages/datarigueur/preparation.py", line 87, in prepare_dataset
write_job = dataset_time.to_netcdf(args.output_dataset, compute=False)
File "/linkhome/rech/genlmd01/uql95ey/.local/lib/python3.10/site-packages/xarray/core/dataset.py", line 1917, in to_netcdf
return to_netcdf( # type: ignore # mypy cannot resolve the overloads:(
File "/linkhome/rech/genlmd01/uql95ey/.local/lib/python3.10/site-packages/xarray/backends/api.py", line 1216, in to_netcdf
dump_to_store(
File "/linkhome/rech/genlmd01/uql95ey/.local/lib/python3.10/site-packages/xarray/backends/api.py", line 1263, in dump_to_store
store.store(variables, attrs, check_encoding, writer, unlimited_dims=unlimited_dims)
File "/linkhome/rech/genlmd01/uql95ey/.local/lib/python3.10/site-packages/xarray/backends/common.py", line 273, in store
self.set_variables(
File "/linkhome/rech/genlmd01/uql95ey/.local/lib/python3.10/site-packages/xarray/backends/common.py", line 311, in set_variables
target, source = self.prepare_variable(
File "/linkhome/rech/genlmd01/uql95ey/.local/lib/python3.10/site-packages/xarray/backends/netCDF4_.py", line 495, in prepare_variable
nc4_var = self.ds.createVariable(
File "src/netCDF4/_netCDF4.pyx", line 2748, in netCDF4._netCDF4.Dataset.createVariable
File "src/netCDF4/_netCDF4.pyx", line 3858, in netCDF4._netCDF4.Variable.__init__
File "src/netCDF4/_netCDF4.pyx", line 1927, in netCDF4._netCDF4._ensure_nc_success
RuntimeError: NetCDF: Invalid argument