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

Last change on this file since 114 was 114, checked in by smasson, 18 years ago

new compilation options (compile_opt idl2, strictarrsubs) in each routine

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