Skip to content

Close netCDF files when overwriting existing files with the same name #4

@huard

Description

@huard

Description

With xarray 0.16.1, overwriting a file on disk with the same name does not clear the cache. So when opening a file with the same name, it fetches the cached file rather than the new file on disk.

Possible solutions:

  • Given unique name to model outputs (.e.g uuid)
  • Call .close() on all opened netCDF files when overwrite=True.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions