public class DqcStationObsDataset extends StationObsDatasetImpl
| Modifier and Type | Class and Description |
|---|---|
class |
DqcStationObsDataset.DqcObsImpl |
stationHelper, stationsformatter, timeUnitboundingBox, dataVariables, desc, endDate, location, ncfile, parseInfo, startDate, title| Modifier and Type | Method and Description |
|---|---|
static DqcStationObsDataset |
factory(InvDataset ds,
java.lang.String dqc_location,
java.lang.StringBuilder errlog) |
static DqcStationObsDataset |
factory(java.lang.String desc,
java.lang.String dqc_location,
java.lang.StringBuilder errlog) |
java.util.List |
getData(CancelTask cancel)
Get all data, allow user to cancel.
|
java.util.List |
getData(Station s,
CancelTask cancel)
Get all data for this Station, 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.
|
java.lang.String |
getDescription() |
java.lang.String |
getLocation() |
java.lang.String |
getTitle() |
static void |
main(java.lang.String[] args) |
protected void |
setBoundingBox() |
protected void |
setEndDate() |
protected void |
setStartDate() |
protected void |
setTimeUnits() |
getData, getData, getData, getData, getData, getData, getData, getData, getData, getDataClass, getDataIterator, getDataIterator, getDetailInfo, getScientificDataType, getStation, getStationDataCount, getStations, getStations, getStations, getStations, sortByTimegetData, getData, getData, getMetersConversionFactor, getTime, getTimeUnitsclose, findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDataVariables, getEndDate, getGlobalAttributes, getLocationURI, getNetcdfFile, getStartDate, removeDataVariable, setDescription, setLocationURI, setTitleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDataVariables, getEndDate, getGlobalAttributes, getLocationURI, getNetcdfFile, getStartDategetData, getData, getData, getTimeUnitspublic static DqcStationObsDataset factory(InvDataset ds, java.lang.String dqc_location, java.lang.StringBuilder errlog) throws java.io.IOException
java.io.IOExceptionpublic static DqcStationObsDataset factory(java.lang.String desc, java.lang.String dqc_location, java.lang.StringBuilder errlog) throws java.io.IOException
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.lang.String getTitle()
getTitle in interface TypedDatasetgetTitle in class TypedDatasetImplpublic java.lang.String getLocation()
getLocation in class TypedDatasetImplpublic java.lang.String getDescription()
getDescription in interface TypedDatasetgetDescription in class TypedDatasetImplpublic 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(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 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 errorpublic static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException