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>
aggVarNames
Deprecated.protected List<VariableDS>
aggVars
Deprecated.protected List<ucar.nc2.ncml.AggregationOuterDimension.CacheVar>
cacheList
Deprecated.protected static boolean
debugCache
Deprecated.protected static boolean
debugInvocation
Deprecated.protected static boolean
debugStride
Deprecated.static int
invocation
Deprecated.protected boolean
timeUnitsChange
Deprecated.-
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 protected
AggregationOuterDimension(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 void
addVariable(String varName)
Deprecated.Add a name for a variableAgg elementprotected void
buildCoords(CancelTask cancelTask)
Deprecated.void
getDetailInfo(Formatter f)
Deprecated.protected int
getTotalCoords()
Deprecated.protected Aggregation.Dataset
makeDataset(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.Dataset
makeDataset(MFile dset)
Deprecated.protected void
promoteGlobalAttributes(ucar.nc2.ncml.AggregationOuterDimension.DatasetOuterDimension typicalDataset)
Deprecated.protected void
readTimeCoordinates(Variable timeAxis, CancelTask cancelTask)
Deprecated.Array
reallyRead(Variable mainv, Section section, CancelTask cancelTask)
Deprecated.Read a section of an aggregation variable.Array
reallyRead(Variable mainv, CancelTask cancelTask)
Deprecated.Read an aggregation variable: A variable whose data spans multiple files.protected void
rebuildDataset()
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 IOException
Deprecated.- Throws:
IOException
-
rebuildDataset
protected void rebuildDataset() throws IOException
Deprecated.Description copied from class:Aggregation
Call this when rescan has found changed datasets- Specified by:
rebuildDataset
in 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:
reallyRead
in 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:
reallyRead
in 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:Aggregation
Dataset factory, so subclasses can override- Overrides:
makeDataset
in 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:
makeDataset
in classAggregation
-
getDetailInfo
public void getDetailInfo(Formatter f)
Deprecated.- Specified by:
getDetailInfo
in interfaceAggregationIF
- Overrides:
getDetailInfo
in classAggregation
-
-