Class DoradeAdapter

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

public class DoradeAdapter extends Object implements RadarAdapter
A data adapter for DORADE radar data
Version:
$Revision: 1.19 $
Author:
IDV Development Team @ ATD
  • Constructor Details

    • DoradeAdapter

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

      public DoradeAdapter(DataSourceImpl source, String fileName) throws VisADException
      Construct a new DORADE adapter.
      Parameters:
      source - DataSource (may be null)
      fileName - name of the DORADE file to read
      Throws:
      VisADException - problem creating data
  • Method Details

    • clearCachedData

      public void clearCachedData()
      Implement the interce. For now lets not do anything
      Specified by:
      clearCachedData in interface RadarAdapter
    • 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 DoradeDataSource 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.
    • getBaseTime

      public DateTime getBaseTime()
      Get the base time for this sweep
      Specified by:
      getBaseTime in interface RadarAdapter
      Returns:
      time of sweep
    • getParams

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

      public boolean isPPI()
      Is this sweep in ppi mode
      Returns:
      Is ppi mode
    • isRHI

      public boolean isRHI()
      Is this sweep in rhi mode
      Returns:
      Is RHI mode
    • isSurvey

      public boolean isSurvey()
      Is this sweep in survey mode
      Returns:
      Is survey mode
    • getScanMode

      public ucar.atd.dorade.ScanMode getScanMode()
      Get the scan mode for this sweep
      Returns:
      The scan mode
    • getName

      public String getName()
      Return the name of the file
      Specified by:
      getName in interface RadarAdapter
      Returns:
      name
    • toString

      public String toString()
      to String.
      Overrides:
      toString in class Object
      Returns:
      to string
    • main

      public static void main(String[] args) throws Exception
      Test main
      Parameters:
      args - cmd line args
      Throws:
      Exception - when bad things happen
    • doRemove

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