Skip to content

Create xarray.Dataset from a netCDF4.Dataset object #1304

Description

@andreas-h

For some applications, it would be nice if it were possible to create an xarray.Dataset from a netCDF4.Dataset, so that the following code would work:

with Dataset(filename) as nc:
    ds = xr.open_dataset(nc)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions