|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.ft.FeatureDatasetImpl
public abstract class FeatureDatasetImpl
Abstract superclass for implementations of FeatureDataset. Subclass must implement getFeatureClass(), and add specific functionality.
| Field Summary | |
|---|---|
protected LatLonRect |
boundingBox
|
protected java.util.List<VariableSimpleIF> |
dataVariables
|
protected DateRange |
dateRange
|
protected java.lang.String |
desc
|
protected java.lang.String |
location
|
protected NetcdfDataset |
ncfile
|
protected java.util.Formatter |
parseInfo
|
protected java.lang.String |
title
|
| Constructor Summary | |
|---|---|
|
FeatureDatasetImpl()
No-arg constuctor |
protected |
FeatureDatasetImpl(FeatureDatasetImpl from)
|
|
FeatureDatasetImpl(NetcdfDataset ncfile)
Construtor when theres a NetcdfFile underneath |
|
FeatureDatasetImpl(java.lang.String title,
java.lang.String description,
java.lang.String location)
Constructor when theres no NetcdfFile underneath. |
| Method Summary | |
|---|---|
void |
close()
Close all resources associated with this dataset. |
Attribute |
findGlobalAttributeIgnoreCase(java.lang.String name)
Return the global attribute with the given name, ignoring case. |
LatLonRect |
getBoundingBox()
The boundingBox 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. |
DateRange |
getDateRange()
Date range for the entire dataset. |
java.lang.String |
getDescription()
Text information about this dataset. |
void |
getDetailInfo(java.util.Formatter sf)
Show debug / underlying implementation details |
java.util.Date |
getEndDate()
Ending date for the entire dataset. |
java.util.List<Attribute> |
getGlobalAttributes()
List of global attributes. |
java.lang.String |
getLocationURI()
The URI location of the dataset |
NetcdfFile |
getNetcdfFile()
Return underlying NetcdfFile, or null if none. |
java.util.Date |
getStartDate()
Starting date for the entire dataset. |
java.lang.String |
getTitle()
Title of the dataset. |
protected void |
removeDataVariable(java.lang.String varName)
|
protected void |
setBoundingBox(LatLonRect boundingBox)
|
protected void |
setDateRange(DateRange dateRange)
|
protected void |
setDescription(java.lang.String desc)
|
protected void |
setLocationURI(java.lang.String location)
|
protected void |
setTitle(java.lang.String title)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ucar.nc2.ft.FeatureDataset |
|---|
getFeatureType |
| Field Detail |
|---|
protected NetcdfDataset ncfile
protected java.lang.String title
protected java.lang.String desc
protected java.lang.String location
protected java.util.List<VariableSimpleIF> dataVariables
protected java.util.Formatter parseInfo
protected DateRange dateRange
protected LatLonRect boundingBox
| Constructor Detail |
|---|
protected FeatureDatasetImpl(FeatureDatasetImpl from)
public FeatureDatasetImpl()
public FeatureDatasetImpl(java.lang.String title,
java.lang.String description,
java.lang.String location)
title - title of the dataset.description - description of the dataset.location - URI of the datasetpublic FeatureDatasetImpl(NetcdfDataset ncfile)
ncfile - adapt this NetcdfDataset| Method Detail |
|---|
protected void setTitle(java.lang.String title)
protected void setDescription(java.lang.String desc)
protected void setLocationURI(java.lang.String location)
protected void setDateRange(DateRange dateRange)
protected void setBoundingBox(LatLonRect boundingBox)
protected void removeDataVariable(java.lang.String varName)
public NetcdfFile getNetcdfFile()
FeatureDataset
getNetcdfFile in interface FeatureDatasetpublic java.lang.String getTitle()
FeatureDataset
getTitle in interface FeatureDatasetpublic java.lang.String getDescription()
FeatureDataset
getDescription in interface FeatureDatasetpublic java.lang.String getLocationURI()
FeatureDataset
getLocationURI in interface FeatureDatasetpublic java.util.List<Attribute> getGlobalAttributes()
FeatureDataset
getGlobalAttributes in interface FeatureDatasetpublic Attribute findGlobalAttributeIgnoreCase(java.lang.String name)
FeatureDataset
findGlobalAttributeIgnoreCase in interface FeatureDatasetname - attribute name
public void close()
throws java.io.IOException
FeatureDataset
close in interface FeatureDatasetjava.io.IOException - on i/o errorpublic void getDetailInfo(java.util.Formatter sf)
FeatureDataset
getDetailInfo in interface FeatureDatasetsf - append info herepublic DateRange getDateRange()
FeatureDataset
getDateRange in interface FeatureDatasetpublic java.util.Date getStartDate()
FeatureDataset
getStartDate in interface FeatureDatasetpublic java.util.Date getEndDate()
FeatureDataset
getEndDate in interface FeatureDatasetpublic LatLonRect getBoundingBox()
FeatureDataset
getBoundingBox in interface FeatureDatasetpublic java.util.List<VariableSimpleIF> getDataVariables()
FeatureDataset
getDataVariables in interface FeatureDatasetpublic VariableSimpleIF getDataVariable(java.lang.String shortName)
FeatureDataset
getDataVariable in interface FeatureDatasetshortName - of data Variable.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||