ucar.nc2.iosp.adde
Class AreaFile3

java.lang.Object
  extended by ucar.nc2.iosp.adde.AreaFile3

public class AreaFile3
extends Object

AreaFile interface with McIDAS 'area' file format image data. The data is made into an ucar.ma2.Array object. This will allow 'area' format data to be read from disk; the navigation block is made available (see GVARnav for example). This implementation does not do calibration (other than accounting for its presence in the data). Also, the 'valcode' is not checked on each line.

Version:
$Revision:51 $ $Date:2006-07-12 17:13:13Z $
Author:
John Caron : adapt to MultiArray, add getAreaNavigation, Tom Whittaker & Tommy Jasmin at SSEC

Constructor Summary
AreaFile3(String urlString)
          Creates an AreaFile object that allows reading of McIDAS 'area' file format image data from a URL
 
Method Summary
 edu.wisc.ssec.mcidas.AreaDirectory getAreaDirectory()
          Returns the AreaDirectory object for this AreaFile
 edu.wisc.ssec.mcidas.AREAnav getAreaNavigation()
          Return an AREAnav based on the input nav block.
 int[] getAux()
          Returns AUX block
 Rectangle2D getBoundingBox()
           
 int[] getCal()
          Returns calibration block
 Array getData()
           
 int[] getDir()
          Returns the directory block
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AreaFile3

public AreaFile3(String urlString)
          throws IOException,
                 MalformedURLException
Creates an AreaFile object that allows reading of McIDAS 'area' file format image data from a URL

Parameters:
urlString - - the adde url String
Throws:
IOException
MalformedURLException
Method Detail

getData

public Array getData()

getDir

public int[] getDir()
Returns the directory block

Returns:
an integer array containing the area directory

getAreaDirectory

public edu.wisc.ssec.mcidas.AreaDirectory getAreaDirectory()
Returns the AreaDirectory object for this AreaFile

Returns:
AreaDirectory

getCal

public int[] getCal()
             throws edu.wisc.ssec.mcidas.AreaFileException
Returns calibration block

Returns:
an integer array containing the nav block data
Throws:
edu.wisc.ssec.mcidas.AreaFileException - if there is a problem reading the calibration

getAux

public int[] getAux()
             throws edu.wisc.ssec.mcidas.AreaFileException
Returns AUX block

Returns:
an integer array containing the aux block data
Throws:
edu.wisc.ssec.mcidas.AreaFileException - if there is a problem reading the aux block

getAreaNavigation

public edu.wisc.ssec.mcidas.AREAnav getAreaNavigation()
                                               throws edu.wisc.ssec.mcidas.AreaFileException
Return an AREAnav based on the input nav block.

Throws:
edu.wisc.ssec.mcidas.AreaFileException

getBoundingBox

public Rectangle2D getBoundingBox()
                           throws edu.wisc.ssec.mcidas.AreaFileException
Throws:
edu.wisc.ssec.mcidas.AreaFileException


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.