Skip to content

Get rid of nested "netcdf.variable.name" entry #699

Description

@JoostBuitink

Right now, if a user wants to use a scale and/or offset to a variable, they need to specify the name of the NetCDF layer using "netcdf.variable.name". This creates a nested entry, which is not really necessary. We can rename this with netcdf_variable_name. See below for an example of the current implementation and a suggested new implementation.

Note that this also requires hydromt_wflow developments, to support correctly translating v0.x tomls to v1.0 tomls.

Current

[input.forcing.atmosphere_water__precipitation_volume_flux]
netcdf.variable.name = "P"
scale = 1.5
offset = 0.5

# or when not using scale/offset
[input.forcing]
atmosphere_water__precipitation_volume_flux = "P"

New?

[input.forcing.atmosphere_water__precipitation_volume_flux]
netcdf_variable_name = "P"
scale = 1.5
offset = 0.5

# or when not using scale/offset
[input.forcing]
atmosphere_water__precipitation_volume_flux = "P"

Activity

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

Metadata

Metadata

Assignees

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