Skip to content

OpenDA: update forcing with netcdf4 #1063

Description

@vers-w

OpenDA has upgraded it's netCDF library from netcdf3 to netcdf4.

When running Wflow from OpenDA with netcdf4, the Wflow forcing file is now locked. This can be resolved by setting the environment variable HDF5_USE_FILE_LOCKING=FALSE. With this setting OpenDA can update the forcing in the forcing file. However, the update is not picked up by Wflow, this will only work if the forcing file is closed and opened again by Wfow.

Possible solutions:

  1. Reopen the file from Wfow after each OpenDA update. Disadvantage is that this will make Wflow slower and probably needs an OpenDA (or other application that updates file based dynamic input) specific implementation.

  2. Update the forcing through BMI. Probably most clean solution. Wflow then needs to skip the update of forcing variable(s).

Activity

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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions