edu.wisc.ssec.mcidas.adde
Class GetAreaFile
- java.lang.Object
-
- edu.wisc.ssec.mcidas.adde.GetAreaFile
-
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener
public class GetAreaFile extends java.lang.Object implements java.awt.event.ActionListenerApplication 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).
-
-
Field Summary
Fields Modifier and Type Field and Description static intAD_AUXOFFSETAD_AUXOFFSET - byte offset to start of auxilliary data sectionstatic intAD_CALOFFSETAD_CALOFFSET - byte offset to start of calibration sectionstatic intAD_DATAOFFSETAD_DATAOFFSET - byte offset to start of data blockstatic intAD_DATAWIDTHAD_DATAWIDTH - number of bytes per data pointstatic intAD_NAVOFFSETAD_NAVOFFSET - byte offset to start of navigation block
-
Constructor Summary
Constructors Constructor and Description GetAreaFile(java.lang.String[] args)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidactionPerformed(java.awt.event.ActionEvent e)voiddoRequest(java.util.Properties params)static voidmain(java.lang.String[] args)java.lang.StringmakeADDEString(java.util.Properties params)make the ADDE request string out of the various parameters the host, group and descr are required.
-
-
-
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
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
doRequest
public void doRequest(java.util.Properties params)
-
makeADDEString
public java.lang.String makeADDEString(java.util.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...
-
-
DMelt 3.0 © DataMelt by jWork.ORG