|
|||||||||
| 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.point.PointObsDatasetImpl
ucar.nc2.dt.point.StationObsDatasetImpl
ucar.nc2.iosp.adde.AddeStationObsDataset
public class AddeStationObsDataset
An adde "point" dataset.
| Field Summary |
|---|
| Fields inherited from class ucar.nc2.dt.point.StationObsDatasetImpl |
|---|
stationHelper, stations |
| Fields inherited from class ucar.nc2.dt.point.PointObsDatasetImpl |
|---|
formatter, timeUnit |
| Fields inherited from class ucar.nc2.dt.TypedDatasetImpl |
|---|
boundingBox, dataVariables, desc, endDate, location, ncfile, parseInfo, startDate, title |
| Constructor Summary | |
|---|---|
AddeStationObsDataset(InvAccess access,
CancelTask cancelTask)
Open an ADDE Station Dataset from an InvAccess, which must be type ADDE and Station. |
|
AddeStationObsDataset(String location,
CancelTask cancelTask)
Open an ADDE Station Dataset. |
|
| Method Summary | |
|---|---|
List |
getData(CancelTask cancel)
Get all data, allow user to cancel. |
List |
getData(LatLonRect boundingBox,
CancelTask cancel)
Get all data within the specified bounding box, allow user to cancel. |
List |
getData(LatLonRect boundingBox,
Date start,
Date end,
CancelTask cancel)
Get all data within the specified bounding box and date range, allow user to cancel. |
List |
getData(List stations,
CancelTask cancel)
Get all data for a list of Stations, allow user to cancel. |
List |
getData(List stations,
Date start,
Date end,
CancelTask cancel)
Get data for a list of Stations within the specified date range, allow user to cancel. |
List |
getData(Station s,
CancelTask cancel)
Get all data for this Station, allow user to cancel. |
List |
getData(Station s,
Date start,
Date end,
CancelTask cancel)
Get data for this Station within the specified date range, allow user to cancel. |
int |
getDataCount()
Get estimate of number of data records (may not be exact). |
DataIterator |
getDataIterator(int bufferSize)
Get an efficient iterator over all the data in the Collection. |
int |
getStationDataCount(Station s)
How many Data objects are available for this Station? |
List |
getStations(CancelTask cancel)
Get all the Stations in the collection, allow user to cancel. |
static void |
main(String[] args)
|
protected void |
setBoundingBox()
|
protected void |
setEndDate()
|
protected void |
setStartDate()
|
protected void |
setTimeUnits()
|
| Methods inherited from class ucar.nc2.dt.point.StationObsDatasetImpl |
|---|
getData, getData, getData, getData, getDataClass, getDataIterator, getDataIterator, getDetailInfo, getScientificDataType, getStation, getStations, getStations, getStations, sortByTime |
| Methods inherited from class ucar.nc2.dt.point.PointObsDatasetImpl |
|---|
getData, getData, getData, getMetersConversionFactor, getTime, getTimeUnits |
| Methods inherited from class ucar.nc2.dt.TypedDatasetImpl |
|---|
close, findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDataVariables, getDescription, getEndDate, getGlobalAttributes, getLocation, getLocationURI, getNetcdfFile, getStartDate, getTitle, 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 |
|---|
close, findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDataVariables, getDescription, getEndDate, getGlobalAttributes, getLocationURI, getNetcdfFile, getStartDate, getTitle |
| Methods inherited from interface ucar.nc2.dt.PointCollection |
|---|
getData, getData, getData, getTimeUnits |
| Constructor Detail |
|---|
public AddeStationObsDataset(InvAccess access,
CancelTask cancelTask)
throws IOException
access - open Invdataset from this access.
IOException
public AddeStationObsDataset(String location,
CancelTask cancelTask)
throws IOException
location - location of file. This is a URL string, or a local pathname.
IOException| Method Detail |
|---|
protected void setTimeUnits()
setTimeUnits in class PointObsDatasetImplprotected void setStartDate()
setStartDate in class TypedDatasetImplprotected void setEndDate()
setEndDate in class TypedDatasetImplprotected void setBoundingBox()
setBoundingBox in class TypedDatasetImpl
public List getStations(CancelTask cancel)
throws IOException
StationCollection
getStations in interface StationCollectiongetStations in class StationObsDatasetImplcancel - allow user to cancel. Implementors should return ASAP.
IOException - on io errorpublic int getStationDataCount(Station s)
StationCollection
getStationDataCount in interface StationCollectiongetStationDataCount in class StationObsDatasetImpls - station
public List getData(CancelTask cancel)
throws IOException
PointCollection
cancel - allow user to cancel. Implementors should return ASAP.
IOException - on io erroras a (possibly) more efficient alternativepublic int getDataCount()
PointCollection
public List getData(Station s,
CancelTask cancel)
throws IOException
StationCollection
s - for this Stationcancel - allow user to cancel. Implementors should return ASAP.
IOException - on io error
public List getData(Station s,
Date start,
Date end,
CancelTask cancel)
throws IOException
StationCollection
getData in interface StationCollectiongetData in class StationObsDatasetImpls - for this Stationstart - restrict data to after this timeend - restrict data to before this timecancel - allow user to cancel. Implementors should return ASAP.
IOException - on io error
public List getData(List stations,
CancelTask cancel)
throws IOException
StationCollection
getData in interface StationCollectiongetData in class StationObsDatasetImplstations - for these Stationscancel - allow user to cancel. Implementors should return ASAP.
IOException - on io erroras a (possibly) more efficient alternative
public List getData(List stations,
Date start,
Date end,
CancelTask cancel)
throws IOException
StationCollection
getData in interface StationCollectiongetData in class StationObsDatasetImplstations - for these Stationsstart - restrict data to after this timeend - restrict data to before this timecancel - allow user to cancel. Implementors should return ASAP.
IOException - on io erroras a (possibly) more efficient alternative
public List getData(LatLonRect boundingBox,
CancelTask cancel)
throws IOException
PointCollection
getData in interface PointCollectiongetData in class StationObsDatasetImplboundingBox - restrict data to this bounding noxcancel - allow user to cancel. Implementors should return ASAP.
IOException - on io erroras a (possibly) more efficient alternative
public List getData(LatLonRect boundingBox,
Date start,
Date end,
CancelTask cancel)
throws IOException
PointCollection
getData in interface PointCollectiongetData in class StationObsDatasetImplboundingBox - restrict data to this bounding noxstart - restrict data to after this timeend - restrict data to before this timecancel - allow user to cancel. Implementors should return ASAP.
IOException - on io erroras a (possibly) more efficient alternativepublic static void main(String[] args)
public DataIterator getDataIterator(int bufferSize)
throws IOException
PointCollectionWe dont need a cancelTask, just stop the iteration if the user want to cancel.
Example for point observations:
Iterator iter = pointObsDataset.getDataIterator();
while (iter.hasNext()) {
PointObsDatatype pobs = (PointObsDatatype) iter.next();
StructureData sdata = pobs.getData();
// process fully
}
bufferSize - if > 0, the internal buffer size, else use the default. Typically 100k - 1M for best results.
IOException - on io error
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||