ucar.nc2.ncml
Class AggregationUnion
java.lang.Object
ucar.nc2.ncml.Aggregation
ucar.nc2.ncml.AggregationUnion
- All Implemented Interfaces:
- ProxyReader
public class AggregationUnion
- extends Aggregation
Aggregation on datasets to be simply combined - aka "union".
The variables are transferred from the component files to the
- Author:
- caron
| Fields inherited from class ucar.nc2.ncml.Aggregation |
cacheDirty, datasetManager, datasets, dateFormatMark, dateFormatter, debug, debugDateParse, debugOpenFile, debugProxy, debugRead, debugSyncDetail, dimName, diskCache2, executor, explicitDatasets, isDate, logger, ncDataset, spiObject, type, typicalDatasetMode |
| Methods inherited from class ucar.nc2.ncml.Aggregation |
addDataset, addDatasetScan, addExplicitDataset, close, detail, findVariable, finish, getDatasets, getDetailInfo, getDimensionName, getFileTypeDescription, getFileTypeId, getLocation, getType, getTypicalDataset, makeDataset, makeDataset, makeDatasets, persistRead, persistWrite, setDatasetAcquireProxy, setExecutor, setModifications, setPersistenceCache, setTypicalDatasetMode, sync, syncExtend |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AggregationUnion
public AggregationUnion(NetcdfDataset ncd,
java.lang.String dimName,
java.lang.String recheckS)
buildNetcdfDataset
protected void buildNetcdfDataset(CancelTask cancelTask)
throws java.io.IOException
- Description copied from class:
Aggregation
- Call this to build the dataset objects in the NetcdfDataset
- Specified by:
buildNetcdfDataset in class Aggregation
- Parameters:
cancelTask - maybe cancel
- Throws:
java.io.IOException - on read error
rebuildDataset
protected void rebuildDataset()
throws java.io.IOException
- Description copied from class:
Aggregation
- Call this when rescan has found changed datasets
- Specified by:
rebuildDataset in class Aggregation
- Throws:
java.io.IOException - on read error
read
public Array read(Variable mainv,
CancelTask cancelTask)
throws java.io.IOException
- Description copied from class:
Aggregation
- Read an aggregation variable: A variable whose data spans multiple files.
- Specified by:
read in interface ProxyReader- Specified by:
read in class Aggregation
- Parameters:
mainv - the aggregation variablecancelTask - allow the user to cancel
- Returns:
- the data array
- Throws:
java.io.IOException - on error
read
public Array read(Variable mainv,
Section section,
CancelTask cancelTask)
throws java.io.IOException,
InvalidRangeException
- Description copied from class:
Aggregation
- Read a section of an aggregation variable.
- Specified by:
read in interface ProxyReader- Specified by:
read in class Aggregation
- Parameters:
mainv - the aggregation variablesection - read just this section of the data, refers to aggregated Variable's section.cancelTask - allow the user to cancel
- Returns:
- the data array section
- Throws:
java.io.IOException - on error
InvalidRangeException - if section has incorrect rank or shape.
closeDatasets
protected void closeDatasets()
throws java.io.IOException
- Overrides:
closeDatasets in class Aggregation
- Throws:
java.io.IOException