public class UnidataTrajectoryObsDataset2 extends TypedDatasetImpl implements TrajectoryObsDataset, TypedDatasetFactoryIF
Modifier and Type | Field and Description |
---|---|
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 |
boundingBox, dataVariables, desc, endDate, location, ncfile, parseInfo, startDate, title
Constructor and Description |
---|
UnidataTrajectoryObsDataset2() |
UnidataTrajectoryObsDataset2(NetcdfDataset ncd) |
Modifier and Type | Method and Description |
---|---|
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).
|
getLocationURI, removeDataVariable, setDescription, setLocationURI, setTitle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLocationURI
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
public UnidataTrajectoryObsDataset2()
public UnidataTrajectoryObsDataset2(NetcdfDataset ncd) throws IOException
IOException
public static boolean isValidFile(NetcdfFile ds)
public boolean isMine(NetcdfDataset ds)
TypedDatasetFactoryIF
isMine
in interface TypedDatasetFactoryIF
ds
- 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 TypedDatasetFactoryIF
ncd
- already opened NetcdfDataset.task
- use may cancelerrlog
- place errors hereIOException
- on errorpublic FeatureType getScientificDataType()
TypedDatasetFactoryIF
getScientificDataType
in interface TypedDatasetFactoryIF
public String getDetailInfo()
getDetailInfo
in interface TypedDataset
getDetailInfo
in class TypedDatasetImpl
public String getTitle()
getTitle
in interface TypedDataset
getTitle
in class TypedDatasetImpl
public String getDescription()
getDescription
in interface TypedDataset
getDescription
in class TypedDatasetImpl
public String getLocation()
getLocation
in class TypedDatasetImpl
protected void setStartDate()
setStartDate
in class TypedDatasetImpl
public Date getStartDate()
getStartDate
in interface TypedDataset
getStartDate
in class TypedDatasetImpl
protected void setEndDate()
setEndDate
in class TypedDatasetImpl
public Date getEndDate()
getEndDate
in interface TypedDataset
getEndDate
in class TypedDatasetImpl
protected void setBoundingBox()
setBoundingBox
in class TypedDatasetImpl
public LatLonRect getBoundingBox()
getBoundingBox
in interface TypedDataset
getBoundingBox
in class TypedDatasetImpl
public List<Attribute> getGlobalAttributes()
TypedDataset
getGlobalAttributes
in interface TypedDataset
getGlobalAttributes
in class TypedDatasetImpl
public Attribute findGlobalAttributeIgnoreCase(String name)
findGlobalAttributeIgnoreCase
in interface TypedDataset
findGlobalAttributeIgnoreCase
in class TypedDatasetImpl
name
- attribute namepublic List<VariableSimpleIF> getDataVariables()
TypedDataset
getDataVariables
in interface TypedDataset
getDataVariables
in class TypedDatasetImpl
public VariableSimpleIF getDataVariable(String shortName)
TypedDataset
getDataVariable
in interface TypedDataset
getDataVariable
in class TypedDatasetImpl
shortName
- of data Variable.public NetcdfFile getNetcdfFile()
getNetcdfFile
in interface TypedDataset
getNetcdfFile
in class TypedDatasetImpl
public void close() throws IOException
TypedDataset
close
in interface TypedDataset
close
in class TypedDatasetImpl
IOException
- on I/O errorpublic List<String> 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 trajectorypublic boolean syncExtend()
TrajectoryObsDataset
syncExtend
in interface TrajectoryObsDataset
Copyright © 1999–2014 UCAR/Unidata. All rights reserved.