spedas/gui/display/
spd_ui_make_spec.pro
Function: spd_ui_make_spec NOTE: This code has been incorporated into the draw object. spd_ui_make_spec is no longer called directly Purpose: helper routine for draw object. It helps construct the image for spectrograms very quickly. Inputs: x: the 1-d x scaling values for the z components(x-axis) y: the 1-d y scaling values for the z components z: the 2-d z array of values for the image pixx: the desired resolution of the output on the x-axis pixy: the desired resolution of the output on the y-axis palette: the palette number to be used when creating the image zrange: the zrange for the whole panel(may be larger than the range of the z argument) Output: An rgba image with dimensions: 4 x PixX x PixY Notes: 1. This uses an alpha channel to make all NaNs transparent. 2. PixX and PixY are not totally necessary because object graphics can stretch an image quite well, but selecting the resolution of the screen with them prevents any inadvertent errors from showing up during interpolation. It might actually be better to render the image at twice the screen resolution to prevent aliasing errors. $LastChangedBy: jimm $ $LastChangedDate: 2014-02-11 10:54:32 -0800 (Tue, 11 Feb 2014) $ $LastChangedRevision: 14326 $ $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/spedas/gui/display/spd_ui_make_spec.pro $
Routines
File attributes
Modification date: | Thu Feb 13 16:41:37 2014 |
Lines: | 51 |