public class SimpleGeometryFeatureDataset extends java.lang.Object implements FeatureDataset
Modifier and Type | Class and Description |
---|---|
static class |
SimpleGeometryFeatureDataset.SimpleGeometryCovSet
This is a set of GeoGrids with the same GeoCoordSys.
|
Constructor and Description |
---|
SimpleGeometryFeatureDataset(NetcdfDataset ncd)
Create a SimpleGeometryFeatureDataset from a NetcdfDataset.
|
Modifier and Type | Method and Description |
---|---|
AttributeContainer |
attributes()
Get the global attributes.
|
void |
close()
Close all resources associated with this dataset.
|
Attribute |
findGlobalAttributeIgnoreCase(java.lang.String name)
Deprecated.
use attributes()
|
LatLonRect |
getBoundingBox()
The lat/lon boundingBox for the entire dataset.
|
CalendarDate |
getCalendarDateEnd()
Ending Calendar date for the entire dataset.
|
CalendarDateRange |
getCalendarDateRange()
Calendar Date range for the entire dataset.
|
CalendarDate |
getCalendarDateStart()
Starting Calendar date for the entire dataset.
|
VariableSimpleIF |
getDataVariable(java.lang.String shortName)
Get the named data Variable.
|
java.util.List<VariableSimpleIF> |
getDataVariables()
The data Variables available in this dataset.
|
java.lang.String |
getDescription()
Text information about this dataset.
|
void |
getDetailInfo(java.util.Formatter sf)
Show debug / underlying implementation details
|
FeatureType |
getFeatureType()
Contains collections of this FeatureType.
|
java.util.List<Attribute> |
getGlobalAttributes()
Deprecated.
use attributes()
|
java.lang.String |
getImplementationName()
Show who is implementing
|
long |
getLastModified()
Returns the time that the underlying file(s) were last modified.
|
java.lang.String |
getLocation()
The URI location of the dataset
|
java.lang.String |
getName()
the name of the dataset is the last part of the location
|
NetcdfDataset |
getNetcdfDataset() |
NetcdfFile |
getNetcdfFile()
Return underlying NetcdfFile, or null if none.
|
java.lang.String |
getTitle()
Title of the dataset.
|
static SimpleGeometryFeatureDataset |
open(java.lang.String location)
Open a netcdf dataset, using NetcdfDataset.defaultEnhanceMode plus CoordSystems
and turn into a SimpleGeometryFeatureDataset.
|
static SimpleGeometryFeatureDataset |
open(java.lang.String location,
java.util.Set<NetcdfDataset.Enhance> enhanceMode)
Open a netcdf dataset, using NetcdfDataset.defaultEnhanceMode plus CoordSystems
and turn into a SimpleGeometryFeatureDataset.
|
void |
reacquire()
Deprecated.
do not use
|
void |
release()
Deprecated.
do not use
|
void |
setFileCache(FileCacheIF fileCache)
Deprecated.
do not use
|
public SimpleGeometryFeatureDataset(NetcdfDataset ncd) throws java.io.IOException
ncd
- underlying NetcdfDataset, will do Enhance.CoordSystems if not already done.java.io.IOException
- on read errorpublic static SimpleGeometryFeatureDataset open(java.lang.String location) throws java.io.IOException
location
- netcdf dataset to open, using NetcdfDataset.acquireDataset().java.io.IOException
- on read errorNetcdfDataset.acquireDataset(ucar.nc2.dataset.DatasetUrl, ucar.nc2.util.CancelTask)
public static SimpleGeometryFeatureDataset open(java.lang.String location, java.util.Set<NetcdfDataset.Enhance> enhanceMode) throws java.io.IOException
location
- netcdf dataset to open, using NetcdfDataset.acquireDataset().enhanceMode
- open netcdf dataset with this enhanceModejava.io.IOException
- on read errorNetcdfDataset.acquireDataset(ucar.nc2.dataset.DatasetUrl, ucar.nc2.util.CancelTask)
public java.lang.String getTitle()
FeatureDataset
getTitle
in interface FeatureDataset
public java.lang.String getDescription()
FeatureDataset
getDescription
in interface FeatureDataset
public java.lang.String getLocation()
FeatureDataset
getLocation
in interface FeatureDataset
getLocation
in interface FileCacheable
public CalendarDateRange getCalendarDateRange()
FeatureDataset
getCalendarDateRange
in interface FeatureDataset
public CalendarDate getCalendarDateStart()
FeatureDataset
getCalendarDateStart
in interface FeatureDataset
public CalendarDate getCalendarDateEnd()
FeatureDataset
getCalendarDateEnd
in interface FeatureDataset
public LatLonRect getBoundingBox()
FeatureDataset
getBoundingBox
in interface FeatureDataset
public AttributeContainer attributes()
FeatureDataset
attributes
in interface FeatureDataset
@Deprecated public java.util.List<Attribute> getGlobalAttributes()
FeatureDataset
getGlobalAttributes
in interface FeatureDataset
@Deprecated public Attribute findGlobalAttributeIgnoreCase(java.lang.String name)
FeatureDataset
findGlobalAttributeIgnoreCase
in interface FeatureDataset
name
- attribute namepublic java.util.List<VariableSimpleIF> getDataVariables()
FeatureDataset
getDataVariables
in interface FeatureDataset
public VariableSimpleIF getDataVariable(java.lang.String shortName)
FeatureDataset
getDataVariable
in interface FeatureDataset
shortName
- of data Variable.public NetcdfFile getNetcdfFile()
FeatureDataset
getNetcdfFile
in interface FeatureDataset
public void close() throws java.io.IOException
FeatureDataset
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface FeatureDataset
close
in interface FileCacheable
java.io.IOException
- on io errorpublic long getLastModified()
FileCacheable
FileFactory
.getLastModified
in interface FileCacheable
long
value representing the time the file(s) were last modified or 0L
if the
last-modified time couldn't be determined for any reason.@Deprecated public void setFileCache(FileCacheIF fileCache)
FileCacheable
public synchronized void close() throws java.io.IOException { if (cache != null) { if (cache.release(this)) return; } reallyClose(); }
setFileCache
in interface FileCacheable
fileCache
- must store this, use it on close as above.public void getDetailInfo(java.util.Formatter sf)
FeatureDataset
getDetailInfo
in interface FeatureDataset
sf
- append info herepublic java.lang.String getName()
public NetcdfDataset getNetcdfDataset()
public FeatureType getFeatureType()
FeatureDataset
getFeatureType
in interface FeatureDataset
public java.lang.String getImplementationName()
FeatureDataset
getImplementationName
in interface FeatureDataset
@Deprecated public void release() throws java.io.IOException
FileCacheable
release
in interface FileCacheable
java.io.IOException
@Deprecated public void reacquire() throws java.io.IOException
FileCacheable
reacquire
in interface FileCacheable
java.io.IOException