Ignore:
Timestamp:
07/06/06 16:10:25 (18 years ago)
Author:
pinsard
Message:

improvements of Interpolation/*.pro header

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Interpolation/angle.pro

    r121 r125  
    11;--------- 
    22;+ 
    3 ; @file_comments north stereographic polar projection 
     3; @file_comments  
     4; north stereographic polar projection 
    45; 
    56; @param plam {in}{required} 
    67; 
    7 ; @param pphi {in}{required}  
     8; @param pphi {in}{required} 
    89; 
    910; @keyword DOUBLE {default=0} use double precision (default is float) 
    1011; 
    1112; @returns 
    12 ;       gsinu,gcosu : sinus and cosinus of the angle  
    13 ;       gsinv,gcosv   between north-south direction  
     13;       gsinu,gcosu : sinus and cosinus of the angle 
     14;       gsinv,gcosv   between north-south direction 
    1415;       gsint,gcost   and the j-direction of the mesh 
    1516; 
    16 ; @restrictions to compute the lateral boundary conditions, we assume 
    17 ; that:  
     17; @restrictions 
     18; to compute the lateral boundary conditions, we assume that: 
    1819;     (1) the first line is similar to the second line 
    19 ;       =>    gcosu[*, 0] = gcosu[*, 1]  
    20 ;       =>    gsinu[*, 0] = gsinu[*, 1]  
     20;       =>    gcosu[*, 0] = gcosu[*, 1] 
     21;       =>    gsinu[*, 0] = gsinu[*, 1] 
    2122;     (2) the grid follows OPA x periodicity rule, first column is 
    2223;     equal to the next to last column 
     
    2627; 
    2728; @history 
    28 ;   -------------- 
    2929;       Original :  96-07 (O. Marti) 
    3030;                   98-06 (G. Madec) 
    31 ;       Feb 2005: IDL adaptation S. Masson  
     31;       Feb 2005: IDL adaptation S. Masson 
    3232; 
    3333; @version $Id$ 
    3434; 
    3535;- 
    36 ;--------- 
    3736; 
    3837FUNCTION fsnspp, plam, pphi, DOUBLE = double 
     
    4746    a = 2. * tan( !pi/4. - !pi/180.*float(pphi)/2. ) 
    4847    x = cos( !pi/180.*float(plam) ) * a 
    49     y = sin( !pi/180.*float(plam) ) * a     
     48    y = sin( !pi/180.*float(plam) ) * a 
    5049  ENDELSE 
    5150  RETURN, {x:x, y:y} 
     
    150149  znpv01 = -1; free memory 
    151150  IF keyword_set(double) THEN zmnpvt = 1.e-14 > zmnpvt $ 
    152   ELSE zmnpvt = 1.e-6 > zmnpvt  
     151  ELSE zmnpvt = 1.e-6 > zmnpvt 
    153152;   ... j-direction: f-point segment direction (u-point) 
    154153  zxffu = znpf00.x - znpf01.x 
     
    157156  znpf01 = -1; free memory 
    158157  IF keyword_set(double) THEN zmnpfu = 1.e-14 > zmnpfu $ 
    159   ELSE zmnpfu = 1.e-6 > zmnpfu  
     158  ELSE zmnpfu = 1.e-6 > zmnpfu 
    160159;   ... i-direction: f-point segment direction (v-point) 
    161160  zxffv = znpf00.x - znpf10.x 
    162   zyffv = znpf00.y - znpf10.y  
     161  zyffv = znpf00.y - znpf10.y 
    163162  znpf00 = -1 &  znpf10 = -1; free memory 
    164163  zmnpfv = sqrt ( temporary(znnpv) * ( zxffv*zxffv + zyffv*zyffv )  ) 
    165164  IF keyword_set(double) THEN zmnpfv = 1.e-14 > zmnpfv $ 
    166   ELSE zmnpfv = 1.e-6 > zmnpfv  
     165  ELSE zmnpfv = 1.e-6 > zmnpfv 
    167166;   ... cosinus and sinus using scalar and vectorial products 
    168167  gsint = ( znpt.x*zyvvt - znpt.y*zxvvt ) / zmnpvt 
     
    193192; ================================ 
    194193; 
    195   gcost[*, 0] = gcost[*, 1]  
    196   gsint[*, 0] = gsint[*, 1]  
    197   gcosu[*, 0] = gcosu[*, 1]  
    198   gsinu[*, 0] = gsinu[*, 1]  
     194  gcost[*, 0] = gcost[*, 1] 
     195  gsint[*, 0] = gsint[*, 1] 
     196  gcosu[*, 0] = gcosu[*, 1] 
     197  gsinu[*, 0] = gsinu[*, 1] 
    199198  gcosv[0, *] = gcosv[jpj-2, *] 
    200199  gsinv[0, *] = gsinv[jpj-2, *] 
Note: See TracChangeset for help on using the changeset viewer.