Changeset 142 for trunk/SRC/ToBeReviewed/PLOTS/DIVERS/determineminmax.pro
- Timestamp:
- 07/21/06 14:47:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/PLOTS/DIVERS/determineminmax.pro
r134 r142 3 3 ;------------------------------------------------------------ 4 4 ;+ 5 ; NAME:determineminmax6 5 ; 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 8 8 ; 9 ; CATEGORY: delestage de l''ecriture de plt, pltz, pltt 9 ; @categories 10 ; Lightening of the writting of plt, pltz and pltt 10 11 ; 11 ; CALLING SEQUENCE:determineminmax, tab, mask, vraimin, vraimax 12 ; @param TAB {in}{required} 13 ; The array whose we determine the min and the max 12 14 ; 13 ; INPUTS: 15 ; @param MASK {in}{required} 16 ; The mask array 14 17 ; 15 ; tab: le tableau dont il faut determiner le min et le max16 ; mask: le tableau de masque18 ; @keyword MININ 19 ; It is a scalar which, if it is not defined, take the value of VRAIMIN 17 20 ; 18 ; KEYWORD PARAMETERS: 21 ; @keyword MAXIN 22 ; It is a scalar which, if it is not defined, take the value of VRAIMAX 19 23 ; 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 22 30 ; 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 25 36 ; 26 ; OUTPUTS: 37 ; @param VRAIMAX {out} 38 ; The max of the array 27 39 ; 28 ; vraimin et vraimax: le min et le max du tableau 40 ; @uses 41 ; Common.pro 29 42 ; 30 ; COMMON BLOCKS:31 ; common.pro43 ; @restrictions 44 ; Look if the field is constant on the sea 32 45 ; 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 34 49 ; 35 ; RESTRICTIONS: 50 ; @version 51 ; $Id$ 36 52 ; 37 ; EXAMPLE:53 ; @todo seb: manque les param glam et gphi 38 54 ; 39 ; MODIFICATION HISTORY: Sebastien Masson (smasson@lodyc.jussieu.fr)40 ; 11/12/9841 55 ;- 42 56 ;------------------------------------------------------------ … … 50 64 ;----------------------------------------------------------------------------- 51 65 ;----------------------------------------------------------------------------- 52 ; type de grille verticale:66 ; Type o fthe vertical grid: 53 67 if vargrid EQ 'W' then nz = nzw ELSE nz = nzt 54 68 ; liste des points mer 55 69 if (size(mask))[0] EQ 3 then mer = mask[*, *, 0] $ 56 70 ELSE mer = mask 57 ; si key_irregular eq 1, on masque aussi les points qui ne rentrent58 ; pas ds le domaine geographique definit parlon1,lon2,lat1,lat271 ; If key_irregular eq 1, we mask also points which are not in the geographic 72 ; domain defined by lon1,lon2,lat1,lat2 59 73 if keyword_set(key_irregular) AND n_elements(glam) NE 0 AND n_elements(gphi) NE 0 then begin 60 74 dom = where(glam LT lon1 OR glam GT lon2 OR gphi LT lat1 OR gphi GT lat2) … … 73 87 return 74 88 endif 75 ; ma et mi : max et min sur les points mer89 ; ma and mi : max and min on ocean points 76 90 vraimax = max(tab[mer], min = vraimin, _extra = ex) 77 91 sameminmax = testvar(var = minin) EQ testvar(var = maxin)
Note: See TracChangeset
for help on using the changeset viewer.