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

Last change on this file since 313 was 238, checked in by pinsard, 17 years ago

improvements/corrections of some *.pro headers

  • Property svn:keywords set to Id
File size: 1.7 KB
RevLine 
[13]1;+
2;
[231]3; @file_comments
4; save all the zoom parameters (defined by calling <pro>domdef</pro>)
[155]5; in a file (using save command) located in myuniquetmpdir
6; (common variable defined by def_myuniquetmpdir)
[13]7;
[238]8; @param filename {in}{required} {type=scalar string}
9; the file name
[13]10;
[231]11; @uses
12; cm_4mesh (and cm_demomode_used if we are in demo mode)
13;
14; @restrictions
15; call def_myuniquetmpdir, if myuniquetmpdir is undefined:
[13]16;               => define, create and add it to !path
17;
[155]18; @examples
19; IDL> saveboxparam, filename
20;
[231]21; @history
22; Sebastien Masson (smasson\@lodyc.jussieu.fr)
[13]23;                      June 2005
[118]24;
[231]25; @version
26; $Id$
[118]27;
[13]28;-
[231]29;
[13]30PRO saveboxparam, filename
[114]31;
32  compile_opt idl2, strictarrsubs
33;
[13]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_irregular}
50;
51   ENDIF ELSE BEGIN
52;
53      save, lon1, lon2, lat1, lat2, vert1, vert2 $
54       , firstxt, lastxt, firstyt, lastyt $
55       , firstxu, lastxu, firstyu, lastyu $
56       , firstxv, lastxv, firstyv, lastyv $
57       , firstxf, lastxf, firstyf, lastyf $
58       , firstzt, lastzt, firstzw, lastzw $
59       , nxt, nyt, nxu, nyu, nxv, nyv, nxf, nyf, nzt, nzw $
60       , key_irregular, filename = myuniquetmpdir + filename
61;
62   ENDELSE
63;
64  return
65end
Note: See TracBrowser for help on using the repository browser.