ucar.nc2.ncml
Class AggregationFmrcSingle

java.lang.Object
  extended by ucar.nc2.ncml.Aggregation
      extended by ucar.nc2.ncml.AggregationOuterDimension
          extended by ucar.nc2.ncml.AggregationFmrc
              extended by ucar.nc2.ncml.AggregationFmrcSingle
All Implemented Interfaces:
ProxyReader

public class AggregationFmrcSingle
extends AggregationFmrc

Implement NcML Forecast Model Run Collection Aggregation with files that contain a single forecast time.

Author:
caron

Nested Class Summary
 class AggregationFmrcSingle.OpenDataset
          Encapsolates a NetcdfFile that is a component of the aggregation.
 
Nested classes/interfaces inherited from class ucar.nc2.ncml.Aggregation
Aggregation.DatasetProxyReader, Aggregation.Type, Aggregation.TypicalDataset
 
Field Summary
 
Fields inherited from class ucar.nc2.ncml.AggregationOuterDimension
aggVarNames, aggVars, cacheList, debugCache, debugInvocation, invocation, timeUnitsChange
 
Fields inherited from class ucar.nc2.ncml.Aggregation
cacheDirty, datasetManager, datasets, dateFormatMark, debugDateParse, debugOpenFile, debugProxy, debugRead, debugSyncDetail, dimName, diskCache2, enhance, executor, explicitDatasets, formatter, isDate, logger, ncDataset, spiObject, type, typicalDatasetMode
 
Constructor Summary
AggregationFmrcSingle(NetcdfDataset ncd, java.lang.String dimName, java.lang.String recheckS)
           
 
Method Summary
 void addDirectoryScanFmrc(java.lang.String dirName, java.lang.String suffix, java.lang.String regexpPatternString, java.lang.String subdirs, java.lang.String olderThan, java.lang.String runMatcher, java.lang.String forecastMatcher, java.lang.String offsetMatcher)
           
protected  void buildDataset(CancelTask cancelTask)
          Call this to build the dataset objects
protected  void closeDatasets()
           
protected  ucar.nc2.ncml.Aggregation.Dataset getTypicalDataset()
          Open one of the nested datasets as a template for the aggregation dataset.
protected  void makeDatasets(CancelTask cancelTask)
          Make the Dataset objects.
protected  void makeTimeCoordinate(GridDataset gds, CancelTask cancelTask)
           
protected  void readTimeCoordinates(VariableDS timeAxis, CancelTask cancelTask)
           
 
Methods inherited from class ucar.nc2.ncml.AggregationFmrc
buildDataset, main, makeTimeCoordinateWithDefinition, read, read, rebuildDataset, setDefinitionDirectory, setInventoryDefinition
 
Methods inherited from class ucar.nc2.ncml.AggregationOuterDimension
addVariable, buildCoords, getDimensionName, getTotalCoords, makeDataset, promoteGlobalAttributes
 
Methods inherited from class ucar.nc2.ncml.Aggregation
addCrawlableDatasetScan, addDataset, addExplicitDataset, close, findVariable, finish, getDatasets, getLocation, getType, persistRead, persistWrite, setDatasetAcquireProxy, setExecutor, setPersistenceCache, setTypicalDatasetMode, sync, syncExtend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregationFmrcSingle

public AggregationFmrcSingle(NetcdfDataset ncd,
                             java.lang.String dimName,
                             java.lang.String recheckS)
Method Detail

addDirectoryScanFmrc

public void addDirectoryScanFmrc(java.lang.String dirName,
                                 java.lang.String suffix,
                                 java.lang.String regexpPatternString,
                                 java.lang.String subdirs,
                                 java.lang.String olderThan,
                                 java.lang.String runMatcher,
                                 java.lang.String forecastMatcher,
                                 java.lang.String offsetMatcher)
                          throws java.io.IOException
Throws:
java.io.IOException

closeDatasets

protected void closeDatasets()
                      throws java.io.IOException
Overrides:
closeDatasets in class Aggregation
Throws:
java.io.IOException

buildDataset

protected void buildDataset(CancelTask cancelTask)
                     throws java.io.IOException
Description copied from class: Aggregation
Call this to build the dataset objects

Overrides:
buildDataset in class AggregationFmrc
Parameters:
cancelTask - maybe cancel
Throws:
java.io.IOException - on read error

makeDatasets

protected void makeDatasets(CancelTask cancelTask)
                     throws java.io.IOException
Description copied from class: Aggregation
Make the Dataset objects.

Overrides:
makeDatasets in class Aggregation
Parameters:
cancelTask - user can cancel
Throws:
java.io.IOException - on i/o error

getTypicalDataset

protected ucar.nc2.ncml.Aggregation.Dataset getTypicalDataset()
                                                       throws java.io.IOException
Description copied from class: Aggregation
Open one of the nested datasets as a template for the aggregation dataset.

Overrides:
getTypicalDataset in class Aggregation
Returns:
a typical Dataset
Throws:
java.io.FileNotFoundException - if there are no datasets
java.io.IOException

makeTimeCoordinate

protected void makeTimeCoordinate(GridDataset gds,
                                  CancelTask cancelTask)
                           throws java.io.IOException
Overrides:
makeTimeCoordinate in class AggregationFmrc
Throws:
java.io.IOException

readTimeCoordinates

protected void readTimeCoordinates(VariableDS timeAxis,
                                   CancelTask cancelTask)
                            throws java.io.IOException
Overrides:
readTimeCoordinates in class AggregationFmrc
Throws:
java.io.IOException