Skip to content

netCDF conversion issue #218

@tylere

Description

@tylere

Discussed in #143

Originally posted by daviddkovacs February 15, 2024
Hi all,

I have successfully retrieved my dataset of interest in xarray.Dataset format, however I would like to export it to process it further locally. My isssue is that when I try to use the dataset.to_netcdf() function, I get the following error:

ValueError                                Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/xarray/backends/api.py](https://localhost:8080/#) in to_netcdf(dataset, path_or_file, mode, format, group, engine, encoding, unlimited_dims, compute, multifile, invalid_netcdf)
   1257         if isinstance(target, BytesIO):
-> 1258             store.sync()
   1259             return target.getvalue()

14 frames
ValueError: 1337 is not in list

During handling of the above exception, another exception occurred:

ValueError                                Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/scipy/io/_netcdf.py](https://localhost:8080/#) in _write_var_metadata(self, name)
    479         self._pack_int(len(var.dimensions))
    480         for dimname in var.dimensions:
--> 481             dimid = self._dims.index(dimname)
    482             self._pack_int(dimid)
    483 

ValueError: 1337 is not in list

Any help would be appreciated
Untitled

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions