public class DtCoverageDataset extends Object implements Closeable
DtCoverageAdapter| Modifier and Type | Class and Description |
|---|---|
static class |
DtCoverageDataset.Gridset
This is a set of GeoGrids with the same GeoCoordSys.
|
| Constructor and Description |
|---|
DtCoverageDataset(NetcdfDataset ncd)
Create a DtCoverageDataset from a NetcdfDataset.
|
DtCoverageDataset(NetcdfDataset ncd,
Formatter parseInfo)
Create a DtCoverageDataset from a NetcdfDataset.
|
public DtCoverageDataset(NetcdfDataset ncd) throws IOException
ncd - underlying NetcdfDataset, will do Enhance.CoordSystems if not already done.IOException - on read errorpublic DtCoverageDataset(NetcdfDataset ncd, Formatter parseInfo) throws IOException
ncd - underlying NetcdfDataset, will do Enhance.CoordSystems if not already done.parseInfo - put parse info here, may be nullIOException - on read errorpublic static DtCoverageDataset open(String location) throws IOException
location - netcdf dataset to open, using NetcdfDatasets.acquireDataset().IOException - on read errorNetcdfDataset.acquireDataset(ucar.nc2.dataset.DatasetUrl, ucar.nc2.util.CancelTask)public static DtCoverageDataset open(DatasetUrl durl) throws IOException
IOExceptionpublic static DtCoverageDataset open(DatasetUrl durl, Set<NetcdfDataset.Enhance> enhanceMode) throws IOException
durl - netcdf dataset to open, using NetcdfDatasets.acquireDataset().enhanceMode - open netcdf dataset with this enhanceModeIOException - on read errorNetcdfDataset.acquireDataset(ucar.nc2.dataset.DatasetUrl, ucar.nc2.util.CancelTask)public static DtCoverageDataset open(NetcdfDataset ds) throws IOException
IOExceptionpublic FeatureType getCoverageType()
public String getTitle()
public String getDescription()
public String getLocation()
public CalendarDateRange getCalendarDateRange()
public CalendarDate getCalendarDateStart()
public CalendarDate getCalendarDateEnd()
public LatLonRect getBoundingBox()
public ProjectionRect getProjBoundingBox()
public void calcBounds()
public List<VariableSimpleIF> getDataVariables()
public VariableSimpleIF getDataVariable(String shortName)
public NetcdfFile getNetcdfFile()
public String getName()
public NetcdfDataset getNetcdfDataset()
public List<DtCoverage> getGrids()
public DtCoverage findGridDatatype(String name)
public List<DtCoverageDataset.Gridset> getGridsets()
public DtCoverage findGridByName(String fullName)
fullName - find this GeoGrid by full namepublic DtCoverage findGridByShortName(String shortName)
shortName - find this GeoGrid by short namepublic DtCoverage findGridByFullName(String fullName)
public DtCoverage findGridDatatypeByAttribute(String attName, String attValue)
public String getDetailInfo()
public void getDetailInfo(Formatter buff)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOException