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

Last change on this file since 118 was 118, checked in by pinsard, 18 years ago

add $ in Calendar, Grid, Interpolation, Obsolete and Postscript *.pro files, add svn:keywords Id to all these files, some improvements in header

  • Property svn:executable set to *
  • Property svn:keywords set to Id
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; @version $Id$
24;
25;-
26;------------------------------------------------------------
27;------------------------------------------------------------
28;------------------------------------------------------------
29PRO saveboxparam, filename
30;
31  compile_opt idl2, strictarrsubs
32;
33@cm_4mesh
34;
35  def_myuniquetmpdir
36;
37  IF lmgr(/demo) EQ 1 THEN BEGIN
38; if we are in demo mode, we cannot save the parameters in a temporary file...
39@cm_demomode_used
40;
41      boxzoomparam = {bound:[lon1, lon2, lat1, lat2, vert1, vert2] $
42       , indexes:[firstxt, lastxt, firstyt, lastyt $
43       , firstxu, lastxu, firstyu, lastyu $
44       , firstxv, lastxv, firstyv, lastyv $
45       , firstxf, lastxf, firstyf, lastyf $
46       , firstzt, lastzt, firstzw, lastzw $
47       , nxt, nyt, nxu, nyu, nxv, nyv, nxf, nyf, nzt, nzw] $
48       , key:key_irregular}
49;
50   ENDIF ELSE BEGIN
51;
52      save, lon1, lon2, lat1, lat2, vert1, vert2 $
53       , firstxt, lastxt, firstyt, lastyt $
54       , firstxu, lastxu, firstyu, lastyu $
55       , firstxv, lastxv, firstyv, lastyv $
56       , firstxf, lastxf, firstyf, lastyf $
57       , firstzt, lastzt, firstzw, lastzw $
58       , nxt, nyt, nxu, nyu, nxv, nyv, nxf, nyf, nzt, nzw $
59       , key_irregular, filename = myuniquetmpdir + filename
60;
61   ENDELSE
62;
63  return
64end
Note: See TracBrowser for help on using the repository browser.