WV_IMPORT_DATA
Syntax | Arguments | Keywords | Examples | Version History | See Also
The WV_IMPORT_DATA procedure allows the user to add a variable to the currently active WV_APPLET widget from the IDL> command prompt.
Syntax
WV_IMPORT_DATA, Data [, MESSAGE_OUT=string] [, PARENT=variable]
Arguments
Data
A one- or two-dimensional array of data, or a structure containing the data.
Keywords
MESSAGE_OUT
A scalar string giving a message to be output to the WV_APPLET message bar.
PARENT
A long integer specifying the ID of the WV_APPLET widget in which to import the data. The default is the most-recently active WV_APPLET widget.
Examples
To import a 1D or 2D array directly into the active WV_APPLET widget:
To import a data structure:
WV_IMPORT_DATA, {DATA: PTR_NEW(Array), $
SOURCE: 'Chandra X-Ray Observatory', $
TITLE: 'Cygnus X-1 X-Ray Image', $
VARIABLE: 'Cygnus X-1', $
UNITS: 'Intensity'}
If Data is a structure then it must include at the very least a DATA tag containing a pointer to a one- or two-dimensional array. Recognized tags are shown in the following table. Tags other than these will be quietly ignored.
Version History