Skip to content

Only zero overland and subsurface flows to river for Irish catchment #894

@AquaPore

Description

@AquaPore

Wflow version checks

  • I have checked that this issue has not already been reported.

  • I have checked that this bug exists on the latest version of Wflow.

Reproducible Example

Dear Wflow users,

I am looking to partition the river_water__volume_flow_rate between:

  1. Overland flow (I guess is performed with land_surface_water__instantaneous_volume_flow_rate);
  2. Subsurface flow (I guess is performed with subsurface_water__to_river_volume_flow_rate);
  3. Water storage (I guess is performed with soil_layer_water_unsaturated_zone__depth);
  4. Ground water (I guess is performed with subsurface_water__hydraulic_head);

The reason why I require this information is for calibration purposes and, at a later stage, to run a nutrient model.

The Wflow model runs well with [model], type=sbm. Nevertheless,

I get land_surface_water__to_river_volume_flow_rate[iX, iY, iT]=0 & subsurface_water__to_river_volume_flow_rate=0 for all cells.

I am suspecting that the problem is because I am not using model type sbm=sediment.

In the Input Toml file

[output.netcdf_grid] # ===========================================
	path = "Output_Timoleague.nc"
   compressionlevel = 0 # Compression level [0-9]

	[output.netcdf_grid.variables]
      land_surface_water__to_river_volume_flow_rate = "OverlandFlowToRiver" # [m3 / s]
      subsurface_water__to_river_volume_flow_rate = "SubsurfaceFlowToRiver" # [m3 / s]

Then I write a code to sum up the OverlandFlowToRiver and SubsurfaceFlowToRiver at every time step

WflowOutput = NCDatasets.NCDataset(Path_Wflow_NetCDF_Output)

OverlandFlowToRive = Array(WflowOutput["OverlandFlowToRiver"])
SubsurfaceFlowToRiver = Array(WflowOutput["SubsurfaceFlowToRiver"])
Precipitation    = Array(WflowOutput["Precipitation"])

Nx, Ny, Nt = size(Precipitation)

∑SubsurfaceFlowToRiver_M3 = fill(0.0, Nt)
∑OverlandFlowToRiver_M3 = fill(0.0, Nt)

for iT=1:Nt
	 for iX=1:Nx
		for iY=1:Ny
			if OverlandFlowToRiver[iX, iY, iT] !== missing
				∑OverlandFlowToRiver_M3[iT] += OverlandFlowToRiver[iX, iY, iT] * 60*60*24 # m3/s to m3/day
			end

		        if SubsurfaceFlowToRiver[iX, iY, iT] !== missing
			       ∑SubsurfaceFlowToRiver_M3[iT] += SubsurfaceFlowToRiver[iX, iY, iT] * 60*60*24 # m3/s to m3/day
			end
		end
	end 

Current behaviour

Neverthelesssum(∑OverlandFlowToRiver_M3[iT])= 0& sum(∑SubsurfaceFlowToRiver_M3[iT]) = 0

So my understanding there is a bug.

Many thanks for any help you may provide,
Joseph A.P. Pollacco

Desired behaviour

Neverthelesssum(∑OverlandFlowToRiver_M3[iT]) ≠ 0& sum(∑SubsurfaceFlowToRiver_M3[iT]) ≠ 0

Additional Context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions