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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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' 
Note: See TracChangeset for help on using the changeset viewer.