|
||||||||||
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 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 here
IOException
- 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 name
public 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 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 |