I am generating an xcube using the xcube-sh library. I am getting the data from a BYOC collection, therefore setting dataset_name to CUSTOM and specifying a collection_id.
The cube generated this way contains attributes, including processing_level that is set to None by default.
When trying to save my cube:
mycube.to_zarr("./example_data/mycube.zarr")
the following error arises:
TypeError: Invalid value for attr 'processing_level': None must be a number, a string, an ndarray or a list/tuple of numbers/strings for serialization to netCDF files
I found that setting the processing_level to 0 solves the problem, but feel that this should be taken care of by default.
I am generating an
xcube
using thexcube-sh
library. I am getting the data from a BYOC collection, therefore settingdataset_name
toCUSTOM
and specifying acollection_id
.The cube generated this way contains attributes, including
processing_level
that is set toNone
by default.When trying to save my cube:
mycube.to_zarr("./example_data/mycube.zarr")
the following error arises:
I found that setting the
processing_level
to 0 solves the problem, but feel that this should be taken care of by default.