Class McIDASImageDataSource

All Implemented Interfaces:
Sharable, DataSource, DataSourceFactory, XmlPersistable

public class McIDASImageDataSource extends ImageDataSource
A data source for ADDE images AREA files. This is a thin wrapper (derived class) around the ImageDataSource which does all of the work.
Version:
$Revision: 1.26 $ $Date: 2006/12/01 20:42:05 $
Author:
Don Murray
  • Field Details

  • Constructor Details

    • McIDASImageDataSource

      public McIDASImageDataSource()
      The parameterless ctor unpersisting.
    • McIDASImageDataSource

      public McIDASImageDataSource(DataSourceDescriptor descriptor, String image, Hashtable properties)
      Construct a McIDASImageDataSource
      Parameters:
      descriptor - _more_
      image - _more_
      properties - _more_
    • McIDASImageDataSource

      public McIDASImageDataSource(DataSourceDescriptor descriptor, ArrayList images, Hashtable properties)
      Create a new McIDASImageDataSource with list of AREA files.
      Parameters:
      descriptor - The descriptor for this data source.
      images - List of AREA files
      properties - The properties for this data source.
    • McIDASImageDataSource

      public McIDASImageDataSource(DataSourceDescriptor descriptor, String[] images, Hashtable properties)
      Create a new McIDASImageDataSource with array of AREA files.
      Parameters:
      descriptor - The descriptor for this data source.
      images - Array of AREA files
      properties - The properties for this data source.
    • McIDASImageDataSource

      public McIDASImageDataSource(DataSourceDescriptor descriptor, ImageDataset ids, Hashtable properties)
      Create a new McIDASImageDataSource with a ImageDataset
      Parameters:
      descriptor - The descriptor for this data source.
      ids - The dataset.
      properties - The properties for this data source.
  • Method Details

    • init

      public void init()
      _more_
    • getChoiceName

      public String getChoiceName()
      _more_
      Returns:
      _more_
    • setChoiceName

      public void setChoiceName(String choiceName)
      _more_
      Parameters:
      choiceName - _more_
    • initAfterUnpersistence

      public void initAfterUnpersistence()
      _more_
      Specified by:
      initAfterUnpersistence in interface DataSource
      Overrides:
      initAfterUnpersistence in class ImageDataSource
    • getImageDataSourceName

      public String getImageDataSourceName()
      Overwrite base class method to return the name of this class.
      Specified by:
      getImageDataSourceName in class ImageDataSource
      Returns:
      The name.
    • getDataName

      public String getDataName()
      Get the name for the main data object
      Overrides:
      getDataName in class ImageDataSource
      Returns:
      name of main data object
    • getDataInner

      protected Data getDataInner(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, Hashtable requestProperties) throws VisADException, RemoteException
      _more_
      Overrides:
      getDataInner in class ImageDataSource
      Parameters:
      dataChoice - _more_
      category - _more_
      dataSelection - _more_
      requestProperties - _more_
      Returns:
      _more_
      Throws:
      RemoteException - _more_
      VisADException - _more_
    • getImageBoundingBox

      public GeoLocationInfo getImageBoundingBox(int eMag, int lMag, int lines, int elems)
      _more_
      Parameters:
      eMag - _more_
      lMag - _more_
      lines - _more_
      elems - _more_
      Returns:
      _more_
    • calculateMagFactor

      public int calculateMagFactor(int dataPoints, int displayPoints)
      _more_
      Parameters:
      dataPoints - _more_
      displayPoints - _more_
      Returns:
      _more_
    • makeImage

      protected SingleBandedImage makeImage(AddeImageDescriptor aid, MathType rangeType, boolean fromSequence, String readLabel) throws VisADException, RemoteException
      _more_
      Overrides:
      makeImage in class ImageDataSource
      Parameters:
      aid - _more_
      rangeType - _more_
      fromSequence - _more_
      readLabel - _more_
      Returns:
      _more_
      Throws:
      RemoteException - _more_
      VisADException - _more_
    • initDataSelectionComponents

      protected void initDataSelectionComponents(List components, DataChoice dataChoice)
      _more_
      Overrides:
      initDataSelectionComponents in class DataSourceImpl
      Parameters:
      components - _more_
      dataChoice - _more_
    • getPreviewImageInfo

      public AddeImageInfo getPreviewImageInfo(AreaDirectory aDir, String navType)
      _more_
      Parameters:
      aDir - _more_
      navType - _more_
      Returns:
      _more_
    • convertBritToTemp

      public float convertBritToTemp(int inVal)
      _more_
      Parameters:
      inVal - _more_
      Returns:
      _more_
    • convertBritToTemp

      public float[] convertBritToTemp(float[] inputData)
      convert a gray scale value to brightness temperature
      Parameters:
      inputData - input data array
      Returns:
      _more_