source: trunk/SRC/Grid/saveboxparam.pro @ 413

Last change on this file since 413 was 388, checked in by smasson, 16 years ago

introduce meridional and barotropic stream functions, see ticket:59

  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1;+
2;
3; @file_comments
4; save all the zoom parameters (defined by calling <pro>domdef</pro>)
5; in a file (using save command) located in myuniquetmpdir
6; (common variable defined by def_myuniquetmpdir)
7;
8; @param filename {in}{required} {type=scalar string}
9; the file name
10;
11; @uses
12; <pro>cm_4mesh</pro> (and <pro>cm_demomode</pro> if we are in demo mode)
13;
14; @restrictions
15; call def_myuniquetmpdir, if myuniquetmpdir is undefined:
16;               => define, create and add it to !path
17;
18; @examples
19;
20;   IDL> saveboxparam, filename
21;
22; @history
23; Sebastien Masson (smasson\@lodyc.jussieu.fr)
24;                      June 2005
25;
26; @version
27; $Id$
28;
29;-
30PRO saveboxparam, filename
31;
32  compile_opt idl2, strictarrsubs
33;
34@cm_4mesh
35;
36  def_myuniquetmpdir
37;
38  IF lmgr(/demo) EQ 1 THEN BEGIN
39; if we are in demo mode, we cannot save the parameters in a temporary file...
40@cm_demomode_used
41;
42      boxzoomparam = {bound:[lon1, lon2, lat1, lat2, vert1, vert2] $
43       , indexes:[firstxt, lastxt, firstyt, lastyt $
44                , firstxu, lastxu, firstyu, lastyu $
45                , firstxv, lastxv, firstyv, lastyv $
46                , firstxf, lastxf, firstyf, lastyf $
47                , firstzt, lastzt, firstzw, lastzw $
48                , nxt, nyt, nxu, nyu, nxv, nyv, nxf, nyf, nzt, nzw] $
49       , key:[key_shift, key_periodic, key_stride, key_gridtype $
50            , key_yreverse, key_zreverse, key_partialstep, key_onearth]}
51;
52   ENDIF ELSE BEGIN
53;
54      save, lon1, lon2, lat1, lat2, vert1, vert2 $
55       , firstxt, lastxt, firstyt, lastyt $
56       , firstxu, lastxu, firstyu, lastyu $
57       , firstxv, lastxv, firstyv, lastyv $
58       , firstxf, lastxf, firstyf, lastyf $
59       , firstzt, lastzt, firstzw, lastzw $
60       , nxt, nyt, nxu, nyu, nxv, nyv, nxf, nyf, nzt, nzw $
61       , key_shift, key_periodic, key_stride, key_gridtype $
62       , key_yreverse, key_zreverse, key_partialstep, key_onearth $
63       , filename = myuniquetmpdir + filename
64;
65   ENDELSE
66;
67  return
68end
Note: See TracBrowser for help on using the repository browser.