Changeset 142 for trunk/SRC/ToBeReviewed/PLOTS/DESSINE/tvplus.pro
- Timestamp:
- 07/21/06 14:47:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/PLOTS/DESSINE/tvplus.pro
r134 r142 3 3 ;------------------------------------------------------------ 4 4 ;+ 5 ; NAME: tvplus 6 ; 7 ; PURPOSE: enhanced version of tvscl 8 ; 9 ; CATEGORY: quick exploration of 2D arrays 10 ; 11 ; CALLING SEQUENCE: tvplus,z2d [,cellsize] 5 ; 6 ; @file_comments 7 ; Enhanced version of tvscl 8 ; 9 ; @categories quick exploration of 2D arrays 12 10 ; 13 11 ; INPUTS: 14 12 ; 15 ; z2d: 2D array to visualize 16 ; 17 ; cellsize: (optional) this is the size (in pixel) of the square 18 ; representing 1 array element. By default, this size is computed 19 ; automatically in order that the size of the plotting window do 20 ; not exceed the screen size. If the user specify a large value 21 ; of cellsize that forces tvplus to create a window larger than 22 ; the screen, a "scrolling window" will be displayed instead of a 23 ; regular window. Unfortunately the nice fonctionnalities of tvplus 24 ; are not coded for "scrolling window" case... 25 ; 26 ; KEYWORD PARAMETERS: 27 ; 28 ; BOTTOM: The lowest color index of the colors to be loaded in 29 ; the bar. default is 0. 30 ; 31 ; C_NAN: The color number that should be used for the NaN values. 32 ; default value is !d.n_colors < 255 33 ; 34 ; C_MASK: The color number that should be used for the mask values. 35 ; default value is 0 36 ; 37 ; OFFSET: 2 elements vector used by tvplus itself when shoing zoom. 38 ; It is used to shift the ranges of xaxis and yaxis. 39 ; For example: tvplus,sst[x1:x2,y1:y2],offest=[x1,y1] 40 ; 41 ; MASK: The mask value. Note that if abs(mask) < 1.e6, then the 42 ; exact value of the mask is used to find the maskwd point. 43 ; if abs(mask) > 1.e6, the test to find the masked value is ge 44 ; abs(mask)/10. This is necessary to avoid the rounding errors 45 ; 46 ; MIN and MAX: scalars used to specify the min and max values 47 ; of the color bar. default is from 0 to !d.n_colors < 255 48 ; 49 ; NCOLORS: This is the number of colors in the color 50 ; bar. default is !d.n_colors<255 -1 51 ; 52 ; NOINTERP: used this keyword if you don't whant that the values 53 ; are interpolated between 0 (or min) and !d.n_colors < 255 (or max). 54 ; This can be for example usefull when working on byte type arrays. 55 ; 56 ; NOUSEINFOS: activite to supress the printed message explaining 57 ; how to use tvplus 58 ; 59 ; WINDOW: Number of the window used to display the array values. 60 ; default is window number 0. 61 ; 62 ; OUTPUTS: no (except the printed finformations, see below) 63 ; 64 ; COMMON BLOCKS: no 65 ; 66 ; SIDE EFFECTS: 67 ; 13 ; @param Z2D {in}{required} 14 ; 2D array to visualize 15 ; 16 ; @param CELLSIZE {in}{optiona} 17 ; This is the size (in pixel) of the square 18 ; representing 1 array element. By default, this size is computed 19 ; automatically in order that the size of the plotting window do 20 ; not exceed the screen size. If the user specify a large value 21 ; of cellsize that forces tvplus to create a window larger than 22 ; the screen, a "scrolling window" will be displayed instead of a 23 ; regular window. Unfortunately the nice fonctionnalities of tvplus 24 ; are not coded for "scrolling window" case... 25 ; 26 ; @keyword BOTTOM 27 ; The lowest color index of the colors to be loaded in 28 ; the bar. default is 0. 29 ; 30 ; @keyword C_NAN 31 ; The color number that should be used for the NaN values. 32 ; default value is !d.n_colors < 255 33 ; 34 ; @keyword C_MASK 35 ; The color number that should be used for the mask values. 36 ; default value is 0 37 ; 38 ; @keyword OFFSET 39 ; 2 elements vector used by tvplus itself when shoing zoom. 40 ; It is used to shift the ranges of xaxis and yaxis. 41 ; For example: tvplus,sst[x1:x2,y1:y2],offest=[x1,y1] 42 ; 43 ; @keyword MASK 44 ; The mask value. Note that if abs(mask) < 1.e6, then the 45 ; exact value of the mask is used to find the maskwd point. 46 ; if abs(mask) > 1.e6, the test to find the masked value is ge 47 ; abs(mask)/10. This is necessary to avoid the rounding errors 48 ; 49 ; @keyword MIN 50 ; Scalar used to specify the min value of the color bar. default is 0 51 ; 52 ; @keyword MAX 53 ; Scalar used to specify the max value of the color bar. default is !d.n_colors < 255 54 ; 55 ; @keyword NCOLORS 56 ; This is the number of colors in the color bar. default is !d.n_colors<255 -1 57 ; 58 ; @keyword NOINTERP 59 ; Used this keyword if you don't whant that the values 60 ; are interpolated between 0 (or min) and !d.n_colors < 255 (or max). 61 ; This can be for example usefull when working on byte type arrays. 62 ; 63 ; @keyword NOUSEINFOS 64 ; Activite to supress the printed message explaining how to use tvplus 65 ; 66 ; @keyword WINDOW 67 ; Number of the window used to display the array values. 68 ; default is window number 0. 69 ; 70 ; @restrictions 68 71 ; use your mouse to scan the array values... 69 72 ; left button : mouse position and associated array value … … 71 74 ; right button : quit 72 75 ; 73 ; RESTRICTIONS: the nice fonctionnalities of tvplus are not coded 74 ; for "scrolling window" case... 75 ; 76 ; EXAMPLE: IDL> tvplus, dist(100) 77 ; 78 ; MODIFICATION HISTORY: Sebastien Masson (smasson@lodyc.jussieu.fr) 76 ; the nice fonctionnalities of tvplus are not coded 77 ; for "scrolling window" case... 78 ; 79 ; @examples 80 ; IDL> tvplus, dist(100) 81 ; 82 ; @history 83 ; Sebastien Masson (smasson@lodyc.jussieu.fr) 79 84 ; 18/12/98 80 85 ; Aug 2005: quick cleaning + english 86 ; 87 ; @version 88 ; $Id$ 89 ; 81 90 ;- 82 91 ;------------------------------------------------------------ … … 246 255 device, decomposed = 0 247 256 endif 248 slide_image, arr $ ; on le dessine ds une fenetre avec unescrolling bar257 slide_image, arr $ ; We draw it in a window with a scrolling bar 249 258 , xsize = nx, ysize = ny $ 250 259 , xvisible = round(.7*dimensions[0]) < (size(arr))[1] $
Note: See TracChangeset
for help on using the changeset viewer.