use of org.jpl7.Variable in project vcell by virtualcell.
the class NetCDFReader method getExperimentType.
/**
* Get experiment time.
* ExpType = 1; This indicates that this NetCDF file is a 'Single model' file.
* ExpType = 2; This indicates that this NetCDF file is a 'Multi-model' file.
* @return int, experiment type.
*/
public int getExperimentType() throws IOException {
Variable v = ncfile.findVariable("ExpType");
int val = 0;
try {
val = v.readScalarInt();
} catch (IOException ioe) {
ioe.printStackTrace(System.err);
throw new IOException("Cannot get proper experiment type from the model.");
}
return val;
}
use of org.jpl7.Variable in project vcell by virtualcell.
the class NetCDFReader method getEndTime.
/**
* Get ending time. 0 dimenstion
* @return double, ending time.
*/
public double getEndTime() throws IOException {
Variable v = ncfile.findVariable("TEnd");
Double val = 0.0;
try {
val = v.readScalarDouble();
} catch (IOException ioe) {
ioe.printStackTrace(System.err);
throw new IOException("Cannot get proper ending time from the model.");
}
return val;
}
use of org.jpl7.Variable in project vcell by virtualcell.
the class NetCDFReader method getCellGrowthTimeSD.
/**
* Get cell growth time SD, which is the standard deviation of the time between cell divisions.
* @return double, standard deviation of cell growth time.
*/
public double getCellGrowthTimeSD() throws IOException {
Variable v = ncfile.findVariable("CellGrowthTimeSD");
Double val = 0.0;
try {
val = v.readScalarDouble();
} catch (IOException ioe) {
ioe.printStackTrace(System.err);
throw new IOException("Cannot get proper standard deviation of the time between cell divisions from the model.");
}
return val;
}
use of org.jpl7.Variable in project vcell by virtualcell.
the class NetCDFReader method getNumModels_Variable.
/**
* Get Number of Models.
* @return int. number of models.
*/
public int getNumModels_Variable() throws IOException {
Variable v = ncfile.findVariable("NumModels");
int val = 0;
try {
val = v.readScalarInt();
} catch (IOException ioe) {
ioe.printStackTrace(System.err);
throw new IOException("Cannot get proper variable of number of models from the file.");
}
return val;
}
use of org.jpl7.Variable in project vcell by virtualcell.
the class NetCDFReader method getCellGrowthTime.
/**
* Get cell growth time, which is the average amount of time between cell divisions.
* @return double, cell growth time.
*/
public double getCellGrowthTime() throws IOException {
Variable v = ncfile.findVariable("CellGrowthTime");
Double val = 0.0;
try {
val = v.readScalarDouble();
} catch (IOException ioe) {
ioe.printStackTrace(System.err);
throw new IOException("Cannot get proper cell growth time from the model.");
}
return val;
}
Aggregations