Class Level2RadarDataSource

All Implemented Interfaces:
Sharable, DataSource, DataSourceFactory, RadarConstants, XmlPersistable

public class Level2RadarDataSource extends RadarDataSource
A data source for Archive Level II Radar data files.
Version:
$Revision: 1.63 $ $Date: 2006/12/01 20:42:38 $
Author:
Don Murray
  • Constructor Details

    • Level2RadarDataSource

      public Level2RadarDataSource()
      Construct a new Level II data source.
    • Level2RadarDataSource

      public Level2RadarDataSource(DataSourceDescriptor descriptor, String source, Hashtable properties) throws VisADException
      Construct a new Level II data source.
      Parameters:
      descriptor - descriptor for this datasource
      source - file to read
      properties - hashtable of properties. Includes radar location
      Throws:
      VisADException - couldn't create the data
    • Level2RadarDataSource

      public Level2RadarDataSource(DataSourceDescriptor descriptor, String[] sources, Hashtable properties) throws VisADException
      Construct a new Level II data source.
      Parameters:
      descriptor - descriptor for this datasource
      sources - files to read
      properties - hashtable of properties. Includes radar location
      Throws:
      VisADException - couldn't create the data
    • Level2RadarDataSource

      public Level2RadarDataSource(DataSourceDescriptor descriptor, List sources, Hashtable properties) throws VisADException
      Construct a new Level II data source.
      Parameters:
      descriptor - descriptor for this datasource
      sources - files to read
      properties - hashtable of properties. Includes radar location
      Throws:
      VisADException - couldn't create the data
  • Method Details

    • doMakeDataChoices

      public void doMakeDataChoices()
      Make the set of DataChoices associated with this DataSource.
      Overrides:
      doMakeDataChoices in class DataSourceImpl
    • equals

      public boolean equals(Object o)
      Check to see if this NetcdfRadarDataSource is equal to the object in question.
      Overrides:
      equals in class FilesDataSource
      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.
    • getPropertiesComponents

      public void getPropertiesComponents(List comps)
      Add the gui components into the list for the properties dialog
      Overrides:
      getPropertiesComponents in class DataSourceImpl
      Parameters:
      comps - List of components
    • applyProperties

      public boolean applyProperties()
      Apply properties components
      Overrides:
      applyProperties in class DataSourceImpl
      Returns:
      false if something failed and we need to keep showing the dialog
    • makeRadarAdapter

      protected RadarAdapter makeRadarAdapter(String source) throws Exception
      Make a RadarAdapter from the source
      Specified by:
      makeRadarAdapter in class RadarDataSource
      Parameters:
      source - source (file or URL) of data
      Returns:
      corresponding RadarAdapter
      Throws:
      Exception - problem creating the adapter.
    • main

      public static void main(String[] args) throws Exception
      Main routine for testing.
      Parameters:
      args - list of file names
      Throws:
      Exception - problem occurred
    • getStations

      public NamedStationTable getStations()
      Read in the nexrad stations from the idv/resources/nexradstns.xml resource
      Returns:
      List of of NamedStation-s
    • getAllLevels

      public List getAllLevels(DataChoice dataChoice, DataSelection dataSelection)
      Get the list of all levels available from this DataSource
      Specified by:
      getAllLevels in interface DataSource
      Overrides:
      getAllLevels in class DataSourceImpl
      Parameters:
      dataChoice - The data choice we are getting levels for
      dataSelection - the date selection
      Returns:
      List of all available levels