source: trunk/SRC/Tests/tst_initorca2_index_stride.pro @ 231

Last change on this file since 231 was 163, checked in by navarro, 18 years ago

header improvements : type of parameters and keywords, default values, spell checking + idldoc assistant (IDL online_help)

  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1;+
2;
3; @hidden
4;
5; @file_comments
6; definition of the domain on ORCA2 but with i/j index instead of
7; longitude/latitude
8;
9; different possibilities are proposed
10;
11; @history
12; Sebastien Masson
13;
14; @version $Id$
15;-
16;
17; 1) definition with a file
18;
19file = 'Levitus98_1m_01_12_Temperature_Pot_ORCA2.nc'
20initncdf, file, xminmesh = 1, xmaxmesh = -1 $
21          , yminmesh = 0, ymaxmesh = -1, /xyindex, stride = [2, 2, 1] $
22          , /lookalldir
23;
24; 2) definition with the meshmask
25;
26; file = 'micromeshmaskORCA2.nc'
27; initncdf, file, xaxisname = 'glamt', yaxisname = 'gphit' $
28;           , /xyindex, zaxisname = 'gdept', stride = [2, 2, 1] $
29;           , yminmesh = 0, ymaxmesh = -1, xminmesh = 1, xmaxmesh = -1 $
30;           , /lookalldir
31;
32; 3) by calling directly computegrid
33;
34; if we don't know jpiglo and jpjglo, we call ncdf_meshread with /getdimensions
35; ncdf_meshread, 'micromeshmaskORCA2.nc', /getdimensions $
36;               , iodirectory = [iodir, homedir, !path], /recursive
37;---------------------------------------------------------
38; define the grid parameters
39;---------------------------------------------------------
40; computegrid, 0, 0, 1, 1, jpiglo, jpjglo, xminmesh = 1, xmaxmesh = -1 $
41;           , yminmesh = 0, ymaxmesh = -1, onearth = 0, stride = [2, 2, 1] $
42;           , /lookalldir
Note: See TracBrowser for help on using the repository browser.