public class DtCoverageDataset
extends java.lang.Object
implements java.io.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 ds,
java.util.Formatter parseInfo)
Create a DtCoverageDataset from a NetcdfDataset.
|
Modifier and Type | Method and Description |
---|---|
void |
calcBounds() |
void |
close() |
Dimension |
findDimension(java.lang.String name) |
Attribute |
findGlobalAttributeIgnoreCase(java.lang.String name) |
DtCoverage |
findGridByFullName(java.lang.String fullName) |
DtCoverage |
findGridByName(java.lang.String fullName)
find the named GeoGrid.
|
DtCoverage |
findGridByShortName(java.lang.String shortName)
find the named GeoGrid.
|
DtCoverage |
findGridDatatype(java.lang.String name) |
DtCoverage |
findGridDatatypeByAttribute(java.lang.String attName,
java.lang.String attValue) |
LatLonRect |
getBoundingBox() |
CalendarDate |
getCalendarDateEnd() |
CalendarDateRange |
getCalendarDateRange() |
CalendarDate |
getCalendarDateStart() |
FeatureType |
getCoverageType() |
VariableSimpleIF |
getDataVariable(java.lang.String shortName) |
java.util.List<VariableSimpleIF> |
getDataVariables() |
java.lang.String |
getDescription() |
java.lang.String |
getDetailInfo()
Get Details about the dataset.
|
void |
getDetailInfo(java.util.Formatter buff) |
java.util.List<Attribute> |
getGlobalAttributes() |
java.util.List<DtCoverage> |
getGrids() |
java.util.List<DtCoverageDataset.Gridset> |
getGridsets()
Return GeoGrid objects grouped by GeoGridCoordSys.
|
java.lang.String |
getLocation() |
java.lang.String |
getName()
the name of the dataset is the last part of the location
|
NetcdfDataset |
getNetcdfDataset() |
NetcdfFile |
getNetcdfFile() |
ProjectionRect |
getProjBoundingBox() |
java.lang.String |
getTitle() |
static DtCoverageDataset |
open(DatasetUrl durl) |
static DtCoverageDataset |
open(DatasetUrl durl,
java.util.Set<NetcdfDataset.Enhance> enhanceMode)
Open a netcdf dataset, using NetcdfDataset.defaultEnhanceMode plus CoordSystems
and turn into a DtCoverageDataset.
|
static DtCoverageDataset |
open(NetcdfDataset ds) |
static DtCoverageDataset |
open(java.lang.String location)
Open a netcdf dataset, using NetcdfDataset.defaultEnhanceMode plus CoordSystems
and turn into a DtCoverageDataset.
|
public DtCoverageDataset(NetcdfDataset ncd) throws java.io.IOException
ncd
- underlying NetcdfDataset, will do Enhance.CoordSystems if not already done.java.io.IOException
- on read errorpublic DtCoverageDataset(NetcdfDataset ds, java.util.Formatter parseInfo) throws java.io.IOException
ncd
- underlying NetcdfDataset, will do Enhance.CoordSystems if not already done.parseInfo
- put parse info here, may be nulljava.io.IOException
- on read errorpublic static DtCoverageDataset open(java.lang.String location) throws java.io.IOException
location
- netcdf dataset to open, using NetcdfDatasets.acquireDataset().java.io.IOException
- on read errorNetcdfDataset.acquireDataset(ucar.nc2.dataset.DatasetUrl, ucar.nc2.util.CancelTask)
public static DtCoverageDataset open(DatasetUrl durl) throws java.io.IOException
java.io.IOException
public static DtCoverageDataset open(DatasetUrl durl, java.util.Set<NetcdfDataset.Enhance> enhanceMode) throws java.io.IOException
durl
- netcdf dataset to open, using NetcdfDatasets.acquireDataset().enhanceMode
- open netcdf dataset with this enhanceModejava.io.IOException
- on read errorNetcdfDataset.acquireDataset(ucar.nc2.dataset.DatasetUrl, ucar.nc2.util.CancelTask)
public static DtCoverageDataset open(NetcdfDataset ds) throws java.io.IOException
java.io.IOException
public FeatureType getCoverageType()
public java.lang.String getTitle()
public java.lang.String getDescription()
public java.lang.String getLocation()
public CalendarDateRange getCalendarDateRange()
public CalendarDate getCalendarDateStart()
public CalendarDate getCalendarDateEnd()
public LatLonRect getBoundingBox()
public ProjectionRect getProjBoundingBox()
public void calcBounds()
public java.util.List<Attribute> getGlobalAttributes()
public Dimension findDimension(java.lang.String name)
public Attribute findGlobalAttributeIgnoreCase(java.lang.String name)
public java.util.List<VariableSimpleIF> getDataVariables()
public VariableSimpleIF getDataVariable(java.lang.String shortName)
public NetcdfFile getNetcdfFile()
public java.lang.String getName()
public NetcdfDataset getNetcdfDataset()
public java.util.List<DtCoverage> getGrids()
public DtCoverage findGridDatatype(java.lang.String name)
public java.util.List<DtCoverageDataset.Gridset> getGridsets()
public DtCoverage findGridByName(java.lang.String fullName)
fullName
- find this GeoGrid by full namepublic DtCoverage findGridByShortName(java.lang.String shortName)
shortName
- find this GeoGrid by short namepublic DtCoverage findGridByFullName(java.lang.String fullName)
public DtCoverage findGridDatatypeByAttribute(java.lang.String attName, java.lang.String attValue)
public java.lang.String getDetailInfo()
public void getDetailInfo(java.util.Formatter buff)
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException