source: trunk/Grid/saveboxparam.pro @ 13

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

upgrade of GRILLE/Utilities according to cerbere.lodyc.jussieu.fr: /usr/home/smasson/SAXO_RD/ : files

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