|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.nc2.dt.TypedDatasetImpl
ucar.nc2.dt.trajectory.SingleTrajectoryObsDataset
public class SingleTrajectoryObsDataset
Superclass for for implementations of TrajectoryObsDataset using a NetcdfFile underneath that contains a single trajectory. The file must have a single coordinate variable for time. 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 on the time dimension only. The data variables also must be on the time dimension but they can also have other dimensions. For instance:
time( time) - convertable to -> double lat( time) - convertable to -> double lon( time) - convertable to -> double elev( time) - convertable to -> double var1( time[, dim#]*) ... varN( time[, dim#]*)
Nested Class Summary | |
---|---|
static class |
SingleTrajectoryObsDataset.Config
Deprecated. |
Field Summary | |
---|---|
protected Variable |
elevVar
Deprecated. |
protected double |
elevVarUnitsConversionFactor
Deprecated. |
protected Variable |
latVar
Deprecated. |
protected Variable |
lonVar
Deprecated. |
protected Structure |
recordVar
Deprecated. |
protected Dimension |
timeDim
Deprecated. |
protected Variable |
timeVar
Deprecated. |
protected String |
timeVarUnitsString
Deprecated. |
protected TrajectoryObsDatatype |
trajectory
Deprecated. |
protected String |
trajectoryId
Deprecated. |
protected int |
trajectoryNumPoint
Deprecated. |
protected HashMap |
trajectoryVarsMap
Deprecated. |
Fields inherited from class ucar.nc2.dt.TypedDatasetImpl |
---|
boundingBox, dataVariables, desc, endDate, location, ncfile, parseInfo, startDate, title |
Constructor Summary | |
---|---|
SingleTrajectoryObsDataset()
Deprecated. |
|
SingleTrajectoryObsDataset(NetcdfDataset ncfile)
Deprecated. |
Method Summary | |
---|---|
String |
getDetailInfo()
Deprecated. |
protected static double |
getMetersConversionFactor(String unitsString)
Deprecated. |
List |
getTrajectories()
Deprecated. Get trajectories contained in this dataset. |
TrajectoryObsDatatype |
getTrajectory(String trajectoryId)
Deprecated. Get the named trajectory |
List |
getTrajectoryIds()
Deprecated. Get a list of String IDs for the available trajectories. |
protected void |
setBoundingBox()
Deprecated. |
protected void |
setEndDate()
Deprecated. |
protected void |
setStartDate()
Deprecated. |
void |
setTrajectoryInfo(SingleTrajectoryObsDataset.Config trajConfig)
Deprecated. Setup needed for all SingleTrajectoryObsDatatypes. |
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 |
---|
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 |
---|
protected String trajectoryId
protected int trajectoryNumPoint
protected HashMap trajectoryVarsMap
protected Dimension timeDim
protected Variable timeVar
protected Structure recordVar
protected Variable latVar
protected Variable lonVar
protected Variable elevVar
protected String timeVarUnitsString
protected double elevVarUnitsConversionFactor
protected TrajectoryObsDatatype trajectory
Constructor Detail |
---|
public SingleTrajectoryObsDataset()
public SingleTrajectoryObsDataset(NetcdfDataset ncfile)
Method Detail |
---|
public void setTrajectoryInfo(SingleTrajectoryObsDataset.Config trajConfig) throws IOException
IllegalArgumentException
- if units of time, latitude, longitude, or altitude variables are not as required.
IllegalStateException
- if this method has already been called.
IOException
protected static double getMetersConversionFactor(String unitsString) throws Exception
Exception
protected void setStartDate()
setStartDate
in class TypedDatasetImpl
protected void setEndDate()
setEndDate
in class TypedDatasetImpl
protected void setBoundingBox()
setBoundingBox
in class TypedDatasetImpl
public List getTrajectoryIds()
TrajectoryObsDataset
getTrajectoryIds
in interface TrajectoryObsDataset
public List getTrajectories()
TrajectoryObsDataset
getTrajectories
in interface TrajectoryObsDataset
public TrajectoryObsDatatype getTrajectory(String trajectoryId)
TrajectoryObsDataset
getTrajectory
in interface TrajectoryObsDataset
trajectoryId
- id of trajectory
public String getDetailInfo()
getDetailInfo
in interface TypedDataset
getDetailInfo
in class TypedDatasetImpl
public boolean syncExtend()
TrajectoryObsDataset
syncExtend
in interface TrajectoryObsDataset
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |