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