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 LatLonRect
boundingBox
Deprecated.protected List<VariableSimpleIF>
dataVariables
Deprecated.protected String
desc
Deprecated.protected Date
endDate
Deprecated.protected String
location
Deprecated.protected NetcdfDataset
netcdfDataset
Deprecated.protected StringBuffer
parseInfo
Deprecated.protected Date
startDate
Deprecated.protected String
title
Deprecated.
-
Constructor Summary
Constructors Constructor Description TypedDatasetImpl()
Deprecated.No-arg constructorTypedDatasetImpl(String title, String description, String location)
Deprecated.Constructor when theres no NetcdfFile underneath.TypedDatasetImpl(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 void
close()
Deprecated.Close all resources associated with this dataset.Attribute
findGlobalAttributeIgnoreCase(String name)
Deprecated.LatLonRect
getBoundingBox()
Deprecated.VariableSimpleIF
getDataVariable(String shortName)
Deprecated.Get the named data Variable.List<VariableSimpleIF>
getDataVariables()
Deprecated.The data Variables available in this dataset.String
getDescription()
Deprecated.String
getDetailInfo()
Deprecated.Date
getEndDate()
Deprecated.List<Attribute>
getGlobalAttributes()
Deprecated.List of global attributes.String
getLocation()
Deprecated.String
getLocationURI()
Deprecated.NetcdfFile
getNetcdfFile()
Deprecated.Date
getStartDate()
Deprecated.String
getTitle()
Deprecated.protected void
removeDataVariable(String varName)
Deprecated.protected abstract void
setBoundingBox()
Deprecated.void
setDescription(String desc)
Deprecated.protected abstract void
setEndDate()
Deprecated.void
setLocationURI(String location)
Deprecated.protected abstract void
setStartDate()
Deprecated.void
setTitle(String title)
Deprecated.
-
-
-
Field Detail
-
netcdfDataset
protected 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 LatLonRect boundingBox
Deprecated.
-
dataVariables
protected List<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(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 NetcdfFile getNetcdfFile()
Deprecated.- Specified by:
getNetcdfFile
in interfaceTypedDataset
- Returns:
- underlying NetcdfFile, or null if none.
-
getTitle
public String getTitle()
Deprecated.- Specified by:
getTitle
in interfaceTypedDataset
- Returns:
- Title of the dataset.
-
getDescription
public String getDescription()
Deprecated.- Specified by:
getDescription
in interfaceTypedDataset
- Returns:
- Text information about this dataset.
-
getLocationURI
public String getLocationURI()
Deprecated.- Specified by:
getLocationURI
in interfaceTypedDataset
- Returns:
- The URI location of the dataset
-
getLocation
public String getLocation()
Deprecated.
-
getGlobalAttributes
public List<Attribute> getGlobalAttributes()
Deprecated.Description copied from interface:TypedDataset
List of global attributes.- Specified by:
getGlobalAttributes
in interfaceTypedDataset
- Returns:
- List of type ucar.nc2.Attribute
-
findGlobalAttributeIgnoreCase
public Attribute findGlobalAttributeIgnoreCase(String name)
Deprecated.- Specified by:
findGlobalAttributeIgnoreCase
in interfaceTypedDataset
- Parameters:
name
- attribute name- Returns:
- the global attribute with the given name, ingnoring case.
-
close
public void close() throws IOException
Deprecated.Description copied from interface:TypedDataset
Close all resources associated with this dataset.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceTypedDataset
- Throws:
IOException
- on I/O error
-
getDetailInfo
public String getDetailInfo()
Deprecated.- Specified by:
getDetailInfo
in interfaceTypedDataset
- Returns:
- debug / underlying implementation details
-
getStartDate
public Date getStartDate()
Deprecated.- Specified by:
getStartDate
in interfaceTypedDataset
- Returns:
- Start date for the entire dataset.
-
getEndDate
public Date getEndDate()
Deprecated.- Specified by:
getEndDate
in interfaceTypedDataset
- Returns:
- End date for the entire dataset.
-
getBoundingBox
public LatLonRect getBoundingBox()
Deprecated.- Specified by:
getBoundingBox
in interfaceTypedDataset
- Returns:
- the boundingBox for the entire dataset.
-
getDataVariables
public List<VariableSimpleIF> getDataVariables()
Deprecated.Description copied from interface:TypedDataset
The 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:
getDataVariables
in interfaceTypedDataset
- Returns:
- List of type VariableSimpleIF
-
getDataVariable
public VariableSimpleIF getDataVariable(String shortName)
Deprecated.Description copied from interface:TypedDataset
Get the named data Variable.- Specified by:
getDataVariable
in interfaceTypedDataset
- Parameters:
shortName
- of data Variable.- Returns:
- VariableSimpleIF or null.
-
-