Skip to content

save astropy units in netcdf files #10903

@hafarooki

Description

@hafarooki

Is your feature request related to a problem?

A recent PR made it possible to use astropy Quantities seamlessly with Datasets. However, when writing the dataset to a file with to_netcdf, then loading the netcdf file, the quantities become ndarrays.

Describe the solution you'd like

Would be great if this could be fixed!

Describe alternatives you've considered

Pickle files; not ideal, but a valid temporary solution

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions