Changeset 118 for trunk/SRC/Grid


Ignore:
Timestamp:
06/27/06 17:47:06 (18 years ago)
Author:
pinsard
Message:

add $ in Calendar, Grid, Interpolation, Obsolete and Postscript *.pro files, add svn:keywords Id to all these files, some improvements in header

Location:
trunk/SRC/Grid
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Grid/computegrid.pro

    • Property svn:keywords changed from Author Date Id Revision to Id
    r114 r118  
    1111;       or a suitable mix... 
    1212; 
    13 ; horizontal parameters: 
    14 ;       glam[tf], gphi[tf], e1t and e2t 
    15 ;    and if FULLCGRID keyword is defined: 
    16 ;       glam[uv], gphi[uv], e1[uvf] and e2[uvf] 
     13; glamt  
     14; glamf  
     15; gphit  
     16; gphif  
     17; e1t  
     18; e2t  
     19; horizontal parameters 
     20; 
     21; glamu {in} 
     22; glamv {in} 
     23; gphiu {in} 
     24; gphiv {in} 
     25; e1u {in} 
     26; e1v {in} 
     27; e1f {in} 
     28; e2u {in} 
     29; e2v {in} 
     30; e2f {in} 
     31; horizontal parameters if FULLCGRID keyword is defined 
    1732;       
    18 ; verticals parameters: 
    19 ;       gdep[tw], e3[tw] 
    20 ; 
    21 ; masks: tmask 
    22 ;        and if FULLCGRID keyword is defined:[uv]maskred fmaskred[xy] 
    23 ; 
    24 ; triangulation: triangles_list 
    25 ; 
    26 ; key_ parameters: 
    27 ;       key_shift, key_periodic, key_zreverse, key_yreverse, 
    28 ;       key_stride, key_onearth, key_partialstep 
     33; gdept  
     34; gdepw  
     35; e3t  
     36; e3w  
     37; verticals parameters 
     38; 
     39; tmask  
     40; masks 
     41; 
     42; umaskred {in} 
     43; vmaskred {in} 
     44; fmaskredx {in} 
     45; fmaskredy {in} 
     46; masks if FULLCGRID keyword is defined 
     47;  
     48; triangles_list 
     49; triangulation 
    2950; 
    3051; @categories grid 
    3152; 
    32 ;       @param startx {in}{required} scalar, x starting point 
    33 ;       @param starty {in}{required} scalar, y starting point 
    34 ;       @param stepxin {in}{required} scalar or vector: x direction step, must be > 0 
     53; @param startx {in}{required} scalar, x starting point 
     54; @param starty {in}{required} scalar, y starting point 
     55; @param stepxin {in}{required} scalar or vector: x direction step, must be > 0 
    3556;             if vector nx is not used 
    36 ;       @param stepyin {in}{required} scalar or vector: y direction step,  
     57; @param stepyin {in}{required} scalar or vector: y direction step,  
    3758;             could be > 0 (south to north) or < 0 (north to south) 
    3859;             if vector ny is not used 
    39 ;       @param nxin {in}{required} scalar, number of points in x direction  
    40 ;       @param nyin {in}{required} scalar, number of points in y direction 
    41 ; 
    42 ;       @keyword /FULLCGRID activate to specify that you want to compute 
     60; @param nxin {in}{required} scalar, number of points in x direction  
     61; @param nyin {in}{required} scalar, number of points in y direction 
     62; 
     63; @keyword /FULLCGRID activate to specify that you want to compute 
    4364;       all the paremeters of a C grid. Computation of glam[uv], 
    4465;       gphi[uv], e1[uvf], e2[uvf], [uv]maskred and fmaskred[xy] 
    4566;       will be add to the default computations 
    4667; 
    47 ;       @keyword GLAMBOUNDARY a 2 elements vector, [lon1,lon2], the longitute 
     68; @keyword GLAMBOUNDARY a 2 elements vector, [lon1,lon2], the longitute 
    4869;       boundaries that should be used to visualize the data. 
    4970;       we must have lon2 > lon1 and lon2 - lon1 le 360 
     
    5273;       key_shift will /= 0 only if key_periodic = 1  
    5374; 
    54 ;       @keyword MASK to specify the mask with a 2 or 3 dimension array 
    55 ; 
    56 ;       @keyword ONEARTH = 0 or 1 to force the manual definition of 
     75; @keyword MASK to specify the mask with a 2 or 3 dimension array 
     76; 
     77; @keyword ONEARTH = 0 or 1 to force the manual definition of 
    5778;       key_onearth (to specify if the data are on earth -> use longitude 
    5879;       /latitude etc...). By default, key_onearth = 1. 
     
    6081;       and is cancelling GLAMBOUNDARY 
    6182; 
    62 ;       @keyword PERIODIC = 0 or 1 to force the manual definition of 
     83; @keyword PERIODIC = 0 or 1 to force the manual definition of 
    6384;       key_periodic. By default, key_periodic is automaticaly 
    6485;       computed by using the first line of glamt.  
    6586; 
    66 ;       @keyword /PLAIN force PERIODIC = 0, SHIFT = 0, STRIDE = [1, 1, 1] and 
     87; @keyword /PLAIN force PERIODIC = 0, SHIFT = 0, STRIDE = [1, 1, 1] and 
    6788;       suppress the automatic redefinition of the domain in case of  
    6889;       x periodicity overlap, y periodicity overlap (ORCA type only) 
    6990;       and mask border to 0. 
    7091; 
    71 ;       @keyword SHIFT = scalar to force the manual definition of key_shift. By 
     92; @keyword SHIFT = scalar to force the manual definition of key_shift. By 
    7293;       debault, key_shift is automaticaly computed according to 
    7394;       glamboundary (when defined) by using the FIRST LINE of glamt. if 
    7495;       key_periodic=0 then in any case key_shift = 0.  
    7596; 
    76 ;       @keyword STRCALLING a string containing the calling command used to 
     97; @keyword STRCALLING a string containing the calling command used to 
    7798;       call computegrid (this is used by xxx.pro) 
    7899; 
    79 ;       @keyword STRIDE  a 3 elements vector to specify the stride in x, y, z 
     100; @keyword STRIDE  a 3 elements vector to specify the stride in x, y, z 
    80101;       direction. Default definition is [1, 1, 1]. The resulting value 
    81102;       will be stored in the common (cm_4mesh) variable key_stride 
    82103; 
    83 ;       @keyword XAXIS to specify longitude1 with a 1 or 2 dimension array, in  
     104; @keyword XAXIS to specify longitude1 with a 1 or 2 dimension array, in  
    84105;       this case startx, stepx and nx are not used but could be 
    85106;       necessary if the y axis is not defined with yaxis. It must be 
     
    87108;       order by shifting its elements. 
    88109; 
    89 ;       @keyword YAXIS to specify latitudes with a 1 or 2 dimension array, in  
     110; @keyword YAXIS to specify latitudes with a 1 or 2 dimension array, in  
    90111;       this case starty, stepy and ny are not used but starty and 
    91112;       stepy could be necessary if the x axis is not defined with xaxis. 
     
    93114;       (along each column if 2d array). 
    94115; 
    95 ;       @keyword /XYINDEX activate to specify that the horizontal grid should  
     116; @keyword /XYINDEX activate to specify that the horizontal grid should  
    96117;       be simply defined by using the index of the points 
    97118;          (xaxis = findgen(nx) and yaxis = findgen(ny)) 
    98119;       using this keyword forces key_onearth=0 
    99120; 
    100 ;       @keyword XMINMESH  
    101 ;       @keyword YMINMESH  
    102 ;       @keyword ZMINMESH  
     121; @keyword XMINMESH  
     122; @keyword YMINMESH  
     123; @keyword ZMINMESH  
    103124;       to define the common variables i[xyz]minmesh 
    104125;       used to define the grid only in a zoomed part of the original 
    105126;       grid. Defaut values are 0L, max value is [XYZ]MAXMESH 
    106127; 
    107 ;       @keyword XMAXMESH  
    108 ;       @keyword YMAXMESH  
    109 ;       @keyword ZMAXMESH  
     128; @keyword XMAXMESH  
     129; @keyword YMAXMESH  
     130; @keyword ZMAXMESH  
    110131;       to define the common variables i[xyz]maxmesh 
    111132;       used to define the grid only in a zoomed part of the original 
     
    115136;       [XYZ]MAXMESH     
    116137; 
    117 ;       @keyword ZAXIS to specify the vertical axis with a 1 dimension 
     138; @keyword FBASE2TBASE 
     139; 
     140; @keyword STRCALLING 
     141; 
     142; @keyword ZAXIS to specify the vertical axis with a 1 dimension 
    118143;       array. Must be sorted in the increasing or deceasing order 
     144; 
     145; @keyword _EXTRA used to pass your keywords to the created function. 
    119146; 
    120147; @uses cm_4mesh cm_4data cm_4cal 
     
    134161;  Sept 2004, several bug fixs to suit C grid type... 
    135162;  Aug 2005, rewritte almost everything... 
     163; 
     164; @version $Id$ 
     165; 
    136166;- 
    137167;------------------------------------------------------------ 
  • trunk/SRC/Grid/micromeshmask.pro

    • Property svn:keywords set to Id
    r114 r118  
    22; 
    33; @file_comments reduce the size of the NetCDF meshmask created by OPA by 
    4 ; using bit (and not byte) format for the masks and the foat format 
    5 ; for the other fields.  
     4; using bit (and not byte) format for the masks and the float format 
     5; for the other fields. 
    66; 
    77; @categories for OPA meshmask files 
    88; 
    9 ; @examples  
    10 ; IDL> reducencmeshmask, ncfilein[, ncfileout] 
    11 ; 
    12 ; @examples  
    13 ;    IDL> meshdir='/d1fes2-raid2/smasson/DATA/ORCA05/' 
    14 ;    IDL> micromeshmask, 'meshmask_ORCA_R05.nc',iodir=meshdir 
     9; @param inid {in}{required} 
     10; @param outid {in}{required} 
     11; @param inname {in}{required} 
     12; @param outname {in}{optional} 
    1513; 
    1614; @history 
    1715;      July 2004 Sebastien Masson (smasson\@lodyc.jussieu.fr) 
     16; 
     17; @version $Id$ 
     18; 
    1819;- 
    1920;------------------------------------------------------ 
     
    3031; 
    3132;+ 
    32 ;    @keyword IODIR to define the files path. 
     33; 
    3334;      @param ncfilein {in}{required} 
    3435;      1) the name of the meshmask file to be reduced. In that case, 
     
    4041;      xxx.mask.nc. In that case, the meshmask is split into 3 files. 
    4142; 
    42 ;      @param ncfileout {in}{required} the name of the uniq reduced meshmask file. default 
    43 ;      definition is micromeshmask.nc 
     43; @param ncfileout {in}{optional} the name of the uniq reduced meshmask file. 
     44; default definition is micromeshmask.nc 
     45; 
     46; @keyword IODIR to define the files path. 
     47; 
     48; @examples 
     49; IDL> meshdir='/d1fes2-raid2/smasson/DATA/ORCA05/' 
     50; IDL> micromeshmask, 'meshmask_ORCA_R05.nc',iodir=meshdir 
    4451; 
    4552;- 
    4653PRO micromeshmask, ncfilein, ncfileout, IODIR = iodir 
    47 ; 
    4854; 
    4955  compile_opt idl2, strictarrsubs 
     
    6874; get the horizontal dimensions 
    6975  IF n_elements(filein_hgr) NE 0  THEN cdfid = ncdf_open(filein_hgr) $ 
    70   ELSE cdfid = ncdf_open(filein)  
     76  ELSE cdfid = ncdf_open(filein) 
    7177  ncdf_diminq, cdfid, 'x', name, jpi 
    7278  ncdf_diminq, cdfid, 'y', name, jpj 
     
    8187  ENDIF 
    8288  listdims = strlowcase(ncdf_listdims(cdfid)) 
    83   IF (where(listdims EQ 'z'))[0] NE -1 THEN ncdf_diminq, cdfid, 'z', name, jpk ELSE BEGIN  
     89  IF (where(listdims EQ 'z'))[0] NE -1 THEN ncdf_diminq, cdfid, 'z', name, jpk ELSE BEGIN 
    8490    dimid = (where(strmid(listdims, 0, 5) EQ 'depth'))[0] 
    85     IF dimid NE -1 THEN ncdf_diminq, cdfid, dimid, name, jpk ELSE BEGIN  
     91    IF dimid NE -1 THEN ncdf_diminq, cdfid, dimid, name, jpk ELSE BEGIN 
    8692      dummy = report('We could not find the vertical dimension..., its name must be z or start with depth') 
    8793      return 
    88     ENDELSE  
    89   ENDELSE  
     94    ENDELSE 
     95  ENDELSE 
    9096;; get the variables list related to the partial steps 
    9197  varlist_ps = ncdf_listvars(cdfid) 
     
    174180  FOR z = 0, n_elements(zgrlist)-1 DO $ 
    175181    ncdf_transfer, cdfid, cdfidout, zgrlist[z] 
    176 ; partial step variables  
     182; partial step variables 
    177183  IF (where(varlist_ps EQ 'hdept'))[0] NE -1 THEN $ 
    178184    ncdf_transfer, cdfid, cdfidout, 'hdept' 
  • trunk/SRC/Grid/n128gaussian.pro

    • Property svn:keywords set to Id
    r114 r118  
    1313;      Sebastien Masson (smasson\@lodyc.jussieu.fr) 
    1414;      June 2004 
     15; 
     16; @version $Id$ 
     17; 
    1518;- 
    1619; 
  • trunk/SRC/Grid/n160gaussian.pro

    • Property svn:keywords set to Id
    r114 r118  
    1414;      Sebastien Masson (smasson\@lodyc.jussieu.fr) 
    1515;      June 2004 
     16; 
     17; @version $Id$ 
     18; 
    1619;- 
    1720; 
  • trunk/SRC/Grid/n256gaussian.pro

    • Property svn:keywords set to Id
    r114 r118  
    1414;      Sebastien Masson (smasson\@lodyc.jussieu.fr) 
    1515;      June 2004 
     16; 
     17; @version $Id$ 
     18; 
    1619;- 
    1720; 
  • trunk/SRC/Grid/n48gaussian.pro

    • Property svn:keywords set to Id
    r114 r118  
    1414;      Sebastien Masson (smasson\@lodyc.jussieu.fr) 
    1515;      June 2004 
     16; 
     17; @version $Id$ 
     18; 
    1619;- 
    1720; 
  • trunk/SRC/Grid/n80gaussian.pro

    • Property svn:keywords set to Id
    r114 r118  
    1414;      Sebastien Masson (smasson\@lodyc.jussieu.fr) 
    1515;      June 2004 
     16; 
     17; @version $Id$ 
     18; 
    1619;- 
    1720; 
  • trunk/SRC/Grid/ncdf_meshread.pro

    • Property svn:keywords set to Id
    r114 r118  
    1111; IDL> ncdf_meshread [,' filename'] 
    1212;  
    13 ;    @param filename {in}{optional} the name of the meshmask file to read. Default is 
     13; @param filename {in}{optional} the name of the meshmask file to read. Default is 
    1414;    meshmask.nc. if this name does not contain any / and if 
    1515;    iodirectory keyword is not specify, then the common variable 
    1616;    iodir will be use to define the mesh file path. 
    1717; 
    18 ;    @keyword GLAMBOUNDARY a 2 elements vector, {lon1,lon2], the longitute 
     18; @keyword GLAMBOUNDARY a 2 elements vector, {lon1,lon2], the longitute 
    1919;    boundaries that should be used to visualize the data. 
    2020;      lon2 > lon1 
     
    2222;    key_shift will be automaticaly defined according to GLAMBOUNDARY. 
    2323; 
    24 ;    @keyword /CHECKDAT Suppressed. Use micromeshmask.pro to create an 
     24; @keyword /CHECKDAT Suppressed. Use micromeshmask.pro to create an 
    2525;    appropriate meshmask. 
    2626; 
    27 ;    @keyword ONEARTH = 0 or 1 to force the manual definition of 
     27; @keyword ONEARTH = 0 or 1 to force the manual definition of 
    2828;    key_onearth (to specify if the data are on earth -> use longitude 
    2929;    /latitude etc...). By default, key_onearth = 1. 
     
    3131;    cancelling GLAMBOUNDARY 
    3232; 
    33 ;    @keyword PERIODIC = 0 or 1 to force the manual definition of 
     33; @keyword GETDIMENSIONS 
     34; 
     35; @keyword PERIODIC = 0 or 1 to force the manual definition of 
    3436;    key_periodic. By default, key_periodic is automaticaly 
    3537;    computed by using the first line of glamt. 
    3638; 
    37 ;    @keyword SHIFT  to force the manual definition of key_shift. By 
     39; @keyword SHIFT  to force the manual definition of key_shift. By 
    3840;    debault, key_shift is automaticaly computed according to the 
    3941;    glamboundary (when defined) by using the first line of glamt. if 
    4042;    key_periodic=0 then in any case key_shift = 0.  
    4143; 
    42 ;    @keyword STRCALLING a string containing the calling command used to call 
     44; @keyword STRCALLING a string containing the calling command used to call 
    4345;    computegrid (this is used by xxx.pro) 
    4446; 
    45 ;    @keyword STRIDE a 3 elements vector to specify the stride in x, y, z 
     47; @keyword STRIDE a 3 elements vector to specify the stride in x, y, z 
    4648;    direction. Default definition is key_stride. The resulting value 
    4749;    will be stored in the common (cm_4mesh) variable key_stride 
     50; 
     51; 
     52; @keyword _EXTRA used to pass your keywords to the created function. 
     53; 
    4854; 
    4955; @uses cm_4mesh cm_4data cm_4cal 
     
    6571; Oct. 2004, Sebastien Masson: add PERIODIC and SHIFT 
    6672; Aug. 2005, Sebastien Masson: some cleaning + english  
     73; 
     74; @version $Id$ 
     75; 
    6776;- 
    6877;------------------------------------------------------------ 
  • trunk/SRC/Grid/restoreboxparam.pro

    • Property svn:keywords set to Id
    r114 r118  
    1919; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 
    2020;                      July 2005 
     21; 
     22; @version $Id$ 
     23; 
    2124;- 
    2225;------------------------------------------------------------ 
  • trunk/SRC/Grid/saveboxparam.pro

    • Property svn:keywords set to Id
    r114 r118  
    2020; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 
    2121;                      June 2005 
     22; 
     23; @version $Id$ 
     24; 
    2225;- 
    2326;------------------------------------------------------------ 
  • trunk/SRC/Grid/smallmeshmask.pro

    • Property svn:keywords set to Id
    r114 r118  
    33; 
    44; @categories for OPA meshmask files 
     5; 
     6; @param inid {in}{required} 
     7; @param outid {in}{required} 
     8; @param inname {in}{required} 
     9; @param outname {in}{optional} 
    510; 
    611; @history 
    712;      July 2004 Sebastien Masson (smasson\@lodyc.jussieu.fr) 
     13; 
     14; @version $Id$ 
     15; 
    816;- 
    917;------------------------------------------------------ 
     
    2129;+ 
    2230; @file_comments reduce the size of the NetCDF meshmask created by OPA by 
    23 ; using byte format for the masks and the foat format for the other 
     31; using byte format for the masks and the float format for the other 
    2432; fields. 
    2533; 
     
    4553; @history 
    4654;      July 2004 Sebastien Masson (smasson\@lodyc.jussieu.fr) 
     55; 
     56; @version $Id$ 
     57; 
    4758;- 
    4859PRO smallmeshmask, ncfilein, ncfileout, IODIR = iodir 
Note: See TracChangeset for help on using the changeset viewer.