Package ucar.nc2.dt.point
Class PointObsDatasetImpl
- java.lang.Object
-
- ucar.nc2.dt.TypedDatasetImpl
-
- ucar.nc2.dt.point.PointObsDatasetImpl
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,PointCollection
,PointObsDataset
,TypedDataset
- Direct Known Subclasses:
DapperDataset
,MadisPointObsDataset
,OldUnidataPointObsDataset
,StationObsDatasetImpl
,UnidataPointObsDataset
public abstract class PointObsDatasetImpl extends TypedDatasetImpl implements PointObsDataset
Deprecated.use ucar.nc2.ft.pointSuperclass for implementations of PointObsDataset.
-
-
Field Summary
Fields Modifier and Type Field Description protected DateFormatter
formatter
Deprecated.protected DateUnit
timeUnit
Deprecated.-
Fields inherited from class ucar.nc2.dt.TypedDatasetImpl
boundingBox, dataVariables, desc, endDate, location, netcdfDataset, parseInfo, startDate, title
-
-
Constructor Summary
Constructors Constructor Description PointObsDatasetImpl()
Deprecated.PointObsDatasetImpl(String title, String description, String location)
Deprecated.PointObsDatasetImpl(NetcdfDataset ncfile)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List
getData()
Deprecated.Get all data.List
getData(LatLonRect boundingBox)
Deprecated.Get all data within the specified bounding box.List
getData(LatLonRect boundingBox, Date start, Date end)
Deprecated.Get all data within the specified bounding box and date range.Class
getDataClass()
Deprecated.The getData() methods return objects of this ClassString
getDetailInfo()
Deprecated.protected static double
getMetersConversionFactor(String unitsString)
Deprecated.Get conversion factor for this unit into meters.FeatureType
getScientificDataType()
Deprecated.protected double
getTime(Variable timeVar, StructureData sdata)
Deprecated.DateUnit
getTimeUnits()
Deprecated.Get the units of Calendar time.protected abstract void
setTimeUnits()
Deprecated.-
Methods inherited from class ucar.nc2.dt.TypedDatasetImpl
close, findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDataVariables, getDescription, getEndDate, getGlobalAttributes, getLocation, getLocationURI, getNetcdfFile, getStartDate, getTitle, removeDataVariable, setBoundingBox, setDescription, setEndDate, setLocationURI, setStartDate, 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.PointCollection
getData, getData, getData, getDataCount, getDataIterator
-
Methods inherited from interface ucar.nc2.dt.TypedDataset
close, findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDataVariables, getDescription, getEndDate, getGlobalAttributes, getLocationURI, getNetcdfFile, getStartDate, getTitle
-
-
-
-
Field Detail
-
timeUnit
protected DateUnit timeUnit
Deprecated.
-
formatter
protected DateFormatter formatter
Deprecated.
-
-
Constructor Detail
-
PointObsDatasetImpl
public PointObsDatasetImpl()
Deprecated.
-
PointObsDatasetImpl
public PointObsDatasetImpl(String title, String description, String location)
Deprecated.
-
PointObsDatasetImpl
public PointObsDatasetImpl(NetcdfDataset ncfile)
Deprecated.
-
-
Method Detail
-
getMetersConversionFactor
protected static double getMetersConversionFactor(String unitsString) throws Exception
Deprecated.Get conversion factor for this unit into meters.- Parameters:
unitsString
- unit you want to convert- Returns:
- conversion factor : value in meters = factor * (value in units)
- Throws:
Exception
- if not valid unit, or not convertible to meters
-
setTimeUnits
protected abstract void setTimeUnits()
Deprecated.
-
getDetailInfo
public String getDetailInfo()
Deprecated.- Specified by:
getDetailInfo
in interfaceTypedDataset
- Overrides:
getDetailInfo
in classTypedDatasetImpl
- Returns:
- debug / underlying implementation details
-
getScientificDataType
public FeatureType getScientificDataType()
Deprecated.
-
getDataClass
public Class getDataClass()
Deprecated.Description copied from interface:PointCollection
The getData() methods return objects of this Class- Specified by:
getDataClass
in interfacePointCollection
- Returns:
- Class of the data
-
getTimeUnits
public DateUnit getTimeUnits()
Deprecated.Description copied from interface:PointCollection
Get the units of Calendar time. To get a Date, from a time value, call DateUnit.makeDate(double value). To get units as a String, call DateUnit.getUnitsString().- Specified by:
getTimeUnits
in interfacePointCollection
- Returns:
- the units of Calendar time.
-
getData
public List getData() throws IOException
Deprecated.Description copied from interface:PointCollection
Get all data. Return null if too expensive to implement. Call getDataCount() to get estimate of size. This will return a list of getDataClass(), but the actual data may or may not already be read in to memory. In any case, you call dataType.getData() to get the data.- Specified by:
getData
in interfacePointCollection
- Returns:
- List of type getDataClass()
- Throws:
IOException
- on io error- See Also:
as a (possibly) more efficient alternative
-
getData
public List getData(LatLonRect boundingBox) throws IOException
Deprecated.Description copied from interface:PointCollection
Get all data within the specified bounding box.- Specified by:
getData
in interfacePointCollection
- Parameters:
boundingBox
- restrict data to this bounding nox- Returns:
- List of type getDataClass()
- Throws:
IOException
- on io error- See Also:
as a (possibly) more efficient alternative
-
getData
public List getData(LatLonRect boundingBox, Date start, Date end) throws IOException
Deprecated.Description copied from interface:PointCollection
Get all data within the specified bounding box and date range.- Specified by:
getData
in interfacePointCollection
- Parameters:
boundingBox
- restrict data to this bounding noxstart
- restrict data to after this timeend
- restrict data to before this time- Returns:
- List of type getDataClass()
- Throws:
IOException
- on io error- See Also:
as a (possibly) more efficient alternative
-
getTime
protected double getTime(Variable timeVar, StructureData sdata) throws ParseException
Deprecated.- Throws:
ParseException
-
-