Package ucar.nc2.ft2.coverage
Class CoverageCollection
- java.lang.Object
-
- ucar.nc2.ft2.coverage.CoverageCollection
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,CoordSysContainer
@Immutable public class CoverageCollection extends Object implements Closeable, CoordSysContainer
A Collection of Coverages Tracks unique coordinate systems. Has a unique HorizCoordSys. Has a unique Calendar.- Since:
- 7/11/2015
-
-
Field Summary
Fields Modifier and Type Field Description protected HorizCoordSys
hcs
protected CoverageReader
reader
-
Constructor Summary
Constructors Constructor Description CoverageCollection(String name, FeatureType coverageType, AttributeContainer atts, LatLonRect latLonBoundingBox, ProjectionRect projBoundingBox, CalendarDateRange calendarDateRange, List<CoverageCoordSys> coordSys, List<CoverageTransform> coordTransforms, List<CoverageCoordAxis> coordAxes, List<Coverage> coverages, CoverageReader reader)
Ctor
-
Method Summary
-
-
-
Field Detail
-
reader
protected final CoverageReader reader
-
hcs
protected final HorizCoordSys hcs
-
-
Constructor Detail
-
CoverageCollection
public CoverageCollection(String name, FeatureType coverageType, AttributeContainer atts, LatLonRect latLonBoundingBox, ProjectionRect projBoundingBox, CalendarDateRange calendarDateRange, List<CoverageCoordSys> coordSys, List<CoverageTransform> coordTransforms, List<CoverageCoordAxis> coordAxes, List<Coverage> coverages, CoverageReader reader)
Ctor- Parameters:
name
- CoverageCollection namecoverageType
- CoverageCollection typeatts
- CoverageCollection attributeslatLonBoundingBox
- if null, calculateprojBoundingBox
- if null, calculatecalendarDateRange
- need this to get the CalendarcoordSys
- list of coordinate systemscoordTransforms
- list of coordinate transformscoordAxes
- list of coordinate axescoverages
- list of coveragesreader
- delegate for reading
-
-
Method Detail
-
getName
public String getName()
-
attributes
public AttributeContainer attributes()
Get the global attributes.
-
getGlobalAttributes
@Deprecated public List<Attribute> getGlobalAttributes()
Deprecated.use attributes()
-
findAttValueIgnoreCase
@Deprecated public String findAttValueIgnoreCase(String attName, String defaultValue)
Deprecated.use attributes()
-
findAttribute
@Deprecated public Attribute findAttribute(String attName)
Deprecated.use attributes()
-
findAttributeIgnoreCase
@Deprecated public Attribute findAttributeIgnoreCase(String attName)
Deprecated.use attributes()
-
getLatlonBoundingBox
public LatLonRect getLatlonBoundingBox()
-
getProjBoundingBox
public ProjectionRect getProjBoundingBox()
-
getCalendarDateRange
public CalendarDateRange getCalendarDateRange()
-
getCalendar
public Calendar getCalendar()
-
getCoverageCount
public int getCoverageCount()
-
getCoverageType
public FeatureType getCoverageType()
-
getCoverageSets
public List<CoordSysSet> getCoverageSets()
-
getCoordSys
public List<CoverageCoordSys> getCoordSys()
-
getCoordTransforms
public List<CoverageTransform> getCoordTransforms()
-
getCoordAxes
public List<CoverageCoordAxis> getCoordAxes()
-
getHorizCoordSys
public HorizCoordSys getHorizCoordSys()
-
getReader
public CoverageReader getReader()
-
toString
public void toString(Formatter f)
-
findCoordSys
public CoverageCoordSys findCoordSys(String name)
-
findCoordAxis
public CoverageCoordAxis findCoordAxis(String name)
- Specified by:
findCoordAxis
in interfaceCoordSysContainer
-
findCoordTransform
public CoverageTransform findCoordTransform(String name)
- Specified by:
findCoordTransform
in interfaceCoordSysContainer
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-