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/PLOTS/DIVERS/determineminmax.pro

    r134 r142  
    33;------------------------------------------------------------ 
    44;+ 
    5 ; NAME:determineminmax 
    65; 
    7 ; PURPOSE:determiner le min et le max d''un tableau masque 
     6; @file_comments 
     7; Determine the min and the max of a mask array 
    88; 
    9 ; CATEGORY: delestage de l''ecriture de plt, pltz, pltt 
     9; @categories  
     10; Lightening of the writting of plt, pltz and pltt 
    1011; 
    11 ; CALLING SEQUENCE:determineminmax, tab, mask, vraimin, vraimax 
     12; @param TAB {in}{required} 
     13; The array whose we determine the min and the max 
    1214; 
    13 ; INPUTS: 
     15; @param MASK {in}{required} 
     16; The mask array  
    1417; 
    15 ;       tab: le tableau dont il faut determiner le min et le max 
    16 ;       mask: le tableau de masque  
     18; @keyword MININ  
     19; It is a scalar which, if it is not defined, take the value of VRAIMIN 
    1720; 
    18 ; KEYWORD PARAMETERS: 
     21; @keyword MAXIN  
     22; It is a scalar which, if it is not defined, take the value of VRAIMAX 
    1923; 
    20 ;       minin et maxin deux scalaire qui s''il ne sont pas definits 
    21 ;       prennent la valeur de vraimin et vraimax 
     24; @keyword ZEROMIDDLE  
     25; Force the middle of the colorbar to be equal 
     26; to 0 (force max=max(abs([min,max])) and min=-max) 
     27;  
     28; @keyword _EXTRA 
     29; used to pass your keywords 
    2230; 
    23 ;       /ZEROMIDDLE: fo force the middle of the colorbar to be equal 
    24 ;       to 0 (force max=max(abs([min,max])) and min=-max) 
     31; @keyword USETRI 
     32; To force using triangulation. 
     33;  
     34; @param VRAIMIN {out} 
     35; The min of the array 
    2536; 
    26 ; OUTPUTS: 
     37; @param VRAIMAX {out} 
     38; The max of the array 
    2739; 
    28 ;       vraimin et vraimax: le min et le max du tableau 
     40; @uses 
     41; Common.pro 
    2942; 
    30 ; COMMON BLOCKS: 
    31 ;       common.pro 
     43; @restrictions 
     44; Look if the field is constant on the sea 
    3245; 
    33 ; SIDE EFFECTS:degarde si le champ est constant sur la mer 
     46; @history 
     47; Sebastien Masson (smasson@lodyc.jussieu.fr) 
     48;                       11/12/98 
    3449; 
    35 ; RESTRICTIONS: 
     50; @version 
     51; $Id$ 
    3652; 
    37 ; EXAMPLE: 
     53; @todo seb: manque les param glam et gphi 
    3854; 
    39 ; MODIFICATION HISTORY: Sebastien Masson (smasson@lodyc.jussieu.fr) 
    40 ;                       11/12/98 
    4155;- 
    4256;------------------------------------------------------------ 
     
    5064;----------------------------------------------------------------------------- 
    5165;----------------------------------------------------------------------------- 
    52 ; type de grille verticale: 
     66; Type o fthe vertical grid: 
    5367  if vargrid EQ 'W' then nz = nzw ELSE nz = nzt 
    5468; liste des points mer 
    5569  if (size(mask))[0] EQ 3 then mer = mask[*, *, 0] $ 
    5670  ELSE mer = mask 
    57 ; si key_irregular eq 1, on masque aussi les points qui ne rentrent 
    58 ; pas ds le domaine geographique definit par lon1,lon2,lat1,lat2 
     71; If key_irregular eq 1, we mask also points which are not in the geographic  
     72; domain defined by lon1,lon2,lat1,lat2 
    5973  if keyword_set(key_irregular) AND n_elements(glam) NE 0 AND n_elements(gphi) NE 0 then begin 
    6074    dom =   where(glam LT lon1 OR glam GT lon2 OR gphi LT lat1 OR gphi GT lat2) 
     
    7387    return 
    7488  endif 
    75 ; ma et mi : max et min sur les points mer 
     89; ma and mi : max and min on ocean points 
    7690  vraimax = max(tab[mer], min = vraimin, _extra = ex) 
    7791  sameminmax = testvar(var = minin) EQ testvar(var = maxin)  
Note: See TracChangeset for help on using the changeset viewer.