Search in sources :

Example 51 with Variable

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;
}
Also used : Variable(ucar.nc2.Variable) IOException(java.io.IOException)

Aggregations

Query (org.jpl7.Query)25 Variable (org.jpl7.Variable)24 Term (org.jpl7.Term)23 Variable (ucar.nc2.Variable)21 IOException (java.io.IOException)19 Compound (org.jpl7.Compound)17 Atom (org.jpl7.Atom)12 ArrayDouble (ucar.ma2.ArrayDouble)10 Map (java.util.Map)9 Integer (org.jpl7.Integer)4 org.jpl7.fli.term_t (org.jpl7.fli.term_t)4 Attribute (ucar.nc2.Attribute)4 BigInteger (java.math.BigInteger)3 Group (ucar.nc2.Group)3 TikaException (org.apache.tika.exception.TikaException)2 TemporaryResources (org.apache.tika.io.TemporaryResources)2 TikaInputStream (org.apache.tika.io.TikaInputStream)2 Property (org.apache.tika.metadata.Property)2 XHTMLContentHandler (org.apache.tika.sax.XHTMLContentHandler)2 Dimension (ucar.nc2.Dimension)2