User Forum of Software BASEMENT

BASEMENT
Basic Simulation Environment for computation of environmental flow and natural hazard simulation
Laboratory of Hydraulics, Hydrology and Glaciology (VAW)
ETH Zurich
Basement_Logo

You are not logged in.

#1 2024-05-21 18:24:37

Stefano
User
Registered: 2024-05-08
Posts: 12

xdmf

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

#2 2024-06-12 09:01:19

Matthias Bürgler
Developer
From: Zürich
Registered: 2019-04-04
Posts: 175

Re: xdmf

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

Board footer

Powered by FluxBB