|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.ncml.Aggregation.Dataset
ucar.nc2.ncml.AggregationFmrcSingle.DatasetFmrcSingle
public class AggregationFmrcSingle.DatasetFmrcSingle
| Field Summary | |
|---|---|
protected java.lang.String |
coordValue
|
protected java.util.Date |
coordValueDate
|
protected boolean |
isStringValued
|
protected int |
ncoord
|
| Fields inherited from class ucar.nc2.ncml.Aggregation.Dataset |
|---|
cacheLocation, enhance, extraInfo, id, location, reader |
| Method Summary | |
|---|---|
protected void |
cacheVariables(NetcdfFile ncfile)
|
int |
compareTo(java.lang.Object o)
|
java.util.Date |
getCoordValueDate()
Get the coordinate value as a Date for this Dataset; may be null |
java.lang.String |
getCoordValueString()
Get the coordinate value(s) as a String for this Dataset |
int |
getNcoords(CancelTask cancelTask)
Get number of coordinates in this Dataset. |
protected Range |
getNestedJoinRange(Range totalRange)
Get the desired Range, reletive to this Dataset, if no overlap, return null. |
protected boolean |
isNeeded(Range totalRange)
|
protected Array |
read(Variable mainv,
CancelTask cancelTask,
java.util.List<Range> section)
Read a section of the local Variable. |
protected int |
setStartEnd(int aggStart,
CancelTask cancelTask)
Set the starting and ending index into the aggregation dimension |
void |
show(java.util.Formatter f)
|
| Methods inherited from class ucar.nc2.ncml.Aggregation.Dataset |
|---|
acquireFile, close, equals, getCacheLocation, getId, getLocation, hashCode, read |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int ncoord
protected java.lang.String coordValue
protected java.util.Date coordValueDate
protected boolean isStringValued
| Method Detail |
|---|
public java.lang.String getCoordValueString()
public java.util.Date getCoordValueDate()
public void show(java.util.Formatter f)
show in class Aggregation.Dataset
public int getNcoords(CancelTask cancelTask)
throws java.io.IOException
cancelTask - allow cancellation
java.io.IOException - if io error
protected int setStartEnd(int aggStart,
CancelTask cancelTask)
throws java.io.IOException
aggStart - starting indexcancelTask - allow to bail out
java.io.IOException - if io error
protected Range getNestedJoinRange(Range totalRange)
throws InvalidRangeException
wantStart, wantStop are the indices in the aggregated dataset, wantStart <= i < wantEnd. if this overlaps, set the Range required for the nested dataset. note this should handle strides ok.
totalRange - desired range, reletive to aggregated dimension.
InvalidRangeException - if invalid range requestprotected boolean isNeeded(Range totalRange)
protected void cacheVariables(NetcdfFile ncfile)
throws java.io.IOException
cacheVariables in class Aggregation.Datasetjava.io.IOException
protected Array read(Variable mainv,
CancelTask cancelTask,
java.util.List<Range> section)
throws java.io.IOException,
InvalidRangeException
Aggregation.Dataset
read in class Aggregation.Datasetmainv - aggregated VariablecancelTask - let user cancelsection - reletive to the local Variable
java.io.IOException - on I/O error
InvalidRangeException - on section errorpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.ComparablecompareTo in class Aggregation.Dataset
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||