public class AddeStationObsDataset extends StationObsDatasetImpl
stationHelper, stationsformatter, timeUnitboundingBox, dataVariables, desc, endDate, location, ncfile, parseInfo, startDate, title| Constructor and Description |
|---|
AddeStationObsDataset(InvAccess access,
CancelTask cancelTask)
Open an ADDE Station Dataset from an InvAccess, which must be type ADDE and Station.
|
AddeStationObsDataset(java.lang.String location,
CancelTask cancelTask)
Open an ADDE Station Dataset.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List |
getData(CancelTask cancel)
Get all data, allow user to cancel.
|
java.util.List |
getData(LatLonRect boundingBox,
CancelTask cancel)
Get all data within the specified bounding box, allow user to cancel.
|
java.util.List |
getData(LatLonRect boundingBox,
java.util.Date start,
java.util.Date end,
CancelTask cancel)
Get all data within the specified bounding box and date range, allow user to cancel.
|
java.util.List |
getData(java.util.List stations,
CancelTask cancel)
Get all data for a list of Stations, allow user to cancel.
|
java.util.List |
getData(java.util.List stations,
java.util.Date start,
java.util.Date end,
CancelTask cancel)
Get data for a list of Stations within the specified date range, allow user to cancel.
|
java.util.List |
getData(Station s,
CancelTask cancel)
Get all data for this Station, allow user to cancel.
|
java.util.List |
getData(Station s,
java.util.Date start,
java.util.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?
|
java.util.List |
getStations(CancelTask cancel)
Get all the Stations in the collection, allow user to cancel.
|
static void |
main(java.lang.String[] args) |
protected void |
setBoundingBox() |
protected void |
setEndDate() |
protected void |
setStartDate() |
protected void |
setTimeUnits() |
getData, getData, getData, getData, getDataClass, getDataIterator, getDataIterator, getDetailInfo, getScientificDataType, getStation, getStations, getStations, getStations, sortByTimegetData, getData, getData, getMetersConversionFactor, getTime, getTimeUnitsclose, findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDataVariables, getDescription, getEndDate, getGlobalAttributes, getLocation, getLocationURI, getNetcdfFile, getStartDate, getTitle, removeDataVariable, setDescription, setLocationURI, setTitleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDataVariables, getDescription, getEndDate, getGlobalAttributes, getLocationURI, getNetcdfFile, getStartDate, getTitlegetData, getData, getData, getTimeUnitspublic AddeStationObsDataset(InvAccess access, CancelTask cancelTask) throws java.io.IOException
access - open Invdataset from this access.java.io.IOExceptionpublic AddeStationObsDataset(java.lang.String location,
CancelTask cancelTask)
throws java.io.IOException
location - location of file. This is a URL string, or a local pathname.java.io.IOExceptionprotected void setTimeUnits()
setTimeUnits in class PointObsDatasetImplprotected void setStartDate()
setStartDate in class TypedDatasetImplprotected void setEndDate()
setEndDate in class TypedDatasetImplprotected void setBoundingBox()
setBoundingBox in class TypedDatasetImplpublic java.util.List getStations(CancelTask cancel) throws java.io.IOException
StationCollectiongetStations in interface StationCollectiongetStations in class StationObsDatasetImplcancel - allow user to cancel. Implementors should return ASAP.java.io.IOException - on io errorpublic int getStationDataCount(Station s)
StationCollectiongetStationDataCount in interface StationCollectiongetStationDataCount in class StationObsDatasetImpls - stationpublic java.util.List getData(CancelTask cancel) throws java.io.IOException
PointCollectioncancel - allow user to cancel. Implementors should return ASAP.java.io.IOException - on io erroras a (possibly) more efficient alternativepublic int getDataCount()
PointCollectionpublic java.util.List getData(Station s, CancelTask cancel) throws java.io.IOException
StationCollections - for this Stationcancel - allow user to cancel. Implementors should return ASAP.java.io.IOException - on io errorpublic java.util.List getData(Station s, java.util.Date start, java.util.Date end, CancelTask cancel) throws java.io.IOException
StationCollectiongetData 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.java.io.IOException - on io errorpublic java.util.List getData(java.util.List stations,
CancelTask cancel)
throws java.io.IOException
StationCollectiongetData in interface StationCollectiongetData in class StationObsDatasetImplstations - for these Stationscancel - allow user to cancel. Implementors should return ASAP.java.io.IOException - on io erroras a (possibly) more efficient alternativepublic java.util.List getData(java.util.List stations,
java.util.Date start,
java.util.Date end,
CancelTask cancel)
throws java.io.IOException
StationCollectiongetData 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.java.io.IOException - on io erroras a (possibly) more efficient alternativepublic java.util.List getData(LatLonRect boundingBox, CancelTask cancel) throws java.io.IOException
PointCollectiongetData in interface PointCollectiongetData in class StationObsDatasetImplboundingBox - restrict data to this bounding noxcancel - allow user to cancel. Implementors should return ASAP.java.io.IOException - on io erroras a (possibly) more efficient alternativepublic java.util.List getData(LatLonRect boundingBox, java.util.Date start, java.util.Date end, CancelTask cancel) throws java.io.IOException
PointCollectiongetData 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.java.io.IOException - on io erroras a (possibly) more efficient alternativepublic static void main(java.lang.String[] args)
public DataIterator getDataIterator(int bufferSize) throws java.io.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.java.io.IOException - on io error