Ignore:
Timestamp:
07/21/06 14:47:49 (18 years ago)
Author:
navarro
Message:

english and nicer header (2a)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/CALCULS/level2mask.pro

    r134 r142  
    33;------------------------------------------------------------ 
    44;+ 
    5 ; NAME:level2mask 
    65; 
    7 ; PURPOSE: permet de passer d''un tableau 2d de niveau seuil au 
    8 ; tableau 3d de mask avec des 1 ds les niveaux au dessus du 
    9 ; niveau seuil et des 0 en dessous (et sur). 
     6; @file_comments 
     7; Allow to pass from a 2d sill level array to the 3d mask array with 1s in  
     8; levels above the sill level and 0s below (and on it) 
    109; 
    11 ; CATEGORY: SANS BOUCLE 
     10; @categories  
     11; without loop 
    1212; 
    13 ; CALLING SEQUENCE: res=level2mask(niveau) 
     13; @param TAB {in}{required} 
     14; 2d level array of sill level (or a structure respecting litchamp criterions) 
    1415; 
    15 ; INPUTS: niveau tableau 2d de niveaux seuil (ou une structure repondant 
    16 ; aux criteres de litchamp) 
     16; @returns 
     17; It is a 3d array containing the mask associated to the 2d sill level array 
    1718; 
    18 ; KEYWORD PARAMETERS: 
     19; @uses 
     20; common.pro 
    1921; 
    20 ; OUTPUTS: un tableau 3d contenant le mask associe au tableau 2d de 
    21 ; niveaux seuil 
    22 ; 
    23 ; COMMON BLOCKS: 
    24 ;       common.pro 
    25 ; 
    26 ; SIDE EFFECTS: 
    27 ; 
    28 ; RESTRICTIONS: 
    29 ; 
    30 ; EXAMPLE: 
    31 ; 
    32 ; MODIFICATION HISTORY: Sebastien Masson (smasson@lodyc.jussieu.fr) 
     22; @history 
     23; Sebastien Masson (smasson@lodyc.jussieu.fr) 
    3324;                       17/6/1999 
    3425; Setp 2004: boundary level have 0 values and not 1 (as it was 
    3526; explained before in the header). see: 
    3627; print, array_equal(niveau, total(level2mask(niveau),3)) 
     28; 
     29; 
     30; @version 
     31; $Id$ 
    3732; 
    3833;- 
     
    4540  compile_opt idl2, strictarrsubs 
    4641; 
    47    tempsun = systime(1)         ; pour key_performance 
     42   tempsun = systime(1)         ; To key_performance 
    4843@common 
    4944;------------------------------------------------------------ 
    50 ; lecture du champ d''entree et recuperation de la taille du sous 
    51 ; domaine utilise 
     45; Reading of the input field and recovery of the size of the used subdomain 
    5246;------------------------------------------------------------ 
    5347   niveaux = litchamp(tab) 
    5448   grille,maskterre, -1, -1, -1,nx,ny,nz,firstx,firsty,firstz,lastx,lasty,lastz 
    5549;--------------------------------------------------------------- 
    56 ; verification de la coherence entre la taille du tableau et le domaine definit par domdef 
     50; verification of the coherence between the array's size and the defined by domdef domain 
    5751;--------------------------------------------------------------- 
    5852   IF ny EQ 1 THEN niveaux = reform(niveaux, nx, ny, /over) 
     
    6660;------------------------------------------------------------ 
    6761;------------------------------------------------------------ 
    68 ; on transforme le tableau 2d de niveaux en tableau 3d de mask 
     62; We transform the 2d leval array in 3d mask array 
    6963;------------------------------------------------------------ 
    7064   mask = reform( niveaux[*]#(1./(indgen(nz)+1)), nx, ny, nz ) 
Note: See TracChangeset for help on using the changeset viewer.