Class NetcdfSweepfileAdapter

java.lang.Object
ucar.unidata.data.radar.NetcdfSweepfileAdapter
All Implemented Interfaces:
RadarAdapter, RadarConstants

public class NetcdfSweepfileAdapter extends Object implements RadarAdapter
Adapt a netCDF sweepfile to a VisAD data structure.
Version:
$Revision: 1.15 $ $Date: 2007/04/16 15:40:02 $
Author:
MetApps Development Team
  • Constructor Details

    • NetcdfSweepfileAdapter

      public NetcdfSweepfileAdapter()
      Zero-argument constructor for construction via unpersistence.
    • NetcdfSweepfileAdapter

      public NetcdfSweepfileAdapter(String location) throws VisADException
      Create a new NetcdfSweepfileAdapter
      Parameters:
      location - location of data (filename or URL)
      Throws:
      VisADException - VisAD problem
    • NetcdfSweepfileAdapter

      public NetcdfSweepfileAdapter(DataSourceImpl source, String location) throws VisADException
      Construct a new DORADE adapter.
      Parameters:
      source - DataSource (may be null)
      location - location of data (filename or URL)
      Throws:
      VisADException - problem creating data
  • Method Details

    • init

      protected void init() throws Exception
      Initialize this adapter
      Throws:
      Exception - problem initializing adapter
    • clearCachedData

      public void clearCachedData()
      Implement the interce. For now lets not do anything
      Specified by:
      clearCachedData in interface RadarAdapter
    • getData

      public DataImpl getData()
      Get the Data object that this adapter represents
      Returns:
      the Data object
    • getBaseTime

      public DateTime getBaseTime()
      Get the nominal time (time of first radial)
      Specified by:
      getBaseTime in interface RadarAdapter
      Returns:
      nominal time
    • getField

      public DataImpl getField(RealType type)
      Get the data for the type supplied.
      Parameters:
      type - RealType of the moment
      Returns:
      the representative data deprecated Use getData(DataChoice, DataSelection, Hashtable)
    • getData

      public DataImpl getData(DataChoice dataChoice, DataSelection subset, Hashtable requestProperties) throws VisADException, RemoteException
      Get the data for the given DataChoice and selection criteria.
      Specified by:
      getData in interface RadarAdapter
      Parameters:
      dataChoice - DataChoice for selection
      subset - subsetting criteria
      requestProperties - extra request properties
      Returns:
      the Data object for the request
      Throws:
      RemoteException - couldn't create a remote data object
      VisADException - couldn't create the data
    • equals

      public boolean equals(Object o)
      Check to see if this NetcdfSweepfileAdapter is equal to the object in question.
      Overrides:
      equals in class Object
      Parameters:
      o - object in question
      Returns:
      true if they are the same or equivalent objects
    • hashCode

      public int hashCode()
      Get the hash code for this object.
      Overrides:
      hashCode in class Object
      Returns:
      hash code.
    • getParams

      protected RealType[] getParams()
      Get the parameters for this adapter
      Returns:
      parameters
    • getName

      public String getName()
      Get the name of this adapter
      Specified by:
      getName in interface RadarAdapter
      Returns:
      the source of the data
    • doRemove

      public void doRemove()
      Clean up whatever we need to when we are removed.
      Specified by:
      doRemove in interface RadarAdapter