[13] | 1 | ;------------------------------------------------------------ |
---|
| 2 | ;------------------------------------------------------------ |
---|
| 3 | ;------------------------------------------------------------ |
---|
| 4 | ;+ |
---|
| 5 | ; |
---|
[103] | 6 | ; @file_comments save all the zoom parameters (defined by calling domdef) |
---|
[155] | 7 | ; in a file (using save command) located in myuniquetmpdir |
---|
| 8 | ; (common variable defined by def_myuniquetmpdir) |
---|
[13] | 9 | ; |
---|
[103] | 10 | ; @param filename {in}{required} a scalar string defining the file name |
---|
[13] | 11 | ; |
---|
[155] | 12 | ; @uses cm_4mesh (and cm_demomode_used if we are in demo mode) |
---|
[13] | 13 | ; |
---|
[103] | 14 | ; @restrictions call def_myuniquetmpdir, if myuniquetmpdir is undefined: |
---|
[13] | 15 | ; => define, create and add it to !path |
---|
| 16 | ; |
---|
[155] | 17 | ; @examples |
---|
| 18 | ; IDL> saveboxparam, filename |
---|
| 19 | ; |
---|
[103] | 20 | ; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) |
---|
[13] | 21 | ; June 2005 |
---|
[118] | 22 | ; |
---|
| 23 | ; @version $Id$ |
---|
| 24 | ; |
---|
[13] | 25 | ;- |
---|
| 26 | ;------------------------------------------------------------ |
---|
| 27 | ;------------------------------------------------------------ |
---|
| 28 | ;------------------------------------------------------------ |
---|
| 29 | PRO saveboxparam, filename |
---|
[114] | 30 | ; |
---|
| 31 | compile_opt idl2, strictarrsubs |
---|
| 32 | ; |
---|
[13] | 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 |
---|