use of org.jpl7.Variable in project vcell by virtualcell.
the class NetCDFReader method getLastTrial.
/**
* Get last trial.
* @return int. last trial.
*/
public int getLastTrial() throws IOException {
Variable v = ncfile.findVariable("LastTrial");
int val = 0;
try {
val = v.readScalarInt();
} catch (IOException ioe) {
ioe.printStackTrace(System.err);
throw new IOException("Cannot get proper last trial number from the model.");
}
return val;
}
Aggregations