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 ucar.nc2.units.DateFormatterformatterDeprecated.protected ucar.nc2.units.DateUnittimeUnitDeprecated.-
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(ucar.nc2.dataset.NetcdfDataset ncfile)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ListgetData()Deprecated.Get all data.ListgetData(ucar.unidata.geoloc.LatLonRect boundingBox)Deprecated.Get all data within the specified bounding box.ListgetData(ucar.unidata.geoloc.LatLonRect boundingBox, Date start, Date end)Deprecated.Get all data within the specified bounding box and date range.ClassgetDataClass()Deprecated.The getData() methods return objects of this ClassStringgetDetailInfo()Deprecated.protected static doublegetMetersConversionFactor(String unitsString)Deprecated.Get conversion factor for this unit into meters.ucar.nc2.constants.FeatureTypegetScientificDataType()Deprecated.protected doublegetTime(ucar.nc2.Variable timeVar, ucar.ma2.StructureData sdata)Deprecated.ucar.nc2.units.DateUnitgetTimeUnits()Deprecated.Get the units of Calendar time.protected abstract voidsetTimeUnits()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
-
-
-
-
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:
getDetailInfoin interfaceTypedDataset- Overrides:
getDetailInfoin classTypedDatasetImpl- Returns:
- debug / underlying implementation details
-
getScientificDataType
public ucar.nc2.constants.FeatureType getScientificDataType()
Deprecated.
-
getDataClass
public Class getDataClass()
Deprecated.Description copied from interface:PointCollectionThe getData() methods return objects of this Class- Specified by:
getDataClassin interfacePointCollection- Returns:
- Class of the data
-
getTimeUnits
public ucar.nc2.units.DateUnit getTimeUnits()
Deprecated.Description copied from interface:PointCollectionGet 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:
getTimeUnitsin interfacePointCollection- Returns:
- the units of Calendar time.
-
getData
public List getData() throws IOException
Deprecated.Description copied from interface:PointCollectionGet 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:
getDatain interfacePointCollection- Returns:
- List of type getDataClass()
- Throws:
IOException- on io error- See Also:
as a (possibly) more efficient alternative
-
getData
public List getData(ucar.unidata.geoloc.LatLonRect boundingBox) throws IOException
Deprecated.Description copied from interface:PointCollectionGet all data within the specified bounding box.- Specified by:
getDatain 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(ucar.unidata.geoloc.LatLonRect boundingBox, Date start, Date end) throws IOException
Deprecated.Description copied from interface:PointCollectionGet all data within the specified bounding box and date range.- Specified by:
getDatain 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(ucar.nc2.Variable timeVar, ucar.ma2.StructureData sdata) throws ParseExceptionDeprecated.- Throws:
ParseException
-
-