ucar.nc2.dt.radial
Class Netcdf2Dataset
java.lang.Object
ucar.nc2.dt.TypedDatasetImpl
ucar.nc2.dt.radial.RadialDatasetSweepAdapter
ucar.nc2.dt.radial.Netcdf2Dataset
- All Implemented Interfaces:
- RadialDatasetSweep, TypedDataset, TypedDatasetFactoryIF, FeatureDataset, FileCacheable
public class Netcdf2Dataset
- extends RadialDatasetSweepAdapter
- implements TypedDatasetFactoryIF
Created by IntelliJ IDEA.
User: yuanho
Date: Jun 7, 2007
Time: 10:36:52 AM
To change this template use File | Settings | File Templates.
Methods inherited from class ucar.nc2.dt.radial.RadialDatasetSweepAdapter |
calcBounds, close, getCommonType, getDateRange, getDetailInfo, getDetailInfo, getEarthLocation, getFeatureType, getImplementationName, getTimeUnits, setBoundingBox, setFileCache, sync |
Methods inherited from class ucar.nc2.dt.TypedDatasetImpl |
findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDataVariables, getDescription, getEndDate, getGlobalAttributes, getLocation, getLocationURI, getNetcdfFile, getStartDate, getTitle, removeDataVariable, setDescription, setLocationURI, setTitle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Netcdf2Dataset
public Netcdf2Dataset()
Netcdf2Dataset
public Netcdf2Dataset(NetcdfDataset ds)
- Constructor.
- Parameters:
ds
- must be from netcdf IOSP
isMine
public boolean isMine(NetcdfDataset ds)
- Description copied from interface:
TypedDatasetFactoryIF
- Determine if this dataset belongs to you
- Specified by:
isMine
in interface TypedDatasetFactoryIF
- Parameters:
ds
- examine this NetcdfDataset to see if it belongs to this class.
- Returns:
- true if this class knows how to create a TypedDataset out of this NetcdfDataset.
open
public TypedDataset open(NetcdfDataset ncd,
CancelTask task,
StringBuilder errlog)
throws IOException
- Description copied from interface:
TypedDatasetFactoryIF
- Open a NetcdfDataset as a TypedDataset.
- Specified by:
open
in interface TypedDatasetFactoryIF
- Parameters:
ncd
- already opened NetcdfDataset.task
- use may cancelerrlog
- place errors here
- Returns:
- a subclass of TypedDataset
- Throws:
IOException
- on error
getScientificDataType
public FeatureType getScientificDataType()
- Description copied from interface:
TypedDatasetFactoryIF
- What kind of cientific data type will this return?
- Specified by:
getScientificDataType
in interface TypedDatasetFactoryIF
- Returns:
- scientific data type
getCommonOrigin
public EarthLocation getCommonOrigin()
- Description copied from interface:
RadialDatasetSweep
- If all sweeps have the same origin, return it here, else null
- Specified by:
getCommonOrigin
in interface RadialDatasetSweep
- Returns:
- common origin, or null
getRadarID
public String getRadarID()
- Specified by:
getRadarID
in interface RadialDatasetSweep
- Returns:
- radar id
isStationary
public boolean isStationary()
- Description copied from interface:
RadialDatasetSweep
- Stationary versus moving radar.
- Specified by:
isStationary
in interface RadialDatasetSweep
- Returns:
- true if this is stationary.
getRadarName
public String getRadarName()
- Specified by:
getRadarName
in interface RadialDatasetSweep
- Returns:
- radar name
getDataFormat
public String getDataFormat()
- Specified by:
getDataFormat
in interface RadialDatasetSweep
- Returns:
- data format
setIsVolume
public void setIsVolume(NetcdfDataset nds)
isVolume
public boolean isVolume()
- Description copied from interface:
RadialDatasetSweep
- Get the basic property of Radar,
- Specified by:
isVolume
in interface RadialDatasetSweep
- Returns:
- 0 if there is only one sweep
setEarthLocation
protected void setEarthLocation()
- Specified by:
setEarthLocation
in class RadialDatasetSweepAdapter
setTimeUnits
protected void setTimeUnits()
throws Exception
- Specified by:
setTimeUnits
in class RadialDatasetSweepAdapter
- Throws:
Exception
setStartDate
protected void setStartDate()
- Specified by:
setStartDate
in class TypedDatasetImpl
setEndDate
protected void setEndDate()
- Specified by:
setEndDate
in class TypedDatasetImpl
addRadialVariable
protected void addRadialVariable(NetcdfDataset nds,
Variable var)
- Specified by:
addRadialVariable
in class RadialDatasetSweepAdapter
makeRadialVariable
protected RadialDatasetSweep.RadialVariable makeRadialVariable(NetcdfDataset nds,
VariableSimpleIF v,
Variable v0)
- Specified by:
makeRadialVariable
in class RadialDatasetSweepAdapter
clearDatasetMemory
public void clearDatasetMemory()
- Description copied from interface:
RadialDatasetSweep
- Remove cached data, if any.
- Specified by:
clearDatasetMemory
in interface RadialDatasetSweep
getInfo
public String getInfo()
main
public static void main(String[] args)
throws Exception,
IOException,
InstantiationException,
IllegalAccessException
- Throws:
Exception
IOException
InstantiationException
IllegalAccessException
Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.