|
|||||||||
| 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 String |
elevVarName
|
protected boolean |
isMultiTrajStructure
|
protected boolean |
isTimeDimensionFirst
|
protected Variable |
latVar
|
protected String |
latVarName
|
protected Variable |
lonVar
|
protected String |
lonVarName
|
protected Structure |
recordVar
|
protected Dimension |
timeDim
|
protected String |
timeDimName
|
protected Variable |
timeVar
|
protected String |
timeVarName
|
protected Dimension |
trajDim
|
protected String |
trajDimName
|
protected Variable |
trajVar
|
protected 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(String name)
|
LatLonRect |
getBoundingBox()
|
VariableSimpleIF |
getDataVariable(String shortName)
Get the named data Variable. |
List<VariableSimpleIF> |
getDataVariables()
The data Variables available in this dataset. |
String |
getDescription()
|
String |
getDetailInfo()
|
Date |
getEndDate()
|
List<Attribute> |
getGlobalAttributes()
List of global attributes. |
String |
getLocation()
|
NetcdfFile |
getNetcdfFile()
|
FeatureType |
getScientificDataType()
What kind of cientific data type will this return? |
Date |
getStartDate()
|
String |
getTitle()
|
List |
getTrajectories()
Get trajectories contained in this dataset. |
TrajectoryObsDatatype |
getTrajectory(String trajectoryId)
Get the named trajectory |
List<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,
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 String trajDimName
protected String trajVarName
protected String timeDimName
protected String timeVarName
protected String latVarName
protected String lonVarName
protected String elevVarName
protected boolean isMultiTrajStructure
protected boolean isTimeDimensionFirst
protected TrajectoryObsDataset backingTraj
| Constructor Detail |
|---|
public UnidataTrajectoryObsDataset2()
public UnidataTrajectoryObsDataset2(NetcdfDataset ncd)
throws IOException
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,
StringBuilder errlog)
throws IOException
TypedDatasetFactoryIF
open in interface TypedDatasetFactoryIFncd - already opened NetcdfDataset.task - use may cancelerrlog - place errors here
IOException - on errorpublic FeatureType getScientificDataType()
TypedDatasetFactoryIF
getScientificDataType in interface TypedDatasetFactoryIFpublic String getDetailInfo()
getDetailInfo in interface TypedDatasetgetDetailInfo in class TypedDatasetImplpublic String getTitle()
getTitle in interface TypedDatasetgetTitle in class TypedDatasetImplpublic String getDescription()
getDescription in interface TypedDatasetgetDescription in class TypedDatasetImplpublic String getLocation()
getLocation in class TypedDatasetImplprotected void setStartDate()
setStartDate in class TypedDatasetImplpublic Date getStartDate()
getStartDate in interface TypedDatasetgetStartDate in class TypedDatasetImplprotected void setEndDate()
setEndDate in class TypedDatasetImplpublic Date getEndDate()
getEndDate in interface TypedDatasetgetEndDate in class TypedDatasetImplprotected void setBoundingBox()
setBoundingBox in class TypedDatasetImplpublic LatLonRect getBoundingBox()
getBoundingBox in interface TypedDatasetgetBoundingBox in class TypedDatasetImplpublic List<Attribute> getGlobalAttributes()
TypedDataset
getGlobalAttributes in interface TypedDatasetgetGlobalAttributes in class TypedDatasetImplpublic Attribute findGlobalAttributeIgnoreCase(String name)
findGlobalAttributeIgnoreCase in interface TypedDatasetfindGlobalAttributeIgnoreCase in class TypedDatasetImplname - attribute name
public List<VariableSimpleIF> getDataVariables()
TypedDataset
getDataVariables in interface TypedDatasetgetDataVariables in class TypedDatasetImplpublic VariableSimpleIF getDataVariable(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 IOException
TypedDataset
close in interface TypedDatasetclose in class TypedDatasetImplIOException - on I/O errorpublic List<String> getTrajectoryIds()
TrajectoryObsDataset
getTrajectoryIds in interface TrajectoryObsDatasetpublic List getTrajectories()
TrajectoryObsDataset
getTrajectories in interface TrajectoryObsDatasetpublic TrajectoryObsDatatype getTrajectory(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 | ||||||||