Package ucar.nc2.ncml
Class AggregationOuterDimension
- java.lang.Object
-
- ucar.nc2.ncml.Aggregation
-
- ucar.nc2.ncml.AggregationOuterDimension
-
- All Implemented Interfaces:
AggregationIF,ProxyReader
- Direct Known Subclasses:
AggregationExisting,AggregationFmrc,AggregationNew
@Deprecated public abstract class AggregationOuterDimension extends Aggregation implements ProxyReader
Deprecated.do not useSuperclass for Aggregations on the outer dimension: joinNew, joinExisting, Fmrc, FmrcSingle- Since:
- Aug 10, 2007
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ucar.nc2.ncml.Aggregation
Aggregation.Dataset, Aggregation.DatasetProxyReader, Aggregation.Type, Aggregation.TypicalDataset
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>aggVarNamesDeprecated.protected List<VariableDS>aggVarsDeprecated.protected List<ucar.nc2.ncml.AggregationOuterDimension.CacheVar>cacheListDeprecated.protected static booleandebugCacheDeprecated.protected static booleandebugInvocationDeprecated.protected static booleandebugStrideDeprecated.static intinvocationDeprecated.protected booleantimeUnitsChangeDeprecated.-
Fields inherited from class ucar.nc2.ncml.Aggregation
cacheDirty, datasetManager, datasets, dateFormatMark, dateFormatter, debug, debugConvert, debugDateParse, debugOpenFile, debugProxy, debugRead, debugSyncDetail, dimName, diskCache2, executor, explicitDatasets, isDate, logger, ncDataset, spiObject, type, typicalDatasetMode
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAggregationOuterDimension(NetcdfDataset ncd, String dimName, Aggregation.Type type, String recheckS)Deprecated.Create an Aggregation for the given NetcdfDataset.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddVariable(String varName)Deprecated.Add a name for a variableAgg elementprotected voidbuildCoords(CancelTask cancelTask)Deprecated.voidgetDetailInfo(Formatter f)Deprecated.protected intgetTotalCoords()Deprecated.protected Aggregation.DatasetmakeDataset(String cacheName, String location, String id, String ncoordS, String coordValueS, String sectionSpec, EnumSet<NetcdfDataset.Enhance> enhance, FileFactory reader)Deprecated.Dataset factory, so subclasses can overrideprotected Aggregation.DatasetmakeDataset(MFile dset)Deprecated.protected voidpromoteGlobalAttributes(ucar.nc2.ncml.AggregationOuterDimension.DatasetOuterDimension typicalDataset)Deprecated.protected voidreadTimeCoordinates(Variable timeAxis, CancelTask cancelTask)Deprecated.ArrayreallyRead(Variable mainv, Section section, CancelTask cancelTask)Deprecated.Read a section of an aggregation variable.ArrayreallyRead(Variable mainv, CancelTask cancelTask)Deprecated.Read an aggregation variable: A variable whose data spans multiple files.protected voidrebuildDataset()Deprecated.Call this when rescan has found changed datasets-
Methods inherited from class ucar.nc2.ncml.Aggregation
addCollection, addDataset, addDatasetScan, addExplicitDataset, buildNetcdfDataset, close, findVariable, finish, getDatasets, getDimensionName, getFileTypeDescription, getFileTypeId, getLastModified, getLocation, getType, getTypicalDataset, makeDatasets, persistRead, persistWrite, setDatasetAcquireProxy, setDatasetAcquireProxy, setExecutor, setModifications, setPersistenceCache, setTypicalDatasetMode, syncExtend
-
-
-
-
Field Detail
-
debugCache
protected static boolean debugCache
Deprecated.
-
debugInvocation
protected static boolean debugInvocation
Deprecated.
-
debugStride
protected static boolean debugStride
Deprecated.
-
invocation
public static int invocation
Deprecated.
-
aggVars
protected List<VariableDS> aggVars
Deprecated.
-
cacheList
protected List<ucar.nc2.ncml.AggregationOuterDimension.CacheVar> cacheList
Deprecated.
-
timeUnitsChange
protected boolean timeUnitsChange
Deprecated.
-
-
Constructor Detail
-
AggregationOuterDimension
protected AggregationOuterDimension(NetcdfDataset ncd, String dimName, Aggregation.Type type, String recheckS)
Deprecated.Create an Aggregation for the given NetcdfDataset. The following addXXXX methods are called, then finish(), before the object is ready for use.- Parameters:
ncd- Aggregation belongs to this NetcdfDatasetdimName- the aggregation dimension nametype- the Aggregation.TyperecheckS- how often to check if files have changes
-
-
Method Detail
-
addVariable
public void addVariable(String varName)
Deprecated.Add a name for a variableAgg element- Parameters:
varName- name of agg variable
-
buildCoords
protected void buildCoords(CancelTask cancelTask) throws IOException
Deprecated.- Throws:
IOException
-
readTimeCoordinates
protected void readTimeCoordinates(Variable timeAxis, CancelTask cancelTask) throws IOException
Deprecated.- Throws:
IOException
-
getTotalCoords
protected int getTotalCoords()
Deprecated.
-
promoteGlobalAttributes
protected void promoteGlobalAttributes(ucar.nc2.ncml.AggregationOuterDimension.DatasetOuterDimension typicalDataset) throws IOExceptionDeprecated.- Throws:
IOException
-
rebuildDataset
protected void rebuildDataset() throws IOExceptionDeprecated.Description copied from class:AggregationCall this when rescan has found changed datasets- Specified by:
rebuildDatasetin classAggregation- Throws:
IOException- on read error
-
reallyRead
public Array reallyRead(Variable mainv, Section section, CancelTask cancelTask) throws IOException, InvalidRangeException
Deprecated.Read a section of an aggregation variable.- Specified by:
reallyReadin interfaceProxyReader- Parameters:
section- read just this section of the data, array of Rangemainv- the client VariablecancelTask- user may cancel- Returns:
- the data array section
- Throws:
IOException- on errorInvalidRangeException- if section has incorrect rank or illegal shape.
-
reallyRead
public Array reallyRead(Variable mainv, CancelTask cancelTask) throws IOException
Deprecated.Read an aggregation variable: A variable whose data spans multiple files. This is an implementation of ProxyReader, so must fulfill that contract.- Specified by:
reallyReadin interfaceProxyReader- Parameters:
mainv- the aggregation variablecancelTask- user may cancel- Returns:
- memory resident Array containing the data. Will have same shape as the Variable.
- Throws:
IOException- on error
-
makeDataset
protected Aggregation.Dataset makeDataset(String cacheName, String location, String id, String ncoordS, String coordValueS, String sectionSpec, EnumSet<NetcdfDataset.Enhance> enhance, FileFactory reader)
Deprecated.Description copied from class:AggregationDataset factory, so subclasses can override- Overrides:
makeDatasetin classAggregation- Parameters:
cacheName- a unique name to use for cachinglocation- attribute "location" on the netcdf elementid- attribute "id" on the netcdf elementncoordS- attribute "ncoords" on the netcdf elementcoordValueS- attribute "coordValue" on the netcdf elementsectionSpec- attribute "sectionSpec" on the netcdf elementenhance- open dataset in enhance mode NOT USEDreader- factory for reading this netcdf dataset- Returns:
- a Aggregation.Dataset
-
makeDataset
protected Aggregation.Dataset makeDataset(MFile dset)
Deprecated.- Overrides:
makeDatasetin classAggregation
-
getDetailInfo
public void getDetailInfo(Formatter f)
Deprecated.- Specified by:
getDetailInfoin interfaceAggregationIF- Overrides:
getDetailInfoin classAggregation
-
-