|
||||||||||
| 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.thredds.DqcStationObsDataset
public class DqcStationObsDataset
This implements a StationObsDataset with a DQC.
| Nested Class Summary | |
|---|---|
class |
DqcStationObsDataset.DqcObsImpl
|
| Field Summary |
|---|
| Fields inherited from class ucar.nc2.dt.point.StationObsDatasetImpl |
|---|
stationHelper, stations |
| Fields inherited from class ucar.nc2.dt.point.PointObsDatasetImpl |
|---|
formatter, meterUnit, timeUnit |
| Fields inherited from class ucar.nc2.dt.TypedDatasetImpl |
|---|
boundingBox, dataVariables, desc, endDate, location, ncfile, parseInfo, startDate, title |
| Method Summary | |
|---|---|
static DqcStationObsDataset |
factory(InvDataset ds,
java.lang.String dqc_location,
java.lang.StringBuffer errlog)
|
static DqcStationObsDataset |
factory(java.lang.String desc,
java.lang.String dqc_location,
java.lang.StringBuffer 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()
Text information about this dataset. |
java.lang.String |
getLocationURI()
The URI location of the dataset |
java.lang.String |
getTitle()
Title of the dataset. |
static void |
main(java.lang.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, getData, getData, getData, getData, getData, getDataClass, getDataIterator, getDataIterator, getDetailInfo, getScientificDataType, getStation, getStationDataCount, getStations, 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, getEndDate, getGlobalAttributes, getNetcdfFile, getStartDate, 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, getEndDate, getGlobalAttributes, getNetcdfFile, getStartDate |
| Methods inherited from interface ucar.nc2.dt.PointCollection |
|---|
getData, getData, getData, getTimeUnits |
| Methods inherited from interface ucar.nc2.dt.PointCollection |
|---|
getData, getData, getData, getTimeUnits |
| Method Detail |
|---|
public static DqcStationObsDataset factory(InvDataset ds,
java.lang.String dqc_location,
java.lang.StringBuffer errlog)
throws java.io.IOException
java.io.IOException
public static DqcStationObsDataset factory(java.lang.String desc,
java.lang.String dqc_location,
java.lang.StringBuffer 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()
TypedDataset
getTitle in interface TypedDatasetgetTitle in class TypedDatasetImplpublic java.lang.String getLocationURI()
TypedDataset
getLocationURI in interface TypedDatasetgetLocationURI in class TypedDatasetImplpublic java.lang.String getDescription()
TypedDataset
getDescription in interface TypedDatasetgetDescription in class TypedDatasetImpl
public java.util.List getData(Station s,
CancelTask cancel)
throws java.io.IOException
StationCollection
cancel - allow user to cancel. Implementors should return ASAP.
java.io.IOException
public java.util.List getData(CancelTask cancel)
throws java.io.IOException
PointCollection
cancel - allow user to cancel. Implementors should return ASAP.
java.io.IOExceptionas a (possibly) more efficient alternativepublic int getDataCount()
PointCollection
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
public static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||