Package ucar.nc2.dt.trajectory
Class MultiTrajectoryObsDataset
- java.lang.Object
-
- ucar.nc2.dt.TypedDatasetImpl
-
- ucar.nc2.dt.trajectory.MultiTrajectoryObsDataset
-
- All Implemented Interfaces:
Closeable,AutoCloseable,TrajectoryObsDataset,TypedDataset
- Direct Known Subclasses:
Float10TrajectoryObsDataset
public class MultiTrajectoryObsDataset extends TypedDatasetImpl implements TrajectoryObsDataset
Deprecated.use ucar.nc2.ft.*Superclass for for implementations of TrajectoryObsDataset using a NetcdfFile underneath that contains multiple trajectories. The file must have two coordinate variables one over time and one over the multiple trajectories, the time dimension may be UNLIMITED (if time is not UNLIMITED, there must be no UNLIMITED dimension). The file must also have a latitude variable, a longitude variable, and an elevation variable each over the time and trajectory dimension. All other trajectory variables must be on the time and trajectory dimension with other dimensions as needed. For instance:traj( traj) - convertable to -> String time( time) - convertable to -> double lat( time, traj) - convertable to -> double lon( time, traj) - convertable to -> double elev( time, traj) - convertable to -> double var1( time, traj[, dim#]*) ... varM( time, traj[, dim#]*)
- Since:
- 13 May 2005 16:12 -0600
-
-
Field Summary
Fields Modifier and Type Field Description protected ucar.nc2.VariableelevVarDeprecated.protected doubleelevVarUnitsConversionFactorDeprecated.protected ucar.nc2.VariablelatVarDeprecated.protected ucar.nc2.VariablelonVarDeprecated.protected ucar.nc2.StructurerecordVarDeprecated.protected ucar.nc2.DimensiontimeDimDeprecated.protected ucar.nc2.VariabletimeVarDeprecated.protected StringtimeVarUnitsStringDeprecated.protected ucar.nc2.DimensiontrajDimDeprecated.protected ListtrajectoriesDeprecated.protected HashMaptrajectoriesMapDeprecated.protected ListtrajectoryIdsDeprecated.protected inttrajectoryNumPointDeprecated.protected HashMaptrajectoryVarsMapDeprecated.protected ucar.nc2.VariabletrajVarDeprecated.-
Fields inherited from class ucar.nc2.dt.TypedDatasetImpl
boundingBox, dataVariables, desc, endDate, location, netcdfDataset, parseInfo, startDate, title
-
-
Constructor Summary
Constructors Constructor Description MultiTrajectoryObsDataset()Deprecated.MultiTrajectoryObsDataset(ucar.nc2.dataset.NetcdfDataset ncfile)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetDetailInfo()Deprecated.protected static doublegetMetersConversionFactor(String unitsString)Deprecated.ListgetTrajectories()Deprecated.Get trajectories contained in this dataset.TrajectoryObsDatatypegetTrajectory(String trajectoryId)Deprecated.Get the named trajectoryListgetTrajectoryIds()Deprecated.Get a list of String IDs for the available trajectories.protected voidsetBoundingBox()Deprecated.protected voidsetEndDate()Deprecated.protected voidsetStartDate()Deprecated.voidsetTrajectoryInfo(ucar.nc2.Dimension trajDim, ucar.nc2.Variable trajVar, ucar.nc2.Dimension timeDim, ucar.nc2.Variable timeVar, ucar.nc2.Variable latVar, ucar.nc2.Variable lonVar, ucar.nc2.Variable elevVar)Deprecated.Setup needed for all MultiTrajectoryObsDatatypes.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
close, findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDataVariables, getDescription, getEndDate, getGlobalAttributes, getLocation, getLocationURI, getNetcdfFile, getStartDate, getTitle, 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
close, findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDataVariables, getDescription, getEndDate, getGlobalAttributes, getLocationURI, getNetcdfFile, getStartDate, getTitle
-
-
-
-
Field Detail
-
trajDim
protected ucar.nc2.Dimension trajDim
Deprecated.
-
trajVar
protected ucar.nc2.Variable trajVar
Deprecated.
-
timeDim
protected ucar.nc2.Dimension timeDim
Deprecated.
-
timeVar
protected ucar.nc2.Variable timeVar
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.
-
timeVarUnitsString
protected String timeVarUnitsString
Deprecated.
-
elevVarUnitsConversionFactor
protected double elevVarUnitsConversionFactor
Deprecated.
-
trajectoryIds
protected List trajectoryIds
Deprecated.
-
trajectories
protected List trajectories
Deprecated.
-
trajectoriesMap
protected HashMap trajectoriesMap
Deprecated.
-
trajectoryNumPoint
protected int trajectoryNumPoint
Deprecated.
-
trajectoryVarsMap
protected HashMap trajectoryVarsMap
Deprecated.
-
-
Method Detail
-
setTrajectoryInfo
public void setTrajectoryInfo(ucar.nc2.Dimension trajDim, ucar.nc2.Variable trajVar, ucar.nc2.Dimension timeDim, ucar.nc2.Variable timeVar, ucar.nc2.Variable latVar, ucar.nc2.Variable lonVar, ucar.nc2.Variable elevVar) throws IOExceptionDeprecated.Setup needed for all MultiTrajectoryObsDatatypes. Units of time varible must be udunits time units. Units of latitude variable must be convertible to "degrees_north" by udunits. Units of longitude variable must be convertible to "degrees_east" by udunits. Units of altitude variable must be convertible to "meters" by udunits.- Throws:
IllegalArgumentException- if units of time, latitude, longitude, or altitude variables are not as required.IOException
-
getMetersConversionFactor
protected static double getMetersConversionFactor(String unitsString) throws Exception
Deprecated.- Throws:
Exception
-
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.
-
setStartDate
protected void setStartDate()
Deprecated.- Specified by:
setStartDatein classTypedDatasetImpl
-
setEndDate
protected void setEndDate()
Deprecated.- Specified by:
setEndDatein classTypedDatasetImpl
-
setBoundingBox
protected void setBoundingBox()
Deprecated.- Specified by:
setBoundingBoxin classTypedDatasetImpl
-
getTrajectoryIds
public List 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
-
getDetailInfo
public String getDetailInfo()
Deprecated.- Specified by:
getDetailInfoin interfaceTypedDataset- Overrides:
getDetailInfoin classTypedDatasetImpl- Returns:
- debug / underlying implementation details
-
-