Commit 1b0c0ed1 authored by POLCHER Jan's avatar POLCHER Jan 🚴🏾
Browse files

Moved the reading of the stations to be located up so that if there is an...

Moved the reading of the stations to be located up so that if there is an error in the file it can be dedected before calculations start.
parent 7671fdf9
......@@ -58,6 +58,10 @@ INFO("Latitude interval on proc "+str(rank)+" = "+str(modelgrid.box_land[1][0])+
#
hydrogrid=HG.HydroGrid(modelgrid.box_land, wfile)
#
# Get the list of stations to be placed on the final graph.
#
loc = LO.Locations(modelgrid.box_land)
#
# Computes weights of overlap of modelgrid and hydrogrid
w = RPP.compweights(wfile, part, modelgrid, hydrogrid)
#
......@@ -127,7 +131,6 @@ INFO("=================== HydroGraph ====================")
hgraph = GR.HydroGraph(nbasmax, hsuper, part, modelgrid)
INFO("=================== Locate gauging stations and other structures ====================")
loc = LO.Locations(modelgrid.box_land)
hgraph.position(modelgrid, loc)
hgraph.dumpnetcdf(OutGraphFile, gg, modelgrid, part, hydrotcst, loc)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment