The WV_IMPORT_DATA procedure allows the user to add a variable to the currently active WV_APPLET widget from the IDL> command prompt.
| Note |
WV_IMPORT_DATA, Data [, MESSAGE_OUT=string] [, PARENT=variable]
A one- or two-dimensional array of data, or a structure containing the data.
A scalar string giving a message to be output to the WV_APPLET message bar.
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.
To import a 1D or 2D array directly into the active WV_APPLET widget:
WV_IMPORT_DATA, Array
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.
Introduced: 5.3