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 | ; cm_4mesh (and cm_demomode_used 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 | ; IDL> saveboxparam, filename |
---|
20 | ; |
---|
21 | ; @history |
---|
22 | ; Sebastien Masson (smasson\@lodyc.jussieu.fr) |
---|
23 | ; June 2005 |
---|
24 | ; |
---|
25 | ; @version |
---|
26 | ; $Id$ |
---|
27 | ; |
---|
28 | ;- |
---|
29 | PRO 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 |
---|
64 | end |
---|