public abstract class PointObsDatasetImpl extends TypedDatasetImpl implements PointObsDataset
Modifier and Type | Field and Description |
---|---|
protected DateFormatter |
formatter |
protected DateUnit |
timeUnit |
boundingBox, dataVariables, desc, endDate, location, ncfile, parseInfo, startDate, title
Constructor and Description |
---|
PointObsDatasetImpl() |
PointObsDatasetImpl(NetcdfDataset ncfile) |
PointObsDatasetImpl(String title,
String description,
String location) |
Modifier and Type | Method and Description |
---|---|
List |
getData()
Get all data.
|
List |
getData(LatLonRect boundingBox)
Get all data within the specified bounding box.
|
List |
getData(LatLonRect boundingBox,
Date start,
Date end)
Get all data within the specified bounding box and date range.
|
Class |
getDataClass()
The getData() methods return objects of this Class
|
String |
getDetailInfo() |
protected static double |
getMetersConversionFactor(String unitsString)
Get conversion factor for this unit into meters.
|
FeatureType |
getScientificDataType() |
protected double |
getTime(Variable timeVar,
StructureData sdata) |
DateUnit |
getTimeUnits()
Get the units of Calendar time.
|
protected abstract void |
setTimeUnits() |
close, findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDataVariables, getDescription, getEndDate, getGlobalAttributes, getLocation, getLocationURI, getNetcdfFile, getStartDate, getTitle, removeDataVariable, setBoundingBox, setDescription, setEndDate, setLocationURI, setStartDate, setTitle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDataVariables, getDescription, getEndDate, getGlobalAttributes, getLocationURI, getNetcdfFile, getStartDate, getTitle
getData, getData, getData, getDataCount, getDataIterator
protected DateUnit timeUnit
protected DateFormatter formatter
public PointObsDatasetImpl()
public PointObsDatasetImpl(NetcdfDataset ncfile)
protected static double getMetersConversionFactor(String unitsString) throws Exception
unitsString
- unit you want to convertException
- if not valid unit, or not convertible to metersprotected abstract void setTimeUnits()
public String getDetailInfo()
getDetailInfo
in interface TypedDataset
getDetailInfo
in class TypedDatasetImpl
public FeatureType getScientificDataType()
public Class getDataClass()
PointCollection
getDataClass
in interface PointCollection
public DateUnit getTimeUnits()
PointCollection
getTimeUnits
in interface PointCollection
public List getData() throws IOException
PointCollection
getData
in interface PointCollection
IOException
- on io erroras a (possibly) more efficient alternative
public List getData(LatLonRect boundingBox) throws IOException
PointCollection
getData
in interface PointCollection
boundingBox
- restrict data to this bounding noxIOException
- on io erroras a (possibly) more efficient alternative
public List getData(LatLonRect boundingBox, Date start, Date end) throws IOException
PointCollection
getData
in interface PointCollection
boundingBox
- restrict data to this bounding noxstart
- restrict data to after this timeend
- restrict data to before this timeIOException
- on io erroras a (possibly) more efficient alternative
protected double getTime(Variable timeVar, StructureData sdata) throws ParseException
ParseException
Copyright © 1999–2014 UCAR/Unidata. All rights reserved.