Class AggregationNew

    • Field Detail

      • debugCache

        protected static boolean debugCache
      • debugInvocation

        protected static boolean debugInvocation
      • debugStride

        protected static boolean debugStride
      • invocation

        public static int invocation
      • cacheList

        protected List<ucar.nc2.internal.ncml.AggregationOuter.CacheVar> cacheList
      • timeUnitsChange

        protected boolean timeUnitsChange
    • Method Detail

      • addVariable

        public void addVariable​(String varName)
        Add a name for a variableAgg element
        Parameters:
        varName - name of agg variable
      • getTotalCoords

        protected int getTotalCoords()
      • promoteGlobalAttributes

        protected void promoteGlobalAttributes​(ucar.nc2.internal.ncml.AggDatasetOuter typicalDataset)
                                        throws IOException
        Throws:
        IOException
      • reallyRead

        public Array reallyRead​(Variable mainv,
                                CancelTask cancelTask)
                         throws IOException
        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 interface ProxyReader
        Parameters:
        mainv - the aggregation variable
        cancelTask - user may cancel
        Returns:
        memory resident Array containing the data. Will have same shape as the Variable.
        Throws:
        IOException - on error
      • makeDataset

        protected ucar.nc2.internal.ncml.AggDataset makeDataset​(String cacheName,
                                                                String location,
                                                                String id,
                                                                String ncoordS,
                                                                String coordValueS,
                                                                String sectionSpec,
                                                                EnumSet<NetcdfDataset.Enhance> enhance,
                                                                FileFactory reader)
        Description copied from class: Aggregation
        Dataset factory, so subclasses can override
        Overrides:
        makeDataset in class Aggregation
        Parameters:
        cacheName - a unique name to use for caching
        location - attribute "location" on the netcdf element
        id - attribute "id" on the netcdf element
        ncoordS - attribute "ncoords" on the netcdf element
        coordValueS - attribute "coordValue" on the netcdf element
        sectionSpec - attribute "sectionSpec" on the netcdf element
        enhance - open dataset in enhance mode NOT USED
        reader - factory for reading this netcdf dataset
        Returns:
        a Dataset