Skip to content

Change HDF5 write mode "a" #533

Closed
Closed

Description

@brmather

Using the "append" mode to save mesh or swarm information can result in exceptionally large files where only a small chunk of a given dataset is actually being used. To replicate:

  1. Run any model at high resolution and save the field variables
  2. Run the same model at lower resolution and save the field variables

The filesize remains the same from 1 to 2. Instead, the "w" write mode overwrites any existing files of the same file name.

Activity

  1. brmather commented on Mar 23, 2021

    @brmather
    MemberAuthor

    I discovered this issue after transferring nearly 1TB of mostly redundant HDF5 files from Gadi over my dodgy NBN connection!

  2. jmansour commented on Mar 23, 2021

    @jmansour
    Contributor

    Yep, I can reproduce this. Good find! Surprised it hasn't been noticed sooner.

    Will fix for next release.

  3. added this to the 2.11_release milestone on Mar 23, 2021
  4. jmansour commented on Jul 5, 2021

    @jmansour
    Contributor

    Fix is in release queue. Will close this issue, but feel free to reopen as necessary.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions