Add NetCDF plugin to GAMA and runu the example models (such as text Connection.gaml).
An error appears in the loading of the file:
In GAMA:
at cycle 0: Format of tos_O1_2001-2002.nc seems incorrect. Trying to read it anyway.
In Eclipse:
May 07, 2022 6:20:45 PM it.geosolutions.imageio.plugins.arcgrid.AsciiGridsImageReader setInput
SEVERE: This file is not a valid ESRI ascii grid file.
java.io.IOException: This file is not a valid ESRI ascii grid file.
at it.geosolutions.imageio.plugins.arcgrid.raster.GrassAsciiGridRaster.parseHeader(GrassAsciiGridRaster.java:202)
at it.geosolutions.imageio.plugins.arcgrid.AsciiGridsImageReader.setInput(AsciiGridsImageReader.java:282)
at org.geotools.gce.arcgrid.ArcGridReader.<init>(ArcGridReader.java:153)
at msi.gama.util.file.GamaGridFile.privateCreateCoverage(GamaGridFile.java:383)
at msi.gama.util.file.GamaGridFile.createCoverage(GamaGridFile.java:255)
at msi.gama.util.file.GamaGridFile.getRows(GamaGridFile.java:716)
at msi.gama.metamodel.topology.grid.GamaSpatialMatrix.<init>(GamaSpatialMatrix.java:249)
at msi.gama.metamodel.topology.grid.GridTopology.<init>(GridTopology.java:126)
at msi.gama.metamodel.population.GamaPopulation.buildGridTopology(GamaPopulation.java:707)
at msi.gama.metamodel.population.GamaPopulation.createPopulation(GamaPopulation.java:120)
at msi.gama.metamodel.agent.GamlAgent.initializeMicroPopulation(GamlAgent.java:228)
at msi.gaml.descriptions.SpeciesDescription.lambda$4(SpeciesDescription.java:850)
at msi.gaml.compilation.IGamaHelper.run(IGamaHelper.java:49)
at msi.gaml.variables.Variable.initializeWith(Variable.java:590)
at msi.gama.metamodel.population.GamaPopulation.createVariablesFor(GamaPopulation.java:552)
at msi.gama.kernel.simulation.SimulationPopulation.initSimulation(SimulationPopulation.java:158)
at msi.gama.kernel.simulation.SimulationPopulation.createAgents(SimulationPopulation.java:119)
at msi.gama.metamodel.population.IPopulation.createAgents(IPopulation.java:229)
at msi.gama.kernel.experiment.ExperimentAgent.createSimulation(ExperimentAgent.java:357)
at msi.gama.kernel.experiment.ExperimentAgent._init_(ExperimentAgent.java:316)
at msi.gama.metamodel.agent.MinimalAgent.init(MinimalAgent.java:222)
at msi.gama.kernel.experiment.ExperimentAgent.init(ExperimentAgent.java:333)
at msi.gama.runtime.ExecutionScope.init(ExecutionScope.java:531)
at msi.gama.kernel.experiment.ExperimentController.schedule(ExperimentController.java:279)
at msi.gama.kernel.experiment.ExperimentAgent.schedule(ExperimentAgent.java:380)
at msi.gama.kernel.experiment.ExperimentPlan.open(ExperimentPlan.java:564)
at msi.gama.kernel.experiment.ExperimentPlan.open(ExperimentPlan.java:582)
at msi.gama.kernel.experiment.ExperimentController.lambda$2(ExperimentController.java:119)
at java.base/java.lang.Thread.run(Thread.java:833)
report error : Format of tos_O1_2001-2002.nc seems incorrect. Trying to read it anyway.
May 07, 2022 6:20:45 PM org.geotools.gce.arcgrid.ArcGridReader <init>
SEVERE: Unable to parse the header for the provided input
java.lang.IllegalArgumentException: Unable to parse the header for the provided input
at it.geosolutions.imageio.plugins.arcgrid.AsciiGridsImageReader.setInput(AsciiGridsImageReader.java:287)
at org.geotools.gce.arcgrid.ArcGridReader.<init>(ArcGridReader.java:153)
at msi.gama.util.file.GamaGridFile.privateCreateCoverage(GamaGridFile.java:383)
at msi.gama.util.file.GamaGridFile.createCoverage(GamaGridFile.java:255)
at msi.gama.util.file.GamaGridFile.getRows(GamaGridFile.java:716)
at msi.gama.metamodel.topology.grid.GamaSpatialMatrix.<init>(GamaSpatialMatrix.java:249)
at msi.gama.metamodel.topology.grid.GridTopology.<init>(GridTopology.java:126)
at msi.gama.metamodel.population.GamaPopulation.buildGridTopology(GamaPopulation.java:707)
at msi.gama.metamodel.population.GamaPopulation.createPopulation(GamaPopulation.java:120)
at msi.gama.metamodel.agent.GamlAgent.initializeMicroPopulation(GamlAgent.java:228)
at msi.gaml.descriptions.SpeciesDescription.lambda$4(SpeciesDescription.java:850)
at msi.gaml.compilation.IGamaHelper.run(IGamaHelper.java:49)
at msi.gaml.variables.Variable.initializeWith(Variable.java:590)
at msi.gama.metamodel.population.GamaPopulation.createVariablesFor(GamaPopulation.java:552)
at msi.gama.kernel.simulation.SimulationPopulation.initSimulation(SimulationPopulation.java:158)
at msi.gama.kernel.simulation.SimulationPopulation.createAgents(SimulationPopulation.java:119)
at msi.gama.metamodel.population.IPopulation.createAgents(IPopulation.java:229)
at msi.gama.kernel.experiment.ExperimentAgent.createSimulation(ExperimentAgent.java:357)
at msi.gama.kernel.experiment.ExperimentAgent._init_(ExperimentAgent.java:316)
at msi.gama.metamodel.agent.MinimalAgent.init(MinimalAgent.java:222)
at msi.gama.kernel.experiment.ExperimentAgent.init(ExperimentAgent.java:333)
at msi.gama.runtime.ExecutionScope.init(ExecutionScope.java:531)
at msi.gama.kernel.experiment.ExperimentController.schedule(ExperimentController.java:279)
at msi.gama.kernel.experiment.ExperimentAgent.schedule(ExperimentAgent.java:380)
at msi.gama.kernel.experiment.ExperimentPlan.open(ExperimentPlan.java:564)
at msi.gama.kernel.experiment.ExperimentPlan.open(ExperimentPlan.java:582)
at msi.gama.kernel.experiment.ExperimentController.lambda$2(ExperimentController.java:119)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.io.IOException: This file is not a valid ESRI ascii grid file.
at it.geosolutions.imageio.plugins.arcgrid.raster.GrassAsciiGridRaster.parseHeader(GrassAsciiGridRaster.java:202)
at it.geosolutions.imageio.plugins.arcgrid.AsciiGridsImageReader.setInput(AsciiGridsImageReader.java:282)
... 27 more
Add NetCDF plugin to GAMA and runu the example models (such as text Connection.gaml). An error appears in the loading of the file:
In GAMA:
In Eclipse: