public interface TrajectoryObsDatatype
| Modifier and Type | Method and Description |
|---|---|
LatLonRect |
getBoundingBox()
BoundingBox for the trajectory.
|
StructureData |
getData(int point)
Get values for all parameters (except time, lat, lon, and elev) at the requested
trajectory point.
|
Array |
getData(int point,
String parameterName) |
Array |
getData(Range range,
String parameterName)
Get the values of the requested parameter on the given Range of the trajectory.
|
DataIterator |
getDataIterator(int bufferSize)
Get an efficient iterator over all the data in the Trajectory in time order.
|
VariableSimpleIF |
getDataVariable(String name)
Get the named data Variable.
|
List |
getDataVariables()
Return a list of the data Variables available in this dataset.
|
String |
getDescription()
A description of the trajectory.
|
double |
getElevation(int point)
Return the elevation at the requested trajectory point in units of meters, missing values = NaN.
|
Array |
getElevation(Range range)
Get the elevation values on the given Range of the trajectory.
|
Date |
getEndDate()
End date for the trajectory.
|
Range |
getFullRange()
Get the range for the entire trajectory.
|
String |
getId()
The ID of the trajectory, may not be null.
|
double |
getLatitude(int point)
Return the latitude at the requested trajectory point in units of "degrees_north".
|
Array |
getLatitude(Range range)
Get the latitude values on the given Range of the trajectory.
|
EarthLocation |
getLocation(int point)
Return the location for the given point.
|
double |
getLongitude(int point)
Return the longitude at the requested trajectory point in units of "degrees_east".
|
Array |
getLongitude(Range range)
Get the longitude values on the given Range of the trajectory.
|
int |
getNumberPoints()
The number of points along the trajectory.
|
PointObsDatatype |
getPointObsData(int point)
Get a PointObsDatatype for the requested trajectory point.
|
Range |
getPointRange(int point)
Get a range for a single point in the trajectory.
|
Range |
getRange(int start,
int end,
int stride)
Get a range with the given start, end, and stride in the trajectory.
|
Date |
getStartDate()
Start date for the trajectory.
|
Date |
getTime(int point)
Return the time for the given point as a java.util.Date.
|
Array |
getTime(Range range)
Get the time values on the given Range of the trajectory.
|
String |
getTimeUnitsIdentifier()
Return the String representation of the units for time.
|
double |
getTimeValue(int point)
Return the time for the given point as a double in the units given by getTimeUnitsIdentifier().
|
String getId()
String getDescription()
int getNumberPoints()
List getDataVariables()
VariableSimpleIF getDataVariable(String name)
name - of data Variable.PointObsDatatype getPointObsData(int point) throws IOException
point - the point along the trajectoryIOExceptionDate getStartDate()
Date getEndDate()
LatLonRect getBoundingBox()
Date getTime(int point) throws IOException
IOExceptionEarthLocation getLocation(int point) throws IOException
IOExceptiondouble getTimeValue(int point)
throws IOException
IOExceptionString getTimeUnitsIdentifier()
double getLatitude(int point)
throws IOException
IOExceptiondouble getLongitude(int point)
throws IOException
IOExceptiondouble getElevation(int point)
throws IOException
IOExceptionStructureData getData(int point) throws IOException, InvalidRangeException
point - the index point into the trajectoryIOException - if problems reading data.InvalidRangeExceptionArray getData(int point, String parameterName) throws IOException
IOExceptionDataIterator getDataIterator(int bufferSize) throws IOException
This is accomplished by buffering bufferSize amount of data at once. You must fully process the data, or copy it out of the StructureData, as you iterate over it, in order for the garbage collector to work.
We dont need a cancelTask, just stop the iteration if the user want to cancel.
bufferSize - if > 0, the internal buffer size, else use the default. Typically 100k - 1M for best results.IOExceptionRange getFullRange()
Range getPointRange(int point) throws InvalidRangeException
InvalidRangeExceptionRange getRange(int start, int end, int stride) throws InvalidRangeException
InvalidRangeExceptionArray getTime(Range range) throws IOException, InvalidRangeException
IOExceptionInvalidRangeExceptionArray getLatitude(Range range) throws IOException, InvalidRangeException
IOExceptionInvalidRangeExceptionArray getLongitude(Range range) throws IOException, InvalidRangeException
IOExceptionInvalidRangeExceptionArray getElevation(Range range) throws IOException, InvalidRangeException
IOExceptionInvalidRangeExceptionArray getData(Range range, String parameterName) throws IOException, InvalidRangeException
IOExceptionInvalidRangeExceptionCopyright © 1999-2013 UCAR/Unidata. All Rights Reserved.