BASEMENTBasic Simulation Environment for computation of environmental flow and natural hazard simulationLaboratory of Hydraulics, Hydrology and Glaciology (VAW)ETH Zurich |
You are not logged in.
Hi to everyone,
I ran a hydrological simulation with no problem with xdmf file, after correction of header lines.
After that I ran a morpphological simulation in the same basin but QGis cannot read the xdmf file.
I'm just an absolute beginner and trying to understand the problem I compared the two xdmf files and the only relevant difference is in the sebsequent lines:
THE WORKING ONE
<Attribute AttributeType="Scalar" Center="Cell" Name="water_depth">
<DataItem ItemType="Function" Function="$0-$1" Dimensions="27224 1">
<DataItem ItemType="HyperSlab" Dimensions="27224 1">
<DataItem Dimensions="3 2" Format="XML">0 0 1 1 27224 1</DataItem>
<DataItem Format="HDF" Rank="2" Dimensions="27224 3">results.h5:/RESULTS/CellsAll/HydState/0000000</DataItem>
</DataItem>
<DataItem ItemType="HyperSlab" Dimensions="27224 1">
<DataItem Dimensions="3 2" Format="XML">0 0 1 1 27224 1</DataItem>
<DataItem Format="HDF" Rank="2" Dimensions="27224 1">results.h5:CellsAll/BottomEl/</DataItem>
THE UNWORKING ONE
<Attribute AttributeType="Scalar" Center="Cell" Name="water_depth">
<DataItem ItemType="Function" Function="$0-$1" Dimensions="27224 1">
<DataItem ItemType="HyperSlab" Dimensions="27224 1">
<DataItem Dimensions="3 2" Format="XML">0 0 1 1 27224 1</DataItem>
<DataItem Format="HDF" Rank="2" Dimensions="27224 3">results.h5:/RESULTS/CellsAll/HydState/0000000</DataItem>
</DataItem>
<DataItem ItemType="HyperSlab" Dimensions="27224 1">
<DataItem Dimensions="3 2" Format="XML">0 0 1 1 27224 1</DataItem>
<DataItem Format="HDF" Rank="2" Dimensions="27224 1">results.h5:/RESULTS/CellsAll/BottomEl/0000000</DataItem>
</DataItem>
I just tried to manually modify the second (unworking) according to the first (working) one, but QGis goes to crash.
Please, someone could explain the reason of the misfunction?
Thanks.
Offline
Hi Stefano,
One issue that I recently noticed is, that if you define the same output variable (e.g., water_depth) twice in the simulation.json, then QGIS cannot open the XDMF file.
Could this be the reason? If you can send the the complete test case that results in the problem, I will have a look.
Best regards,
Matthias
Offline