Package ucar.nc2.dt
Class TypedDatasetImpl
- java.lang.Object
-
- ucar.nc2.dt.TypedDatasetImpl
-
- All Implemented Interfaces:
Closeable,AutoCloseable,TypedDataset
- Direct Known Subclasses:
MultiTrajectoryObsDataset,PointObsDatasetImpl,SingleTrajectoryObsDataset,TrajectoryObsDatasetImpl,UnidataTrajectoryObsDataset2
public abstract class TypedDatasetImpl extends Object implements TypedDataset
Deprecated.use ucar.nc2.ft.*Superclass for implementations of TypedDataset.
-
-
Field Summary
Fields Modifier and Type Field Description protected ucar.unidata.geoloc.LatLonRectboundingBoxDeprecated.protected List<ucar.nc2.VariableSimpleIF>dataVariablesDeprecated.protected StringdescDeprecated.protected DateendDateDeprecated.protected StringlocationDeprecated.protected ucar.nc2.dataset.NetcdfDatasetnetcdfDatasetDeprecated.protected StringBufferparseInfoDeprecated.protected DatestartDateDeprecated.protected StringtitleDeprecated.
-
Constructor Summary
Constructors Constructor Description TypedDatasetImpl()Deprecated.No-arg constructorTypedDatasetImpl(String title, String description, String location)Deprecated.Constructor when theres no NetcdfFile underneath.TypedDatasetImpl(ucar.nc2.dataset.NetcdfDataset netcdfDataset)Deprecated.Construtor when theres a NetcdfFile underneath
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.Close all resources associated with this dataset.ucar.nc2.AttributefindGlobalAttributeIgnoreCase(String name)Deprecated.ucar.unidata.geoloc.LatLonRectgetBoundingBox()Deprecated.ucar.nc2.VariableSimpleIFgetDataVariable(String shortName)Deprecated.Get the named data Variable.List<ucar.nc2.VariableSimpleIF>getDataVariables()Deprecated.The data Variables available in this dataset.StringgetDescription()Deprecated.StringgetDetailInfo()Deprecated.DategetEndDate()Deprecated.List<ucar.nc2.Attribute>getGlobalAttributes()Deprecated.List of global attributes.StringgetLocation()Deprecated.StringgetLocationURI()Deprecated.ucar.nc2.NetcdfFilegetNetcdfFile()Deprecated.DategetStartDate()Deprecated.StringgetTitle()Deprecated.protected voidremoveDataVariable(String varName)Deprecated.protected abstract voidsetBoundingBox()Deprecated.voidsetDescription(String desc)Deprecated.protected abstract voidsetEndDate()Deprecated.voidsetLocationURI(String location)Deprecated.protected abstract voidsetStartDate()Deprecated.voidsetTitle(String title)Deprecated.
-
-
-
Field Detail
-
netcdfDataset
protected ucar.nc2.dataset.NetcdfDataset netcdfDataset
Deprecated.
-
title
protected String title
Deprecated.
-
desc
protected String desc
Deprecated.
-
location
protected String location
Deprecated.
-
startDate
protected Date startDate
Deprecated.
-
endDate
protected Date endDate
Deprecated.
-
boundingBox
protected ucar.unidata.geoloc.LatLonRect boundingBox
Deprecated.
-
dataVariables
protected List<ucar.nc2.VariableSimpleIF> dataVariables
Deprecated.
-
parseInfo
protected StringBuffer parseInfo
Deprecated.
-
-
Constructor Detail
-
TypedDatasetImpl
public TypedDatasetImpl()
Deprecated.No-arg constructor
-
TypedDatasetImpl
public TypedDatasetImpl(String title, String description, String location)
Deprecated.Constructor when theres no NetcdfFile underneath.- Parameters:
title- title of the dataset.description- description of the dataset.location- URI of the dataset
-
TypedDatasetImpl
public TypedDatasetImpl(ucar.nc2.dataset.NetcdfDataset netcdfDataset)
Deprecated.Construtor when theres a NetcdfFile underneath- Parameters:
netcdfDataset- adapt this NetcdfDataset
-
-
Method Detail
-
setTitle
public void setTitle(String title)
Deprecated.
-
setDescription
public void setDescription(String desc)
Deprecated.
-
setLocationURI
public void setLocationURI(String location)
Deprecated.
-
setStartDate
protected abstract void setStartDate()
Deprecated.
-
setEndDate
protected abstract void setEndDate()
Deprecated.
-
setBoundingBox
protected abstract void setBoundingBox()
Deprecated.
-
removeDataVariable
protected void removeDataVariable(String varName)
Deprecated.
-
getNetcdfFile
public ucar.nc2.NetcdfFile getNetcdfFile()
Deprecated.- Specified by:
getNetcdfFilein interfaceTypedDataset- Returns:
- underlying NetcdfFile, or null if none.
-
getTitle
public String getTitle()
Deprecated.- Specified by:
getTitlein interfaceTypedDataset- Returns:
- Title of the dataset.
-
getDescription
public String getDescription()
Deprecated.- Specified by:
getDescriptionin interfaceTypedDataset- Returns:
- Text information about this dataset.
-
getLocationURI
public String getLocationURI()
Deprecated.- Specified by:
getLocationURIin interfaceTypedDataset- Returns:
- The URI location of the dataset
-
getLocation
public String getLocation()
Deprecated.
-
getGlobalAttributes
public List<ucar.nc2.Attribute> getGlobalAttributes()
Deprecated.Description copied from interface:TypedDatasetList of global attributes.- Specified by:
getGlobalAttributesin interfaceTypedDataset- Returns:
- List of type ucar.nc2.Attribute
-
findGlobalAttributeIgnoreCase
public ucar.nc2.Attribute findGlobalAttributeIgnoreCase(String name)
Deprecated.- Specified by:
findGlobalAttributeIgnoreCasein interfaceTypedDataset- Parameters:
name- attribute name- Returns:
- the global attribute with the given name, ingnoring case.
-
close
public void close() throws IOExceptionDeprecated.Description copied from interface:TypedDatasetClose all resources associated with this dataset.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceTypedDataset- Throws:
IOException- on I/O error
-
getDetailInfo
public String getDetailInfo()
Deprecated.- Specified by:
getDetailInfoin interfaceTypedDataset- Returns:
- debug / underlying implementation details
-
getStartDate
public Date getStartDate()
Deprecated.- Specified by:
getStartDatein interfaceTypedDataset- Returns:
- Start date for the entire dataset.
-
getEndDate
public Date getEndDate()
Deprecated.- Specified by:
getEndDatein interfaceTypedDataset- Returns:
- End date for the entire dataset.
-
getBoundingBox
public ucar.unidata.geoloc.LatLonRect getBoundingBox()
Deprecated.- Specified by:
getBoundingBoxin interfaceTypedDataset- Returns:
- the boundingBox for the entire dataset.
-
getDataVariables
public List<ucar.nc2.VariableSimpleIF> getDataVariables()
Deprecated.Description copied from interface:TypedDatasetThe data Variables available in this dataset. Should just be data variable others might be searching for, not metadata or coordinate system variables, etc. The shape of this VariableSimpleIF does not necessarily match the- Specified by:
getDataVariablesin interfaceTypedDataset- Returns:
- List of type VariableSimpleIF
-
getDataVariable
public ucar.nc2.VariableSimpleIF getDataVariable(String shortName)
Deprecated.Description copied from interface:TypedDatasetGet the named data Variable.- Specified by:
getDataVariablein interfaceTypedDataset- Parameters:
shortName- of data Variable.- Returns:
- VariableSimpleIF or null.
-
-