|
||||||||||
| 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.ZebraClassTrajectoryObsDataset
public class ZebraClassTrajectoryObsDataset
Implements TrajectoryDataset for datasets with these characteristics:
| Nested Class Summary | |
|---|---|
static class |
SingleTrajectoryObsDataset.Config
|
| Field Summary | |
|---|---|
protected Variable |
elevVar
|
protected double |
elevVarUnitsConversionFactor
|
protected Variable |
latVar
|
protected Variable |
lonVar
|
protected static SimpleUnit |
meterUnit
|
protected Structure |
recordVar
|
protected Dimension |
timeDim
|
protected Variable |
timeVar
|
protected java.lang.String |
timeVarUnitsString
|
protected TrajectoryObsDatatype |
trajectory
|
protected java.lang.String |
trajectoryId
|
protected int |
trajectoryNumPoint
|
protected java.util.HashMap |
trajectoryVarsMap
|
| Fields inherited from class ucar.nc2.dt.TypedDatasetImpl |
|---|
boundingBox, dataVariables, desc, endDate, location, ncfile, parseInfo, startDate, title |
| Constructor Summary | |
|---|---|
ZebraClassTrajectoryObsDataset()
|
|
ZebraClassTrajectoryObsDataset(NetcdfDataset ncd)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getDetailInfo()
Show debug / underlying implementation details |
protected static double |
getMetersConversionFactor(java.lang.String unitsString)
|
DataType |
getScientificDataType()
What kind of cientific data type will this return? |
java.util.List |
getTrajectories()
Get trajectories contained in this dataset. |
TrajectoryObsDatatype |
getTrajectory(java.lang.String trajectoryId)
Get the named trajectory |
java.util.List |
getTrajectoryIds()
Get a list of String IDs for the available trajectories. |
boolean |
isMine(NetcdfDataset ds)
Determine if this dataset belongs to you |
static boolean |
isValidFile(NetcdfDataset ncd)
|
TypedDataset |
open(NetcdfDataset ncd,
CancelTask task,
java.lang.StringBuffer errlog)
Open a NetcdfDataset as a TypedDataset. |
protected void |
setBoundingBox()
|
protected void |
setEndDate()
|
protected void |
setStartDate()
|
void |
setTrajectoryInfo(SingleTrajectoryObsDataset.Config trajConfig)
Setup needed for all SingleTrajectoryObsDatatypes. |
boolean |
syncExtend()
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, 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 java.lang.String trajectoryId
protected int trajectoryNumPoint
protected java.util.HashMap trajectoryVarsMap
protected Dimension timeDim
protected Variable timeVar
protected Structure recordVar
protected Variable latVar
protected Variable lonVar
protected Variable elevVar
protected java.lang.String timeVarUnitsString
protected double elevVarUnitsConversionFactor
protected TrajectoryObsDatatype trajectory
protected static SimpleUnit meterUnit
| Constructor Detail |
|---|
public ZebraClassTrajectoryObsDataset()
public ZebraClassTrajectoryObsDataset(NetcdfDataset ncd)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public static boolean isValidFile(NetcdfDataset ncd)
public boolean isMine(NetcdfDataset ds)
TypedDatasetFactoryIF
isMine in interface TypedDatasetFactoryIFds - examine this NetcdfDataset to see if it belongs to this class.
public TypedDataset open(NetcdfDataset ncd,
CancelTask task,
java.lang.StringBuffer errlog)
throws java.io.IOException
TypedDatasetFactoryIF
open in interface TypedDatasetFactoryIFncd - already opened NetcdfDataset.task - use may cancelerrlog - place errors here
java.io.IOException - on errorpublic DataType getScientificDataType()
TypedDatasetFactoryIF
getScientificDataType in interface TypedDatasetFactoryIF
public void setTrajectoryInfo(SingleTrajectoryObsDataset.Config trajConfig)
throws java.io.IOException
java.lang.IllegalArgumentException - if units of time, latitude, longitude, or altitude variables are not as required.
java.lang.IllegalStateException - if this method has already been called.
java.io.IOException
protected static double getMetersConversionFactor(java.lang.String unitsString)
throws java.lang.Exception
java.lang.Exceptionprotected void setStartDate()
setStartDate in class TypedDatasetImplprotected void setEndDate()
setEndDate in class TypedDatasetImplprotected void setBoundingBox()
setBoundingBox in class TypedDatasetImplpublic java.util.List getTrajectoryIds()
TrajectoryObsDataset
getTrajectoryIds in interface TrajectoryObsDatasetpublic java.util.List getTrajectories()
TrajectoryObsDataset
getTrajectories in interface TrajectoryObsDatasetpublic TrajectoryObsDatatype getTrajectory(java.lang.String trajectoryId)
TrajectoryObsDataset
getTrajectory in interface TrajectoryObsDatasetpublic java.lang.String getDetailInfo()
TypedDataset
getDetailInfo in interface TypedDatasetgetDetailInfo in class TypedDatasetImplpublic boolean syncExtend()
TrajectoryObsDataset
syncExtend in interface TrajectoryObsDataset
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||