Home >> Forums >> Initialisation failed

Initialisation failed

Hello dear all,
I am a beginner with Ichthyop and I am trying to run Ichthyop 3.3 with ROMS 3D configuration. I have hourly outputs from ROMS during 2 months.
However I do not know what am I setting up wrong. I gues that might be something with the setting up in the very beggining of it, since it does not even start the simullation. I get the following message:
ichthyop[info] ===== Simulation started =====
ichthyop[info] [Simulation] Run 1 / 1
ichthyop[info] [Simulation] Initialising...
ichthyop[severe] Index: 0, Size: 0 | java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
ichthyop[severe] [Simulation] Initialisation failed (performing: SETUP)
In the attachments you will find my configuration file.
Thank you in advance,
Clarissa
 

Ichthyop version: 
Ichthyop 3.3alpha
Hydrodynamic dataset: 
ROMS Rutgers
Java version: 
Java SE 8
Operating system: 
Ubuntu

Hi dear all,
I retried to start Ichthyop 3.3. with a new configuration file, however I still get some initialization error in the SETUP.  And now I have tried to run Ichthyop from the terminal. I have 2 situations.
1. Running without setting up a path to my grid file, it gets me the following error:
ichthyop[info] Opened configuration file /home/clarissa/Ichthyop/ichthyop-3.3/cfg/2017_11_17_roms3d_Ichthy03.xml
ichthyop[info] ===== Simulation started =====
ichthyop[info] ++++ Run 1 / 1
ichthyop[info] Setting up...
ichthyop[info] {Dataset} Open /home/clarissa/Results/swa12ext_I02/swa12ext_Ichthy_avg_2008_jan.nc
ichthyop[severe] An error occured while running the simulation | java.lang.NullPointerException
  org.previmer.ichthyop.dataset.RomsCommon.readConstantField(RomsCommon.java:202)
  org.previmer.ichthyop.dataset.Roms3dCommon.readConstantField(Roms3dCommon.java:301)
  org.previmer.ichthyop.dataset.RomsCommon.setUp(RomsCommon.java:164)
  org.previmer.ichthyop.dataset.Roms3dCommon.setUp(Roms3dCommon.java:216)
  org.previmer.ichthyop.manager.DatasetManager.setupPerformed(DatasetManager.java:73)
  org.previmer.ichthyop.manager.SimulationManager.fireSetupPerformed(SimulationManager.java:386)
  org.previmer.ichthyop.manager.SimulationManager.setup(SimulationManager.java:341)
  org.previmer.ichthyop.IchthyopBatch.run(IchthyopBatch.java:50)
  java.lang.Thread.run(Thread.java:748)
2. When I set up a path to my grid file, it says the directory is invalid, however I do not understand why.
ichthyop[info] Opened configuration file /home/clarissa/Ichthyop/ichthyop-3.3/cfg/2017_11_17_roms3d_Ichthy03.xml
ichthyop[info] ===== Simulation started =====
ichthyop[info] ++++ Run 1 / 1
ichthyop[info] Setting up...
ichthyop[info] {Dataset} Open /home/clarissa/Results/swa12ext_I02/swa12ext_Ichthy_avg_2008_jan.nc
ichthyop[severe] An error occured while running the simulation | java.io.IOException: {Dataset} /home/clarissa/Ich/swa12ext_grd.nc is not a valid directory.
  org.previmer.ichthyop.dataset.Roms3dDataset.openDataset(Roms3dDataset.java:64)
  org.previmer.ichthyop.dataset.RomsCommon.setUp(RomsCommon.java:160)
  org.previmer.ichthyop.dataset.Roms3dCommon.setUp(Roms3dCommon.java:216)
  org.previmer.ichthyop.manager.DatasetManager.setupPerformed(DatasetManager.java:73)
  org.previmer.ichthyop.manager.SimulationManager.fireSetupPerformed(SimulationManager.java:386)
  org.previmer.ichthyop.manager.SimulationManager.setup(SimulationManager.java:341)
  org.previmer.ichthyop.IchthyopBatch.run(IchthyopBatch.java:50)
  java.lang.Thread.run(Thread.java:748)
I am sorry if this is very basic, but I hope you can help me.
Thank you for your attention.
Clarissa

Hi Clarrisa.

Could you please send me your grid file? And eventually (if not too heavy) your data file?

So that I can try to reproduce and solve the error.

Thanks

Nicolas

Hi Nicolas,
Thank you for your repply. In the attachtments you have my grid file (swa12ext_grd.nc.zip). Unfortunatetly my data file is too heavy, but I am attatching the content of the netcdf, in case it helps. Please let me know if I can give you any other information.
 
Thank you,
Clarissa

Hi Clarisse

I was not able to fully check since my initialisation fails because of missing dataset.

However, I may have found the issue. The error is due to the fact that the code interpreted your grid_file entry as a directory, and not as a file.

Can you please try to re-run the model but by using the following jar file and tell me if it worked?

https://filesender.renater.fr/?s=download&token=66890e83-d78e-db8f-9a83-...

If so, I will put this corrected version into the Download page.

Thanks

Nicolas

Hi Nicolas,
I have tryed to re-run with the new jar you have sent, however a new error is reported. Below is what it reports:
ichthyop[info] ===== Simulation started =====
ichthyop[info] [Simulation] Run 1 / 1
ichthyop[info] [Simulation] Initialising...
ichthyop[info] {Dataset} Open /home/clarissa/Results/swa12ext_I02/swa12ext_Ichthy_avg_2008_jan.nc
ichthyop[severe] NetcdfDataset.openFile: location is null | java.io.IOException: NetcdfDataset.openFile: location is null
ichthyop[severe] [Simulation] Initialisation failed (performing: SETUP)
 
Thank you,
Clarissa

Hi Clarissa

I found this new error, which is due to a mistake I made in the correction.

But this should do it now:

https://filesender.renater.fr/?s=download&token=e2b0d499-1aec-1248-1499-...

I advise you to put the absolute grid path (grid_file setting), to be sure that it works.

Let me know if it works now (I tried on some Roms data I have, it seemed to work).

Nicolas