Changeset 142 for trunk/SRC/ToBeReviewed/CALCULS/depth2mask.pro
- Timestamp:
- 07/21/06 14:47:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/CALCULS/depth2mask.pro
r134 r142 3 3 ;------------------------------------------------------------ 4 4 ;+ 5 ; NAME: depth2mask6 5 ; 7 ; PURPOSE: permet de passer d''un tableau 2d de profondeur seuil au8 ; tableau 3d de mask avec des 1 ds les niveaux au dessus de la9 ; profondeur seuil et des 0 en dessous.6 ; @file_comments 7 ; Allows to pass from a 2d depth sill array to a 3d array of mask 8 ; with one of levels above the sill depth and 0s below. 10 9 ; 11 ; CATEGORY: SANS BOUCLE 10 ; @categories 11 ; Without loop 12 12 ; 13 ; CALLING SEQUENCE: res=depth2mask(depht2d) 13 ; @param TAB 14 ; 2d sill depth array (or a structure respecting litchamp critrions) 14 15 ; 15 ; INPUTS: depht2d tableau 2d de profondeur seuil (ou une structure repondant 16 ; aux criteres de litchamp) 17 ; 18 ; KEYWORD PARAMETERS: 19 ; 20 ; /UPPER: (active par defaut) on selectionne le niveau 21 ; directement au dessus de la profondeur 22 ; 23 ; /LOWER: on selectionne le niveau directement au dessous de la 24 ; profondeur 25 ; 26 ; /CLOSER: on selectionne le niveau le plus proche de la 27 ; profondeur 28 ; 29 ; OUTPUTS: un tableau 3d contenant le mask associe au tableau 2d de 16 ; @keyword _EXTRA 17 ; used to pass your keywords 18 ; 19 ; @returns 20 ; It is a 3d array containing the mas associated to the 2d sill depth array 30 21 ; profondeurs seuil 31 22 ; 32 ; COMMON BLOCKS:33 ; 23 ; @uses 24 ; common.pro 34 25 ; 35 ; SIDE EFFECTS: 26 ; @history 27 ; Sebastien Masson (smasson@lodyc.jussieu.fr) 28 ; 17/6/1999 36 29 ; 37 ; RESTRICTIONS: 30 ; @version 31 ; $Id$ 38 32 ; 39 ; EXAMPLE:40 ;41 ; MODIFICATION HISTORY: Sebastien Masson (smasson@lodyc.jussieu.fr)42 ; 17/6/199943 33 ;- 44 34 ;------------------------------------------------------------ … … 50 40 compile_opt idl2, strictarrsubs 51 41 ; 52 tempsun = systime(1) ; pour key_performance42 tempsun = systime(1) ; For key_performance 53 43 @common 54 44 ;------------------------------------------------------------ 55 ; on transforme le tableau 2d de profondeur en tableau 2d de niveaux 56 ; correspondant aux profondeurs 45 ; We transform the 2d deth value in a 2d array of levels corresponding to depthes 57 46 ;------------------------------------------------------------ 58 47 niveaux = depth2level(tab, _extra = ex) 59 48 IF niveaux[0] EQ -1 THEN return, -1 60 49 ;------------------------------------------------------------ 61 ; on transforme le tableau 2d de niveaux en tableau 3d demask50 ; We transform the 2d array in a 3d array of mask 62 51 ;------------------------------------------------------------ 63 52 mask = level2mask(niveaux)
Note: See TracChangeset
for help on using the changeset viewer.