The WV_APPLET routine can export a lot of data that are helpful for recreating the visualization that a user has set up when he/she runs 'Visualization -> Wavelet Power Spectrum' or 'Visualize -> Multiresolution Analysis', but I do not think that this export includes the data you are looking for. To see what IS exported, you can follow these steps:
1. Make your wavelet power spectrum visualization.
2. Select 'File -> Save State...' from the menu of the visualization dialog box. Save this, let's say, as 'wavelet_power_spectrum.sav'.
3. At the IDL> command prompt run " restore, 'wavelet_power_spectrum.sav' ." This will bring a variable named "pstate" into the scope of your IDL> command prompt. Here is the syntax for several IDL commands that help you query the contents of 'pstate':
IDL> help, *pstate, /STRUCT ; Show all the fields of the struct that 'pstate' is pointing at
IDL> print, (*pstate).meanarray ; Print out the value of pstate's 'meanarray' field
IDL> help, *(*pstate).pwavelet ; info on the pointer in pstate's 'pwavelet' field
You can look in all the different fields of 'pstate'; it is a quite large structure. However, I do not think you will find your coefficient data there. This is quite simply probably not part of the wavelet toolkit functionality. You could edit the wavelet toolkit source code; but it probably takes some advanced knowledge of the IDL wavelet functions used by WV_APPLET to find the variable(s), whose values you would like to have returned from your visualization.If you do find them, then you could add to the IDL source code a statement like:
save, current_coefficients, FILENAME='current_wavelet_session_coefficients.sav'
and that would keep updating a file in your home directory named "current_wavelet_session_coefficients.sav", whose data you could import into IDL with the command:
IDL> restore. 'current_wavelet_session_coefficients.sav'
James Jones
|