Skip to content

Allow us to create space and later write to an existing NetCDF file object #11012

@leonfoks

Description

@leonfoks

What is your issue?

I'm writing an MPI enabled Xarray accessor and one of the caveats with HDF5/NetCDF in parallel is that the metadata and space inside the file needs to be created up front and collectively by all ranks in the communicator. After creation those ranks can then do non-collective write operations to disk.

Does xarray have this capability somewhere already? i.e. something like the following.

f = netcdf_file_object # open the netcdf file

# x is a Dataarray or Dataset
x.create_netcdf(f)
x.write_netcdf(f)

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageIssue that has not been reviewed by xarray team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions