Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FLO-2D] Max datasets not shows #382

Open
PeterPetrik opened this issue Oct 6, 2021 · 1 comment
Open

[FLO-2D] Max datasets not shows #382

PeterPetrik opened this issue Oct 6, 2021 · 1 comment
Labels
2D bug Something isn't working feedback formats formats/providers

Comments

@PeterPetrik
Copy link
Contributor

PeterPetrik commented Oct 6, 2021

for some files, FLOW DEPTH and MAX datasets are not shown

data: _Projects/FLO-2D/bugs/mdal_382

@PeterPetrik PeterPetrik added bug Something isn't working formats formats/providers 2D labels Oct 6, 2021
@PeterPetrik
Copy link
Contributor Author

PeterPetrik commented Oct 18, 2021

looks like HDF5 file IS present AND does not contain the depth/MAX datasets: (it is the same for https://github.com/lutraconsulting/MDAL/tree/master/tests/data/flo2d/BarnHDF5 too). If TIMDEP.HDF5 is present, TIMDEP.OUT, DEPTH.OUT and VELFP.OUT reading is SKIPPED.

ncdump -h TIMDEP.HDF5
outputs:

netcdf TIMDEP {
dimensions:
	phony_dim_9 = 1 ;
variables:
	string File\ Type(phony_dim_9) ;
	float File\ Version(phony_dim_9) ;

group: TIMDEP\ NETCDF\ OUTPUT\ RESULTS {

  // group attributes:
  		string :Grouptype = "Generic" ;

  group: FLOW\ DEPTH {
    dimensions:
    	phony_dim_0 = UNLIMITED ; // (20 currently)
    	phony_dim_1 = 9124 ;
    variables:
    	float Maxs(phony_dim_0) ;
    	float Mins(phony_dim_0) ;
    	double Times(phony_dim_0) ;
    	float Values(phony_dim_0, phony_dim_1) ;

    // group attributes:
    		string :Grouptype = "DATASET SCALAR" ;
    		string :TimeUnits = "Hours" ;
    		string :DatasetUnits = "ft or m" ;
    		:DatasetCompression = -1 ;
    		:Data\ Type = 0 ;
    } // group FLOW\ DEPTH

  group: Floodplain\ Water\ Surface\ Elevation {
    dimensions:
    	phony_dim_2 = UNLIMITED ; // (20 currently)
    	phony_dim_3 = 9124 ;
    variables:
    	float Maxs(phony_dim_2) ;
    	float Mins(phony_dim_2) ;
    	double Times(phony_dim_2) ;
    	float Values(phony_dim_2, phony_dim_3) ;

    // group attributes:
    		string :Grouptype = "DATASET SCALAR" ;
    		string :TimeUnits = "Hours" ;
    		string :DatasetUnits = "ft or m" ;
    		:DatasetCompression = -1 ;
    		:Data\ Type = 0 ;
    } // group Floodplain\ Water\ Surface\ Elevation

  group: Velocity {
    dimensions:
    	phony_dim_4 = UNLIMITED ; // (20 currently)
    	phony_dim_5 = 9124 ;
    	phony_dim_6 = 2 ;
    variables:
    	float Maxs(phony_dim_4) ;
    	float Mins(phony_dim_4) ;
    	double Times(phony_dim_4) ;
    	float Values(phony_dim_4, phony_dim_5, phony_dim_6) ;

    // group attributes:
    		string :Grouptype = "DATASET VECTOR" ;
    		string :TimeUnits = "Hours" ;
    		string :DatasetUnits = "fps or mps" ;
    		:DatasetCompression = -1 ;
    		:Data\ Type = 0 ;
    } // group Velocity

  group: Velocity\ MAG {
    dimensions:
    	phony_dim_7 = UNLIMITED ; // (20 currently)
    	phony_dim_8 = 9124 ;
    variables:
    	float Maxs(phony_dim_7) ;
    	float Mins(phony_dim_7) ;
    	double Times(phony_dim_7) ;
    	float Values(phony_dim_7, phony_dim_8) ;

    // group attributes:
    		string :Grouptype = "DATASET SCALAR" ;
    		string :TimeUnits = "Hours" ;
    		string :DatasetUnits = "ft or m" ;
    		:DatasetCompression = -1 ;
    		:Data\ Type = 0 ;
    } // group Velocity\ MAG
  } // group TIMDEP\ NETCDF\ OUTPUT\ RESULTS
}

note that this behaviour is same for few released already (e.g. QGIS 3.14):

mdalinfo 0.6.0
Mesh File: /Users/peter/Downloads/AnimationExport/FPLAIN.DAT
Mesh loaded: OK
  Driver: FLO2D
  Vertex count: 9470
  Edge count: 0
  Face count: 9124
  Edge count: 0
  Projection: undefined
Datasets loaded: OK
  Groups count: 5
  Bed Elevation
  FLOW DEPTH
  Floodplain Water Surface Elevation
  Velocity ( Vector ) 
  Velocity MAG

If TIMDEP.HDF5 is removed, the datasets are shown again

mdalinfo 0.8.93
Mesh File: /Users/peter/Downloads/AnimationExport2/FPLAIN.DAT
Mesh loaded: OK
  Driver: FLO2D
  Vertex count: 9470
  Edge count: 0
  Face count: 9124
  Edge count: 0
  Projection: undefined
Datasets loaded: OK
  Groups count: 6
  Bed Elevation
  Depth
  Velocity ( Vector ) 
  Water Level
  Depth/Maximums
  Water Level/Maximums

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2D bug Something isn't working feedback formats formats/providers
Projects
None yet
Development

No branches or pull requests

1 participant