|
||||||||||
| 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.UnidataTrajectoryObsDataset2
public class UnidataTrajectoryObsDataset2
Handle trajectory data files that follow the Unidata Observation Dataset convention version 1.0. Documentation on this convention is available at http://www.unidata.ucar.edu/software/netcdf-java/formats/UnidataObsConvention.html
| Field Summary | |
|---|---|
protected TrajectoryObsDataset |
backingTraj
|
protected Variable |
elevVar
|
protected java.lang.String |
elevVarName
|
protected boolean |
isMultiTrajStructure
|
protected boolean |
isTimeDimensionFirst
|
protected Variable |
latVar
|
protected java.lang.String |
latVarName
|
protected Variable |
lonVar
|
protected java.lang.String |
lonVarName
|
protected Structure |
recordVar
|
protected Dimension |
timeDim
|
protected java.lang.String |
timeDimName
|
protected Variable |
timeVar
|
protected java.lang.String |
timeVarName
|
protected Dimension |
trajDim
|
protected java.lang.String |
trajDimName
|
protected Variable |
trajVar
|
protected java.lang.String |
trajVarName
|
| Fields inherited from class ucar.nc2.dt.TypedDatasetImpl |
|---|
boundingBox, dataVariables, desc, endDate, location, ncfile, parseInfo, startDate, title |
| Constructor Summary | |
|---|---|
UnidataTrajectoryObsDataset2()
|
|
UnidataTrajectoryObsDataset2(NetcdfDataset ncd)
|
|
| Method Summary | |
|---|---|
void |
close()
Close all resources associated with this dataset. |
Attribute |
findGlobalAttributeIgnoreCase(java.lang.String name)
|
LatLonRect |
getBoundingBox()
|
VariableSimpleIF |
getDataVariable(java.lang.String shortName)
Get the named data Variable. |
java.util.List<VariableSimpleIF> |
getDataVariables()
The data Variables available in this dataset. |
java.lang.String |
getDescription()
|
java.lang.String |
getDetailInfo()
|
java.util.Date |
getEndDate()
|
java.util.List<Attribute> |
getGlobalAttributes()
List of global attributes. |
java.lang.String |
getLocation()
|
NetcdfFile |
getNetcdfFile()
|
FeatureType |
getScientificDataType()
What kind of cientific data type will this return? |
java.util.Date |
getStartDate()
|
java.lang.String |
getTitle()
|
java.util.List |
getTrajectories()
Get trajectories contained in this dataset. |
TrajectoryObsDatatype |
getTrajectory(java.lang.String trajectoryId)
Get the named trajectory |
java.util.List<java.lang.String> |
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(NetcdfFile ds)
|
TypedDataset |
open(NetcdfDataset ncd,
CancelTask task,
java.lang.StringBuilder errlog)
Open a NetcdfDataset as a TypedDataset. |
protected void |
setBoundingBox()
|
protected void |
setEndDate()
|
protected void |
setStartDate()
|
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 |
|---|
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 |
|---|
protected Variable trajVar
protected Dimension trajDim
protected Variable timeVar
protected Dimension timeDim
protected Structure recordVar
protected Variable latVar
protected Variable lonVar
protected Variable elevVar
protected java.lang.String trajDimName
protected java.lang.String trajVarName
protected java.lang.String timeDimName
protected java.lang.String timeVarName
protected java.lang.String latVarName
protected java.lang.String lonVarName
protected java.lang.String elevVarName
protected boolean isMultiTrajStructure
protected boolean isTimeDimensionFirst
protected TrajectoryObsDataset backingTraj
| Constructor Detail |
|---|
public UnidataTrajectoryObsDataset2()
public UnidataTrajectoryObsDataset2(NetcdfDataset ncd)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public static boolean isValidFile(NetcdfFile ds)
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.StringBuilder 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 FeatureType getScientificDataType()
TypedDatasetFactoryIF
getScientificDataType in interface TypedDatasetFactoryIFpublic java.lang.String getDetailInfo()
getDetailInfo in interface TypedDatasetgetDetailInfo in class TypedDatasetImplpublic java.lang.String getTitle()
getTitle in interface TypedDatasetgetTitle in class TypedDatasetImplpublic java.lang.String getDescription()
getDescription in interface TypedDatasetgetDescription in class TypedDatasetImplpublic java.lang.String getLocation()
getLocation in class TypedDatasetImplprotected void setStartDate()
setStartDate in class TypedDatasetImplpublic java.util.Date getStartDate()
getStartDate in interface TypedDatasetgetStartDate in class TypedDatasetImplprotected void setEndDate()
setEndDate in class TypedDatasetImplpublic java.util.Date getEndDate()
getEndDate in interface TypedDatasetgetEndDate in class TypedDatasetImplprotected void setBoundingBox()
setBoundingBox in class TypedDatasetImplpublic LatLonRect getBoundingBox()
getBoundingBox in interface TypedDatasetgetBoundingBox in class TypedDatasetImplpublic java.util.List<Attribute> getGlobalAttributes()
TypedDataset
getGlobalAttributes in interface TypedDatasetgetGlobalAttributes in class TypedDatasetImplpublic Attribute findGlobalAttributeIgnoreCase(java.lang.String name)
findGlobalAttributeIgnoreCase in interface TypedDatasetfindGlobalAttributeIgnoreCase in class TypedDatasetImplname - attribute name
public java.util.List<VariableSimpleIF> getDataVariables()
TypedDataset
getDataVariables in interface TypedDatasetgetDataVariables in class TypedDatasetImplpublic VariableSimpleIF getDataVariable(java.lang.String shortName)
TypedDataset
getDataVariable in interface TypedDatasetgetDataVariable in class TypedDatasetImplshortName - of data Variable.
public NetcdfFile getNetcdfFile()
getNetcdfFile in interface TypedDatasetgetNetcdfFile in class TypedDatasetImpl
public void close()
throws java.io.IOException
TypedDataset
close in interface TypedDatasetclose in class TypedDatasetImpljava.io.IOException - on I/O errorpublic java.util.List<java.lang.String> 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 TrajectoryObsDatasettrajectoryId - id of trajectory
public boolean syncExtend()
TrajectoryObsDataset
syncExtend in interface TrajectoryObsDataset
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||