convert_to_netcdf_compatible#
- eoio.utils.read_utils.convert_to_netcdf_compatible(attr: Any) Any[source]#
Converts an attribute to a NetCDF-compatible type.
Deprecated since version Use:
eoio.serialisation.encode_attrs()instead. Note that this function reportsboolas already compatible, which the netCDF4 backend rejects.- Parameters:
attr – The attribute to check and convert.
- Returns:
A NetCDF-compatible version of the attribute.