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 TrajectoryObsDatasetbackingTrajDeprecated.protected ucar.nc2.VariableelevVarDeprecated.protected StringelevVarNameDeprecated.protected booleanisMultiTrajStructureDeprecated.protected booleanisTimeDimensionFirstDeprecated.protected ucar.nc2.VariablelatVarDeprecated.protected StringlatVarNameDeprecated.protected ucar.nc2.VariablelonVarDeprecated.protected StringlonVarNameDeprecated.protected ucar.nc2.StructurerecordVarDeprecated.protected ucar.nc2.DimensiontimeDimDeprecated.protected StringtimeDimNameDeprecated.protected ucar.nc2.VariabletimeVarDeprecated.protected StringtimeVarNameDeprecated.protected ucar.nc2.DimensiontrajDimDeprecated.protected StringtrajDimNameDeprecated.protected ucar.nc2.VariabletrajVarDeprecated.protected StringtrajVarNameDeprecated.-
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(ucar.nc2.dataset.NetcdfDataset ncd)Deprecated.
-
Method Summary
All Methods Static Methods Instance 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.ucar.nc2.NetcdfFilegetNetcdfFile()Deprecated.ucar.nc2.constants.FeatureTypegetScientificDataType()Deprecated.What kind of cientific data type will this return?DategetStartDate()Deprecated.StringgetTitle()Deprecated.ListgetTrajectories()Deprecated.Get trajectories contained in this dataset.TrajectoryObsDatatypegetTrajectory(String trajectoryId)Deprecated.Get the named trajectoryList<String>getTrajectoryIds()Deprecated.Get a list of String IDs for the available trajectories.booleanisMine(ucar.nc2.dataset.NetcdfDataset ds)Deprecated.Determine if this dataset belongs to youstatic booleanisValidFile(ucar.nc2.NetcdfFile ds)Deprecated.TypedDatasetopen(ucar.nc2.dataset.NetcdfDataset ncd, ucar.nc2.util.CancelTask task, StringBuilder errlog)Deprecated.Open a NetcdfDataset as a TypedDataset.protected voidsetBoundingBox()Deprecated.protected voidsetEndDate()Deprecated.protected voidsetStartDate()Deprecated.booleansyncExtend()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 ucar.nc2.Variable trajVar
Deprecated.
-
trajDim
protected ucar.nc2.Dimension trajDim
Deprecated.
-
timeVar
protected ucar.nc2.Variable timeVar
Deprecated.
-
timeDim
protected ucar.nc2.Dimension timeDim
Deprecated.
-
recordVar
protected ucar.nc2.Structure recordVar
Deprecated.
-
latVar
protected ucar.nc2.Variable latVar
Deprecated.
-
lonVar
protected ucar.nc2.Variable lonVar
Deprecated.
-
elevVar
protected ucar.nc2.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(ucar.nc2.dataset.NetcdfDataset ncd) throws IOExceptionDeprecated.- Throws:
IOException
-
-
Method Detail
-
isValidFile
public static boolean isValidFile(ucar.nc2.NetcdfFile ds)
Deprecated.
-
isMine
public boolean isMine(ucar.nc2.dataset.NetcdfDataset ds)
Deprecated.Description copied from interface:TypedDatasetFactoryIFDetermine if this dataset belongs to you- Specified by:
isMinein 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(ucar.nc2.dataset.NetcdfDataset ncd, ucar.nc2.util.CancelTask task, StringBuilder errlog) throws IOException
Deprecated.Description copied from interface:TypedDatasetFactoryIFOpen a NetcdfDataset as a TypedDataset.- Specified by:
openin interfaceTypedDatasetFactoryIF- Parameters:
ncd- already opened NetcdfDataset.task- use may cancelerrlog- place errors here- Returns:
- a subclass of TypedDataset
- Throws:
IOException- on error
-
getScientificDataType
public ucar.nc2.constants.FeatureType getScientificDataType()
Deprecated.Description copied from interface:TypedDatasetFactoryIFWhat kind of cientific data type will this return?- Specified by:
getScientificDataTypein interfaceTypedDatasetFactoryIF- Returns:
- scientific data type
-
getDetailInfo
public String getDetailInfo()
Deprecated.- Specified by:
getDetailInfoin interfaceTypedDataset- Overrides:
getDetailInfoin classTypedDatasetImpl- Returns:
- debug / underlying implementation details
-
getTitle
public String getTitle()
Deprecated.- Specified by:
getTitlein interfaceTypedDataset- Overrides:
getTitlein classTypedDatasetImpl- Returns:
- Title of the dataset.
-
getDescription
public String getDescription()
Deprecated.- Specified by:
getDescriptionin interfaceTypedDataset- Overrides:
getDescriptionin classTypedDatasetImpl- Returns:
- Text information about this dataset.
-
getLocation
public String getLocation()
Deprecated.- Overrides:
getLocationin classTypedDatasetImpl
-
setStartDate
protected void setStartDate()
Deprecated.- Specified by:
setStartDatein classTypedDatasetImpl
-
getStartDate
public Date getStartDate()
Deprecated.- Specified by:
getStartDatein interfaceTypedDataset- Overrides:
getStartDatein classTypedDatasetImpl- Returns:
- Start date for the entire dataset.
-
setEndDate
protected void setEndDate()
Deprecated.- Specified by:
setEndDatein classTypedDatasetImpl
-
getEndDate
public Date getEndDate()
Deprecated.- Specified by:
getEndDatein interfaceTypedDataset- Overrides:
getEndDatein classTypedDatasetImpl- Returns:
- End date for the entire dataset.
-
setBoundingBox
protected void setBoundingBox()
Deprecated.- Specified by:
setBoundingBoxin classTypedDatasetImpl
-
getBoundingBox
public ucar.unidata.geoloc.LatLonRect getBoundingBox()
Deprecated.- Specified by:
getBoundingBoxin interfaceTypedDataset- Overrides:
getBoundingBoxin classTypedDatasetImpl- Returns:
- the boundingBox for the entire dataset.
-
getGlobalAttributes
public List<ucar.nc2.Attribute> getGlobalAttributes()
Deprecated.Description copied from interface:TypedDatasetList of global attributes.- Specified by:
getGlobalAttributesin interfaceTypedDataset- Overrides:
getGlobalAttributesin classTypedDatasetImpl- Returns:
- List of type ucar.nc2.Attribute
-
findGlobalAttributeIgnoreCase
public ucar.nc2.Attribute findGlobalAttributeIgnoreCase(String name)
Deprecated.- Specified by:
findGlobalAttributeIgnoreCasein interfaceTypedDataset- Overrides:
findGlobalAttributeIgnoreCasein classTypedDatasetImpl- Parameters:
name- attribute name- Returns:
- the global attribute with the given name, ingnoring case.
-
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- Overrides:
getDataVariablesin classTypedDatasetImpl- 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- Overrides:
getDataVariablein classTypedDatasetImpl- Parameters:
shortName- of data Variable.- Returns:
- VariableSimpleIF or null.
-
getNetcdfFile
public ucar.nc2.NetcdfFile getNetcdfFile()
Deprecated.- Specified by:
getNetcdfFilein interfaceTypedDataset- Overrides:
getNetcdfFilein classTypedDatasetImpl- Returns:
- underlying NetcdfFile, or null if none.
-
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- Overrides:
closein classTypedDatasetImpl- Throws:
IOException- on I/O error
-
getTrajectoryIds
public List<String> getTrajectoryIds()
Deprecated.Description copied from interface:TrajectoryObsDatasetGet a list of String IDs for the available trajectories.- Specified by:
getTrajectoryIdsin interfaceTrajectoryObsDataset- Returns:
- list of ids for this dataset
-
getTrajectories
public List getTrajectories()
Deprecated.Description copied from interface:TrajectoryObsDatasetGet trajectories contained in this dataset.- Specified by:
getTrajectoriesin interfaceTrajectoryObsDataset- Returns:
- List of type TrajectoryObsDatatype.
-
getTrajectory
public TrajectoryObsDatatype getTrajectory(String trajectoryId)
Deprecated.Description copied from interface:TrajectoryObsDatasetGet the named trajectory- Specified by:
getTrajectoryin interfaceTrajectoryObsDataset- Parameters:
trajectoryId- id of trajectory- Returns:
- the named trajectory
-
syncExtend
public boolean syncExtend()
Deprecated.Description copied from interface:TrajectoryObsDatasetSyncronize 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:
syncExtendin interfaceTrajectoryObsDataset- Returns:
- true if syncronization was needed and sucessful, otherwise false.
-
-