[85] | 1 | pro plotplot |
---|
| 2 | |
---|
| 3 | |
---|
| 4 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
---|
| 5 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
---|
| 6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
---|
| 7 | file='hi_res_run_swordfish/3830.002/m4/diagfi.nc' |
---|
| 8 | set_name='velocity' |
---|
| 9 | it=0 |
---|
| 10 | iz=1 |
---|
| 11 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
---|
| 12 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
---|
| 13 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
---|
| 14 | |
---|
| 15 | ; |
---|
| 16 | ; graphics definition |
---|
| 17 | ; |
---|
| 18 | if (n_elements(saveps) eq 0) then saveps='true' |
---|
| 19 | if (saveps eq 'false') then begin |
---|
| 20 | ;!p.multi=[0,3,2] |
---|
| 21 | !P.CHARSIZE=2. |
---|
| 22 | WINDOW, /PIXMAP & WDELETE & DEVICE,BYPASS_TRANSLATION=0,DECOMPOSED=0,RETAIN=2 |
---|
| 23 | endif else begin |
---|
| 24 | PREF_SET, 'IDL_PATH', '/padata/beta/users/aspiga/Save/SOURCES/IDL/fsc_psconfig:<IDL_DEFAULT>', /COMMIT |
---|
| 25 | endelse |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | ;;;;;;;;;;;;;;;;;;;;;;;;;;; |
---|
| 29 | getcdf, file=file, charvar='u' , invar=u |
---|
| 30 | getcdf, file=file, charvar='v' , invar=v |
---|
| 31 | getcdf, file=file, charvar='lon' , invar=lon |
---|
| 32 | getcdf, file=file, charvar='lat' , invar=lat |
---|
| 33 | ;;;;;;;;;;;;;;;;;;;;;;;;;;; |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | ;;;;;;;;;;;;;;;;;;;;;;;;;;; |
---|
| 37 | what_I_plot = sqrt(reform(u(*,*,iz,it))^2 + reform(v(*,*,iz,it))^2) |
---|
| 38 | ox = reform(u(*,*,iz,it)) |
---|
| 39 | oy = reform(v(*,*,iz,it)) |
---|
| 40 | ;;;;;;;;;;;;;;;;;;;;;;;;;;; |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | ;;;;;;;;;;;;;;;;;;;;;;;;;;; |
---|
| 44 | if (saveps eq 'true') then PS_Start, FILENAME=set_name+'.ps' |
---|
| 45 | !P.Charsize = 1.2 |
---|
| 46 | map_latlon, what_I_plot, lon, lat, overvector_x=ox, overvector_y=oy |
---|
| 47 | if (saveps eq 'true') then PS_End, /PNG |
---|
| 48 | ;;;;;;;;;;;;;;;;;;;;;;;;;;; |
---|
| 49 | |
---|
| 50 | |
---|
| 51 | ;;;;;;;;;;;;;;;;;;;;;;;;;;; |
---|
| 52 | cmd='cp plotplot.pro '+set_name+'_plotplot.pro ; cp param_plot.idl '+set_name+'_param_plot.idl' |
---|
| 53 | SPAWN, cmd |
---|
| 54 | ;;;;;;;;;;;;;;;;;;;;;;;;;;; |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | end |
---|