Package ucar.nc2.ft.point.standard
Class PointDatasetStandardFactory
- java.lang.Object
-
- ucar.nc2.ft.point.standard.PointDatasetStandardFactory
-
- All Implemented Interfaces:
FeatureDatasetFactory
public class PointDatasetStandardFactory extends Object implements FeatureDatasetFactory
Standard handler for Point obs dataset based on a NetcdfDataset object. Registered with FeatureDatasetFactoryManager. The convention-specific stuff is handled by TableAnayser.
-
-
Constructor Summary
Constructors Constructor Description PointDatasetStandardFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FeatureType[]getFeatureTypes()This Factory can open these types of Feature datasets.ObjectisMine(FeatureType wantFeatureType, NetcdfDataset ds, Formatter errlog)Check if this is a POINT datatype.FeatureDatasetopen(FeatureType wantFeatureType, NetcdfDataset ncd, Object analyser, CancelTask task, Formatter errlog)Open a NetcdfDataset as a FeatureDataset.static voidsetDebugFlags(DebugFlags debugFlags)
-
-
-
Method Detail
-
setDebugFlags
public static void setDebugFlags(DebugFlags debugFlags)
-
isMine
public Object isMine(FeatureType wantFeatureType, NetcdfDataset ds, Formatter errlog)
Check if this is a POINT datatype. If so, a TableAnalyser is used to analyze its structure. The TableAnalyser is reused when the dataset is opened.- Can handle ANY_POINT FeatureType.
- Must have time, lat, lon axis (from CoordSysBuilder)
- Call TableAnalyzer.factory() to create a TableAnalyzer
- TableAnalyzer must agree it can handle the requested FeatureType
- Specified by:
isMinein interfaceFeatureDatasetFactory- Parameters:
wantFeatureType- desired feature type, null means FeatureType.ANY_POINTds- analyse this dataseterrlog- log error messages here (may not be null)- Returns:
- if successful, return non-null. This object is then passed back into open(), so analysis can be reused.
-
open
public FeatureDataset open(FeatureType wantFeatureType, NetcdfDataset ncd, Object analyser, CancelTask task, Formatter errlog) throws IOException
Description copied from interface:FeatureDatasetFactoryOpen a NetcdfDataset as a FeatureDataset. Should only be called if isMine() returns non-null.- Specified by:
openin interfaceFeatureDatasetFactory- Parameters:
wantFeatureType- open as this feature type. If null, open as any feature type.ncd- an already opened NetcdfDataset.analyser- the object returned from isMine(). Likely given to a different instance of FeatureDatasetFactorytask- user may cancel, may be nullerrlog- write error messages here, may be null- Returns:
- a subclass of FeatureDataset
- Throws:
IOException- on error
-
getFeatureTypes
public FeatureType[] getFeatureTypes()
Description copied from interface:FeatureDatasetFactoryThis Factory can open these types of Feature datasets.- Specified by:
getFeatureTypesin interfaceFeatureDatasetFactory- Returns:
- array of FeatureType
-
-