Package ucar.nc2.dt.trajectory
Class UnidataTrajectoryObsDataset2
- java.lang.Object
-
- ucar.nc2.dt.TypedDatasetImpl
-
- ucar.nc2.dt.trajectory.UnidataTrajectoryObsDataset2
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,TrajectoryObsDataset
,TypedDataset
,TypedDatasetFactoryIF
public class UnidataTrajectoryObsDataset2 extends TypedDatasetImpl implements TrajectoryObsDataset, TypedDatasetFactoryIF
Deprecated.use ucar.nc2.ft.pointHandle trajectory data files that follow the Unidata Observation Dataset convention version 1.0. Documentation on this convention is available at https://www.unidata.ucar.edu/software/netcdf-java/formats/UnidataObsConvention.html- Since:
- 2006-11-17T17:26:14-0700
-
-
Field Summary
Fields Modifier and Type Field Description protected TrajectoryObsDataset
backingTraj
Deprecated.protected Variable
elevVar
Deprecated.protected String
elevVarName
Deprecated.protected boolean
isMultiTrajStructure
Deprecated.protected boolean
isTimeDimensionFirst
Deprecated.protected Variable
latVar
Deprecated.protected String
latVarName
Deprecated.protected Variable
lonVar
Deprecated.protected String
lonVarName
Deprecated.protected Structure
recordVar
Deprecated.protected Dimension
timeDim
Deprecated.protected String
timeDimName
Deprecated.protected Variable
timeVar
Deprecated.protected String
timeVarName
Deprecated.protected Dimension
trajDim
Deprecated.protected String
trajDimName
Deprecated.protected Variable
trajVar
Deprecated.protected String
trajVarName
Deprecated.-
Fields inherited from class ucar.nc2.dt.TypedDatasetImpl
boundingBox, dataVariables, desc, endDate, location, netcdfDataset, parseInfo, startDate, title
-
-
Constructor Summary
Constructors Constructor Description UnidataTrajectoryObsDataset2()
Deprecated.UnidataTrajectoryObsDataset2(NetcdfDataset ncd)
Deprecated.
-
Method Summary
All Methods Static Methods Instance 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.NetcdfFile
getNetcdfFile()
Deprecated.FeatureType
getScientificDataType()
Deprecated.What kind of cientific data type will this return?Date
getStartDate()
Deprecated.String
getTitle()
Deprecated.List
getTrajectories()
Deprecated.Get trajectories contained in this dataset.TrajectoryObsDatatype
getTrajectory(String trajectoryId)
Deprecated.Get the named trajectoryList<String>
getTrajectoryIds()
Deprecated.Get a list of String IDs for the available trajectories.boolean
isMine(NetcdfDataset ds)
Deprecated.Determine if this dataset belongs to youstatic boolean
isValidFile(NetcdfFile ds)
Deprecated.TypedDataset
open(NetcdfDataset ncd, CancelTask task, StringBuilder errlog)
Deprecated.Open a NetcdfDataset as a TypedDataset.protected void
setBoundingBox()
Deprecated.protected void
setEndDate()
Deprecated.protected void
setStartDate()
Deprecated.boolean
syncExtend()
Deprecated.Syncronize with the underlying dataset if it has been extended in a way that is compatible with the existing structural metadata (for instance, if the unlimited dimension has grown).-
Methods inherited from class ucar.nc2.dt.TypedDatasetImpl
getLocationURI, removeDataVariable, setDescription, setLocationURI, setTitle
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ucar.nc2.dt.TypedDataset
getLocationURI
-
-
-
-
Field Detail
-
trajVar
protected Variable trajVar
Deprecated.
-
trajDim
protected Dimension trajDim
Deprecated.
-
timeVar
protected Variable timeVar
Deprecated.
-
timeDim
protected Dimension timeDim
Deprecated.
-
recordVar
protected Structure recordVar
Deprecated.
-
latVar
protected Variable latVar
Deprecated.
-
lonVar
protected Variable lonVar
Deprecated.
-
elevVar
protected Variable elevVar
Deprecated.
-
trajDimName
protected String trajDimName
Deprecated.
-
trajVarName
protected String trajVarName
Deprecated.
-
timeDimName
protected String timeDimName
Deprecated.
-
timeVarName
protected String timeVarName
Deprecated.
-
latVarName
protected String latVarName
Deprecated.
-
lonVarName
protected String lonVarName
Deprecated.
-
elevVarName
protected String elevVarName
Deprecated.
-
isMultiTrajStructure
protected boolean isMultiTrajStructure
Deprecated.
-
isTimeDimensionFirst
protected boolean isTimeDimensionFirst
Deprecated.
-
backingTraj
protected TrajectoryObsDataset backingTraj
Deprecated.
-
-
Constructor Detail
-
UnidataTrajectoryObsDataset2
public UnidataTrajectoryObsDataset2()
Deprecated.
-
UnidataTrajectoryObsDataset2
public UnidataTrajectoryObsDataset2(NetcdfDataset ncd) throws IOException
Deprecated.- Throws:
IOException
-
-
Method Detail
-
isValidFile
public static boolean isValidFile(NetcdfFile ds)
Deprecated.
-
isMine
public boolean isMine(NetcdfDataset ds)
Deprecated.Description copied from interface:TypedDatasetFactoryIF
Determine if this dataset belongs to you- Specified by:
isMine
in interfaceTypedDatasetFactoryIF
- Parameters:
ds
- examine this NetcdfDataset to see if it belongs to this class.- Returns:
- true if this class knows how to create a TypedDataset out of this NetcdfDataset.
-
open
public TypedDataset open(NetcdfDataset ncd, CancelTask task, StringBuilder errlog) throws IOException
Deprecated.Description copied from interface:TypedDatasetFactoryIF
Open a NetcdfDataset as a TypedDataset.- Specified by:
open
in interfaceTypedDatasetFactoryIF
- Parameters:
ncd
- already opened NetcdfDataset.task
- use may cancelerrlog
- place errors here- Returns:
- a subclass of TypedDataset
- Throws:
IOException
- on error
-
getScientificDataType
public FeatureType getScientificDataType()
Deprecated.Description copied from interface:TypedDatasetFactoryIF
What kind of cientific data type will this return?- Specified by:
getScientificDataType
in interfaceTypedDatasetFactoryIF
- Returns:
- scientific data type
-
getDetailInfo
public String getDetailInfo()
Deprecated.- Specified by:
getDetailInfo
in interfaceTypedDataset
- Overrides:
getDetailInfo
in classTypedDatasetImpl
- Returns:
- debug / underlying implementation details
-
getTitle
public String getTitle()
Deprecated.- Specified by:
getTitle
in interfaceTypedDataset
- Overrides:
getTitle
in classTypedDatasetImpl
- Returns:
- Title of the dataset.
-
getDescription
public String getDescription()
Deprecated.- Specified by:
getDescription
in interfaceTypedDataset
- Overrides:
getDescription
in classTypedDatasetImpl
- Returns:
- Text information about this dataset.
-
getLocation
public String getLocation()
Deprecated.- Overrides:
getLocation
in classTypedDatasetImpl
-
setStartDate
protected void setStartDate()
Deprecated.- Specified by:
setStartDate
in classTypedDatasetImpl
-
getStartDate
public Date getStartDate()
Deprecated.- Specified by:
getStartDate
in interfaceTypedDataset
- Overrides:
getStartDate
in classTypedDatasetImpl
- Returns:
- Start date for the entire dataset.
-
setEndDate
protected void setEndDate()
Deprecated.- Specified by:
setEndDate
in classTypedDatasetImpl
-
getEndDate
public Date getEndDate()
Deprecated.- Specified by:
getEndDate
in interfaceTypedDataset
- Overrides:
getEndDate
in classTypedDatasetImpl
- Returns:
- End date for the entire dataset.
-
setBoundingBox
protected void setBoundingBox()
Deprecated.- Specified by:
setBoundingBox
in classTypedDatasetImpl
-
getBoundingBox
public LatLonRect getBoundingBox()
Deprecated.- Specified by:
getBoundingBox
in interfaceTypedDataset
- Overrides:
getBoundingBox
in classTypedDatasetImpl
- Returns:
- the boundingBox for the entire dataset.
-
getGlobalAttributes
public List<Attribute> getGlobalAttributes()
Deprecated.Description copied from interface:TypedDataset
List of global attributes.- Specified by:
getGlobalAttributes
in interfaceTypedDataset
- Overrides:
getGlobalAttributes
in classTypedDatasetImpl
- Returns:
- List of type ucar.nc2.Attribute
-
findGlobalAttributeIgnoreCase
public Attribute findGlobalAttributeIgnoreCase(String name)
Deprecated.- Specified by:
findGlobalAttributeIgnoreCase
in interfaceTypedDataset
- Overrides:
findGlobalAttributeIgnoreCase
in classTypedDatasetImpl
- Parameters:
name
- attribute name- Returns:
- the global attribute with the given name, ingnoring case.
-
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
- Overrides:
getDataVariables
in classTypedDatasetImpl
- 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
- Overrides:
getDataVariable
in classTypedDatasetImpl
- Parameters:
shortName
- of data Variable.- Returns:
- VariableSimpleIF or null.
-
getNetcdfFile
public NetcdfFile getNetcdfFile()
Deprecated.- Specified by:
getNetcdfFile
in interfaceTypedDataset
- Overrides:
getNetcdfFile
in classTypedDatasetImpl
- Returns:
- underlying NetcdfFile, or null if none.
-
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
- Overrides:
close
in classTypedDatasetImpl
- Throws:
IOException
- on I/O error
-
getTrajectoryIds
public List<String> getTrajectoryIds()
Deprecated.Description copied from interface:TrajectoryObsDataset
Get a list of String IDs for the available trajectories.- Specified by:
getTrajectoryIds
in interfaceTrajectoryObsDataset
- Returns:
- list of ids for this dataset
-
getTrajectories
public List getTrajectories()
Deprecated.Description copied from interface:TrajectoryObsDataset
Get trajectories contained in this dataset.- Specified by:
getTrajectories
in interfaceTrajectoryObsDataset
- Returns:
- List of type TrajectoryObsDatatype.
-
getTrajectory
public TrajectoryObsDatatype getTrajectory(String trajectoryId)
Deprecated.Description copied from interface:TrajectoryObsDataset
Get the named trajectory- Specified by:
getTrajectory
in interfaceTrajectoryObsDataset
- Parameters:
trajectoryId
- id of trajectory- Returns:
- the named trajectory
-
syncExtend
public boolean syncExtend()
Deprecated.Description copied from interface:TrajectoryObsDataset
Syncronize with the underlying dataset if it has been extended in a way that is compatible with the existing structural metadata (for instance, if the unlimited dimension has grown). Return true if syncronization was needed and sucessful. Otherwise, return false. NOTE: For now, assuming growth of the unlimited dimension only allowed change. To get range for new extent only, use getRange( oldNumPoints + 1, newNumPoints, 1)- Specified by:
syncExtend
in interfaceTrajectoryObsDataset
- Returns:
- true if syncronization was needed and sucessful, otherwise false.
-
-