Changeset 101 for trunk/SRC/Interpolation/get_gridparams.pro
- Timestamp:
- 06/12/06 10:29:56 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Interpolation/get_gridparams.pro
r69 r101 1 1 ;+ 2 ; NAME: get_gridparams 3 ; 4 ; PURPOSE: 2 ; 3 ; @file_comments 5 4 ; 1) extract from a NetCDF file the longitude, latidude, and their dimensions 6 5 ; and make sure it is 1D or 2D arrays … … 9 8 ; they are 1D or 2D arrays 10 9 ; 11 ; CATEGORY:for interpolations tools12 ; 13 ; CALLING SEQUENCE:10 ; @categories interpolation 11 ; 12 ; @examples 14 13 ; 15 14 ; 1) get_gridparams, file, lonname, latname, lon, lat, jpi, jpj, n_dimensions … … 19 18 ; 2) get_gridparams, lon, lat, jpi, jpj, n_dimensions 20 19 ; 21 ; INPUTS:22 ;23 20 ; 1) 24 ; file: the name of the netcdf file 25 ; loname: the name of the variable that contains the longitude in the NetCDF file 26 ; latname: the name of the variable that contains the latitude in the NetCDF file 21 ; @param in1 {in}{required} the name of the netcdf file 22 ; @param in2 {in}{required} the name of the variable that contains the longitude in the NetCDF file 23 ; @param in3 {in}{required} the name of the variable that contains the latitude in the NetCDF file 24 ; @param in4 {out} the number of points in the longitudinal direction 25 ; @param in5 {out} the number of points in the latitudinal direction 26 ; @param in6 {out} the variable that will contain the longitudes 27 ; @param in7 {out} the variable that will contain the latitudes 28 ; @param in8 {out} 1 or 2 to specify if lon and lat should be 1D (jpi or jpj) 27 29 ; 28 30 ; or 29 31 ; 30 ; 2) lon and lat: 1d or 2D arrays defining longitudes and latitudes. 32 ; 2) 33 ; @param lon lat {in}{required} 1d or 2D arrays defining longitudes and latitudes. 31 34 ; Note that these arrays are also outputs and can therefore be modified. 32 35 33 ; KEYWORD PARAMETERS: none 34 ; 35 ; OUTPUTS: 36 ; lon the variable that will contain the longitudes 37 ; lat the variable that will contain the latitudes 38 ; jpi the number of points in the longitudinal direction 39 ; jpj the number of points in the latitudinal direction 40 ; n_dimensions: 1 or 2 to specify if lon and lat should be 1D (jpi or jpj) 36 ; @param in1 {out} the variable that will contain the longitudes 37 ; @param in2 {out} the variable that will contain the latitudes 38 ; @param in3 {out} the number of points in the longitudinal direction 39 ; @param in4 {out} the number of points in the latitudinal direction 40 ; @param in5 {out} 1 or 2 to specify if lon and lat should be 1D (jpi or jpj) 41 41 ; arrays or 2D arrays (jpi,jpj). Note that of n_dimensions = 1, then the 42 42 ; grid must be regular (each longitudes must be the same for all latitudes 43 43 ; and each latitudes should be the sae for all longitudes). 44 44 ; 45 ; COMMON BLOCKS: none 46 ; 47 ; SIDE EFFECTS: ? 48 ; 49 ; RESTRICTIONS: ? 50 ; 51 ; EXAMPLE: 45 ; @examples 52 46 ; 53 47 ; 1) ncdf_get_gridparams, 'coordinates_ORCA_R05.nc', 'glamt', 'gphit' $ … … 56 50 ; 2) ncdf_get_gridparams, olon, olat, jpio, jpjo, 2 57 51 ; 58 ; MODIFICATION HISTORY:59 ; November 2005: Sebastien Masson (smasson @lodyc.jussieu.fr)52 ; @history 53 ; November 2005: Sebastien Masson (smasson\@lodyc.jussieu.fr) 60 54 ; 61 55 ;-
Note: See TracChangeset
for help on using the changeset viewer.