Skip to content

RuntimeError: NetCDF: Name contains illegal characters #16

Description

@ctroupin

Hello,

not a real bug in beacon yet I think it's worth mentioning: after running seadatanet.ipynb I tried to write the output to a netCDF file, using:

dfa = df.to_xarray()
dfa.to_netcdf("myfile_SDN.nc")

which doesn't work because of this error:

RuntimeError: NetCDF: Name contains illegal characters

Some variables cannot be written to netCDF, for instance those with a name starting with a . (e.g., .csr_platform_code, .instrument___gear_type, ...), so a solution is to rename those variables before writing to the netCDF.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions