edu.wisc.ssec.mcidas.adde
Class GetAreaFile

java.lang.Object
  extended by edu.wisc.ssec.mcidas.adde.GetAreaFile
All Implemented Interfaces:
ActionListener, EventListener

public class GetAreaFile
extends Object
implements ActionListener

Application to fetch an AREA file and write it as a local file. It is command-line driven, but can be forced into "gui mode" by either using the '-gui' option or specifying the URL 'adde://image?' as the source (although in the latter case, you still need to the desitnation filename on the command line; whereas with the -gui option, a FileChooser is presented to the user).

Author:
Tom Whittaker, SSEC/CIMSS

Field Summary
static int AD_AUXOFFSET
          AD_AUXOFFSET - byte offset to start of auxilliary data section
static int AD_CALOFFSET
          AD_CALOFFSET - byte offset to start of calibration section
static int AD_DATAOFFSET
          AD_DATAOFFSET - byte offset to start of data block
static int AD_DATAWIDTH
          AD_DATAWIDTH - number of bytes per data point
static int AD_NAVOFFSET
          AD_NAVOFFSET - byte offset to start of navigation block
 
Constructor Summary
GetAreaFile(String[] args)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void doRequest(Properties params)
           
static void main(String[] args)
           
 String makeADDEString(Properties params)
          make the ADDE request string out of the various parameters the host, group and descr are required.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AD_DATAOFFSET

public static final int AD_DATAOFFSET
AD_DATAOFFSET - byte offset to start of data block

See Also:
Constant Field Values

AD_NAVOFFSET

public static final int AD_NAVOFFSET
AD_NAVOFFSET - byte offset to start of navigation block

See Also:
Constant Field Values

AD_AUXOFFSET

public static final int AD_AUXOFFSET
AD_AUXOFFSET - byte offset to start of auxilliary data section

See Also:
Constant Field Values

AD_CALOFFSET

public static final int AD_CALOFFSET
AD_CALOFFSET - byte offset to start of calibration section

See Also:
Constant Field Values

AD_DATAWIDTH

public static final int AD_DATAWIDTH
AD_DATAWIDTH - number of bytes per data point

See Also:
Constant Field Values
Constructor Detail

GetAreaFile

public GetAreaFile(String[] args)
Method Detail

main

public static void main(String[] args)

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

doRequest

public void doRequest(Properties params)

makeADDEString

public String makeADDEString(Properties params)
make the ADDE request string out of the various parameters the host, group and descr are required. Everything else is optional. version=1 is appended...