Notice: Undefined index: CraftSessionId in /var/www/html/web/forums/qa-external/qa-external-users.php on line 193
Error reading 3D file - Hydronumerics Q&A
0 votes
in HydroHub by Seyoumyg@gmail.com (790 points)
I generated a 3d output file with the following lines added to datablock.xml file.

<All3D>
     <filename>all.nc</filename>
      <variable>HEIGHT</variable>
      <variable>DO</variable>
      <variable>TEMPERATURE</variable>
   </All3D>

When trying to open it with HydroHub, I get the following:  "Error opening file See error log for more information" The log does not show  further info other than the time when the Error was generated: 14:59:16 ERROR:

This happens when running the old version hydroHub Lite:

Version: 1.0.0
 Build Number: 68
 Built: 20170303 1030
 Built By: hnadmin
 OS: Mac OS X (x86_64

The newest version of HydroHub could not start at all showing this error: "Java Virtual Machine Launcher Error:

 Could not find the main class: hn.hydrohub.gui.HydroHubGuiMain. Program will exit"

Thank you for the help.

Seyoum

1 Answer

0 votes
by dallimor@hydronumerics.com.au (11.6k points)
Hi Seyoum,

Hydrohub cares about the order or XML elements so All3D should be near the bottom of the file for HydroHub to validate it.  AEM3D doesn't care about the element order though.

Can you try the latest HydroHub download, you may need to update to Java 8 to get it to work though.

Thanks

Chris
by Seyoumyg@gmail.com (790 points)
Chris,
Thanks a lot.

I did try the newest Hydrohub download and it worked with Java 8 for 2D outputs but it shows the same error for 3D outputs. Here is the code  in the datablock file I used.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<AEM3DOutput>
  <GlobalTime>
    <interval>288</interval>
  </GlobalTime>
    <globalVariable>HEIGHT</globalVariable>
    <globalVariable>TEMPERATURE</globalVariable>
    <globalVariable>DO</globalVariable>
     <Profile>
    <filename>profile.nc</filename>
    <location>13,5</location>
    <Time>
      <interval>288</interval>
    </Time>
  </Profile>
  
 <All3D>
     <filename>Temp.nc</filename>
     <variable>TEMPERATURE</variable>
 </All3D>
 <All3D>
     <filename>DO.nc</filename>
      <variable>DO</variable>
 </All3D>  
   <All3D>
     <filename>all.nc</filename>
     <variable>HEIGHT</variable>
     <variable>DO</variable>
     <variable>TEMPERATURE</variable>
 </All3D>
  
</AEM3DOutput>
by dallimor@hydronumerics.com.au (11.6k points)
Hi, that content loads OK when I put it in a file here.  Does your file have a ".xml" extension?
by Seyoumyg@gmail.com (790 points)
edited by Seyoumyg@gmail.com
Chris,

Yes it does have that extension and I used notepad++ to write it. Moreover, I successfully read using hydrohub the "profile.nc" file which was created simultaneously as the 3D files.
by dallimor@hydronumerics.com.au (11.6k points)
Sorry, I misunderstood the question.  HydroHub doesn’t currently load All3D nc files you will need to process these in Matlab or some other NetCDF reader.

It’s a bit harder to do these files as it’s not always clear how users will want to visualise the 3D data.

Chris
Welcome to Hydronumerics Q&A, where you can ask questions and receive answers about the software we develop and distribute

Categories

Hydronumerics

...