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/INIT/initncdf.pro

    r134 r142  
    33;------------------------------------------------------------ 
    44;+ 
    5 ; NAME:initncdf 
    6 ; 
    7 ; PURPOSE:initfile for Netcdf file. define all the grid parameters 
    8 ; 
    9 ; CATEGORY: 
    10 ; 
    11 ; CALLING SEQUENCE:initncdf, ncfilename 
     5; 
     6; @file_comments 
     7; Initfile for Netcdf file. define all the grid parameters 
     8; 
     9; @categories 
     10; 
    1211;  
    13 ; INPUTS:ncfilename: a string giving the name of the NetCdf file 
    14 ; 
    15 ; KEYWORD PARAMETERS: 
    16 ; 
    17 ;       GLAMBOUNDARY:a 2 elements vector, {lon1,lon2], the longitute 
    18 ;       boundaries that should be used to visualize the data. 
    19 ;         lon2 > lon1 
    20 ;         lon2 - lon1 le 360 
    21 ;       key_shift will be defined according to GLAMBOUNDARY. 
    22 ; 
    23 ;       /INVMASK: to inverse the mask: mask = 1-mask 
    24 ; 
    25 ;       IODIRECTORY;a string giving the name of iodirectory (see 
    26 ;       isafile.pro for all possibilities). default value is common  
    27 ;       variable iodir 
    28 ; 
    29 ;       MASKNAME: a string giving the name of the variable in the file  
    30 ;       that contains the land/sea mask 
    31 ; 
    32 ;       MISSING_VALUE: to define (or redifine if the attribute is 
    33 ;       already existing) the missing values used with USEASMASK 
    34 ;       keyword 
    35 ; 
    36 ;       /start1: index the axis from 1 instead of 0 when using 
    37 ;       /xyindex and/or zindex 
    38 ; 
    39 ;       USEASMASK: a string giving the name of the variable in the file  
    40 ;       that will be used to build the land/sea mask. In this case the 
    41 ;       mask is based on the first record (if record dimension 
    42 ;       exists). The mask is build according to : 
    43 ;         1 the keyword missing_value if existing 
    44 ;         2 the attribute 'missing_value' if existing 
    45 ;         3 NaN values if existing 
    46 ; 
    47 ;       [XYZ]AXISNAME= a string giving the name of the variable in the file  
    48 ;       that contains the [xyz]axis.  
    49 ;       for X axis, default name must be 'x', 'longitude', 'nav_lon' or 'lon'. 
    50 ;       for Y axis, default name must be 'y', 'latitude', 'nav_lat' or 'lat'. 
    51 ;       for Z axis, default name must be 'z', 'level', 'lev', 'depth...' 
    52 ; 
    53 ;       [XYZ]MINMESH: to define the common variables i[xyz]minmesh 
    54 ;       used to define the grid only in a zoomed part of the original 
    55 ;       grid. Defaut values are 0L 
    56 ; 
    57 ;       [XYZ]MAXMESH: to define the common variables i[xyz]maxmesh 
    58 ;       used to define the grid only in a zoomed part of the original 
    59 ;       grid. Defaut values are jp[ijk]glo-1 
    60 ; 
    61 ;       /xyindex: to define the x/y axis with index instead of using 
    62 ;       the values contained in X/YAXISNAME.  
    63 ;       x/yaxis = keyword_set(start1) + findgen(jpi/jpj)  
    64 ;       this forces key_onearth = 0 
    65 ; 
    66 ;       /zindex: to define the z axis with index instead of using 
    67 ;       the values contained in ZAXISNAME.  
    68 ;       zaxis = keyword_set(start1) + findgen(jpk)  
    69 ; 
    70 ; OUTPUTS:none, except the grid parameters of the common.pro 
    71 ; 
    72 ; COMMON BLOCKS:common.pro 
    73 ; 
    74 ; SIDE EFFECTS:change the grid parameters of the common.pro 
    75 ; 
    76 ; RESTRICTIONS: 
     12; @param NCFILEIN {in}{required} 
     13; A string giving the name of the NetCdf file 
     14; 
     15; @keyword INVMASK 
     16; To inverse the mask: mask = 1-mask 
     17; 
     18; @keyword MASKNAME 
     19; A string giving the name of the variable in the file  
     20; that contains the land/sea mask 
     21; 
     22; @keyword MISSING_VALUE 
     23; To define (or redifine if the attribute is 
     24; already existing) the missing values used with USEASMASK 
     25; keyword 
     26; 
     27; @keyword START1 
     28; Index the axis from 1 instead of 0 when using 
     29; /xyindex and/or zindex 
     30; 
     31; @keyword USEASMASK 
     32; A string giving the name of the variable in the file  
     33; that will be used to build the land/sea mask. In this case the 
     34; mask is based on the first record (if record dimension 
     35; exists). The mask is build according to : 
     36;    1 the keyword missing_value if existing 
     37;    2 the attribute 'missing_value' if existing 
     38;    3 NaN values if existing 
     39; 
     40; @keyword XAXISNAME 
     41; A string giving the name of the variable in the file  
     42; that contains the [xyz]axis.  
     43; for X axis, default name must be 'x', 'longitude', 'nav_lon' or 'lon'. 
     44;       
     45; @keyword YAXISNAME 
     46; A string giving the name of the variable in the file  
     47; that contains the [xyz]axis.  
     48; for Y axis, default name must be 'y', 'latitude', 'nav_lat' or 'lat'. 
     49; 
     50; @keyword ZAXISNAME 
     51; A string giving the name of the variable in the file  
     52; that contains the [xyz]axis.  
     53; for Z axis, default name must be 'z', 'level', 'lev', 'depth...' 
     54; 
     55; @keyword XYINDEX 
     56; To define the x/y axis with index instead of using 
     57; the values contained in X/YAXISNAME.  
     58; x/yaxis = keyword_set(start1) + findgen(jpi/jpj)  
     59; this forces key_onearth = 0 
     60; 
     61; @keyword ZINDEX 
     62; To define the z axis with index instead of using 
     63; the values contained in ZAXISNAME.  
     64; zaxis = keyword_set(start1) + findgen(jpk)  
     65;  
     66; @keyword _EXTRA 
     67; Used to pass your keywords/ 
     68; 
     69; @uses 
     70; common.pro 
     71; 
     72; @restrictions 
     73; Change the grid parameters of the common.pro 
     74; 
     75; @restrictions 
    7776; the file must contain an x and an y axis. (1 ou 2 dimentional array) 
    7877; 
    79 ; EXAMPLE: IDL> initncdf,'toto.nc',glam=[-180,180] 
    80 ; 
    81 ; MODIFICATION HISTORY:Sebastien Masson (smasson@lodyc.jussieu.fr) 
     78; @examples 
     79;  IDL> initncdf,'toto.nc',glam=[-180,180] 
     80; 
     81; @history 
     82; Sebastien Masson (smasson@lodyc.jussieu.fr) 
    8283;                      8 May 2002 
     84; 
     85; @version 
     86; $Id$ 
     87; 
    8388;- 
    8489;------------------------------------------------------------ 
Note: See TracChangeset for help on using the changeset viewer.