Changeset 142 for trunk/SRC/ToBeReviewed/INIT/initncdf.pro
- Timestamp:
- 07/21/06 14:47:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/INIT/initncdf.pro
r134 r142 3 3 ;------------------------------------------------------------ 4 4 ;+ 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 ; 12 11 ; 13 ; INPUTS:ncfilename: a string giving the name of the NetCdf file14 ; 15 ; KEYWORD PARAMETERS:16 ; 17 ; GLAMBOUNDARY:a 2 elements vector, {lon1,lon2], the longitute18 ; boundaries that should be used to visualize the data.19 ; lon2 > lon120 ; lon2 - lon1 le 36021 ; key_shift will be defined according to GLAMBOUNDARY.22 ; 23 ; /INVMASK: to inverse the mask: mask = 1-mask24 ; 25 ; IODIRECTORY;a string giving the name of iodirectory (see26 ; isafile.pro for all possibilities). default value is common27 ; variable iodir28 ; 29 ; MASKNAME: a string giving the name of the variable in the file30 ; that contains the land/sea mask31 ; 32 ; MISSING_VALUE: to define (or redifine if the attribute is33 ; already existing) the missing values used with USEASMASK34 ; keyword35 ; 36 ; /start1: index the axis from 1 instead of 0 when using37 ; /xyindex and/or zindex38 ; 39 ; USEASMASK: a string giving the name of the variable in the file40 ; that will be used to build the land/sea mask. In this case the41 ; mask is based on the first record (if record dimension42 ; exists). The mask is build according to :43 ; 1 the keyword missing_value if existing44 ; 2 the attribute 'missing_value' if existing45 ; 3 NaN values if existing46 ; 47 ; [XYZ]AXISNAME= astring giving the name of the variable in the file48 ; 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]minmesh54 ; used to define the grid only in a zoomed part of the original55 ; grid. Defaut values are 0L56 ; 57 ; [XYZ]MAXMESH: to define the common variables i[xyz]maxmesh58 ; used to define the grid only in a zoomed part of the original59 ; grid. Defaut values are jp[ijk]glo-160 ; 61 ; /xyindex: to define the x/y axis with index instead of using62 ; the values contained in X/YAXISNAME.63 ; x/yaxis = keyword_set(start1) + findgen(jpi/jpj)64 ; this forces key_onearth = 065 ; 66 ; /zindex: to define the z axis with index instead of using67 ; the values contained in ZAXISNAME.68 ; zaxis = keyword_set(start1) + findgen(jpk)69 ; 70 ; OUTPUTS:none, except the grid parameters of the common.pro71 ; 72 ; COMMON BLOCKS:common.pro73 ; 74 ; SIDE EFFECTS:change the grid parameters of the common.pro75 ; 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 77 76 ; the file must contain an x and an y axis. (1 ou 2 dimentional array) 78 77 ; 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) 82 83 ; 8 May 2002 84 ; 85 ; @version 86 ; $Id$ 87 ; 83 88 ;- 84 89 ;------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.