Changeset 101 for trunk/SRC/Interpolation/clickincell.pro
- Timestamp:
- 06/12/06 10:29:56 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Interpolation/clickincell.pro
r69 r101 1 1 ;+ 2 ; NAME:clickincell2 ; @file_comments click on a map and find in which cell the click was 3 3 ; 4 ; PURPOSE: click on a map and find in which cell the click was4 ; @categories finding where is a point on a grid 5 5 ; 6 ; CATEGORY:finding where is a point on a grid 7 ; 8 ; CALLING SEQUENCE: 6 ; @examples 9 7 ; 10 8 ; res = clickincell() … … 13 11 ; Click on the right button to quit. 14 12 ; 15 ; INPUTS:None 16 ; 17 ; KEYWORD PARAMETERS: 18 ; 19 ; CELLTYPE = 'T', 'W', 'U', 'V' or 'F': This this the type of point 13 ; @keyword CELLTYPE = 'T', 'W', 'U', 'V' or 'F' This this the type of point 20 14 ; that is located in the center of the cell which the click is 21 15 ; located. default is T type of cell (with corner defined by F 22 16 ; points). 23 17 ; 24 ; /DRAWCELL:to draw the cell in which we clicked18 ; @keyword /DRAWCELL to draw the cell in which we clicked 25 19 ; 26 ; COLOR =the color used to draw the cells (Clicking one more20 ; @keyword COLOR the color used to draw the cells (Clicking one more 27 21 ; time in the same cell will draw the cell with the white color) 28 22 ; 29 ; /ORIGINAL:to get the position of the cell regarding the original23 ; @keyword /ORIGINAL to get the position of the cell regarding the original 30 24 ; grid (with no key_shift, ixminmesh, iyminmesh...) 31 25 ; 32 ; /IJ:see outpus26 ; @keyword /IJ see outpus 33 27 ; 34 ; _EXTRA:to pass extra keywords to inquad and plot (when /drawcell)28 ; @keyword _EXTRA to pass extra keywords to inquad and plot (when /drawcell) 35 29 ; 36 ; OUTPUTS:37 ; the theindex of the selected cells regarding to the grid which30 ; @returns 31 ; the index of the selected cells regarding to the grid which 38 32 ; is in memory in the variable of the common. If /ij keyword is 39 33 ; activated give 2D array (2, n) which are the i,j position of the 40 34 ; n selected cells. 41 35 ; 42 ; COMMON BLOCKS:common.pro36 ; @uses common.pro 43 37 ; 44 ; SIDE EFFECTS: 45 ; 46 ; RESTRICTIONS: 47 ; 48 ; EXAMPLE: 38 ; @examples 49 39 ; 50 40 ; IDL> plt, findgen(jpi,jpj),/nodata,map=[90,0,0],/ortho 51 41 ; IDL> print, clickincell(/draw,color=150,/xy) 52 42 ; 53 ; MODIFICATION HISTORY:54 ; Sebastien Masson (smasson @lodyc.jussieu.fr)43 ; @history 44 ; Sebastien Masson (smasson\@lodyc.jussieu.fr) 55 45 ; August 2003 56 46 ;
Note: See TracChangeset
for help on using the changeset viewer.