[91] | 1 | pro mawd |
---|
| 2 | |
---|
| 3 | ;;;;;;; |
---|
[112] | 4 | ;f_user='/donnees/aslmd/SVN/trunk/mesoscale/TMPDIR/GCMINI/mawd.nc' |
---|
[91] | 5 | ;f_user='/tmp7/aslmd/mawd.nc' |
---|
[112] | 6 | f_user='/d5/aslmd/mawd.nc' |
---|
[91] | 7 | v_user = 'mtot' |
---|
| 8 | x_user = 'Time' |
---|
| 9 | y_user = 'latitude' |
---|
| 10 | transp = 'yes' |
---|
| 11 | tes = 'no' |
---|
| 12 | ;;;;;;; |
---|
[93] | 13 | ;f_user='/donnees/aslmd/TES/TES.SeasonalClimatology.nc' |
---|
| 14 | ;v_user = 'water' |
---|
| 15 | ;x_user = 'time' |
---|
| 16 | ;y_user = 'latitude' |
---|
| 17 | ;transp = 'yes' |
---|
| 18 | ;tes = 'yes' |
---|
[91] | 19 | ;;;;;;; |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | what_I_plot=0. |
---|
| 23 | overcontour=0 |
---|
| 24 | @mawd_inc.pro |
---|
| 25 | print, lev |
---|
| 26 | SPAWN, '\rm param_plot.idl ; cp mawd_inc.pro param_plot.idl' |
---|
| 27 | |
---|
| 28 | PS_START, file='mawd.ps' |
---|
| 29 | !P.Charsize = 1.2 |
---|
| 30 | !p.charthick = 2.0 |
---|
| 31 | !p.thick = 2.0 |
---|
| 32 | !x.thick = 2.0 |
---|
| 33 | !y.thick = 2.0 |
---|
| 34 | |
---|
| 35 | cdfid = ncdf_open(f_user) |
---|
| 36 | |
---|
| 37 | varid=ncdf_varid(cdfid,v_user) |
---|
| 38 | ncdf_varget, cdfid, varid, champ |
---|
| 39 | |
---|
| 40 | varid=ncdf_varid(cdfid,y_user) |
---|
| 41 | ncdf_varget, cdfid, varid, yy |
---|
| 42 | |
---|
| 43 | if (tes eq 'no') then begin |
---|
| 44 | ;;; en precip-microns |
---|
| 45 | champ = champ * 1.e6 / 917. |
---|
[112] | 46 | ;;; prendre Time depuis un autre fichier |
---|
| 47 | cdfid = ncdf_open('/d5/aslmd/gcm_LT14_a035.nc') |
---|
| 48 | varid=ncdf_varid(cdfid,x_user) |
---|
| 49 | ncdf_varget, cdfid, varid, xx |
---|
| 50 | ;;;; entre 0 et 360 |
---|
| 51 | ;xx = xx MOD 360 |
---|
[91] | 52 | endif else begin |
---|
[112] | 53 | varid=ncdf_varid(cdfid,x_user) |
---|
| 54 | ncdf_varget, cdfid, varid, xx |
---|
[91] | 55 | xx = xx - 360.*2. |
---|
| 56 | endelse |
---|
| 57 | |
---|
| 58 | help, champ |
---|
| 59 | if (tes eq 'no') then begin |
---|
| 60 | what_I_plot = champ |
---|
| 61 | endif else begin |
---|
| 62 | what_I_plot = float(reform(champ(0,*,*))) |
---|
| 63 | endelse |
---|
| 64 | help, what_I_plot |
---|
| 65 | overcontour = what_I_plot |
---|
| 66 | |
---|
| 67 | if (tes eq 'yes') then begin |
---|
| 68 | w=where(what_I_plot eq -1.) |
---|
| 69 | what_I_plot[w] = !VALUES.F_NAN |
---|
| 70 | overcontour[w] = !VALUES.F_NAN |
---|
| 71 | endif |
---|
| 72 | |
---|
| 73 | if (transp eq 'yes') then begin |
---|
| 74 | what_I_plot = transpose(what_I_plot) |
---|
| 75 | overcontour = transpose(overcontour) |
---|
| 76 | endif |
---|
| 77 | |
---|
| 78 | map_latlon, $ |
---|
| 79 | what_I_plot, $ ; 2D field |
---|
| 80 | xx, $ ; 1D latitude OR 2D |
---|
| 81 | yy, $ ; 1D longitude OR 2D |
---|
| 82 | ; minfield=minfield_init, $ ; minimum value of plotted field (=0: calculate) |
---|
| 83 | ; maxfield=maxfield_init, $ ; maximum value of plotted field (=0: calculate) |
---|
| 84 | overcontour=overcontour, $ ; another 2D field to overplot with contour lines (=0: no) |
---|
| 85 | ; overvector_x=overvector_x, $ ; wind vector - x component (=0: no) |
---|
| 86 | ; overvector_y=overvector_y, $ ; wind vector - y component (=0: no) |
---|
| 87 | ct=pal, $ ; color table (33-rainbow is default) |
---|
| 88 | ; colors=colors, $ ; number of colors/levels (32 is default) |
---|
| 89 | ; title=title_user, $ ; title of the plot ('' is default) |
---|
| 90 | format=format ; format of colorbar annotations ('(F6.2)' is default) |
---|
| 91 | |
---|
| 92 | |
---|
| 93 | PS_END, /PNG |
---|
| 94 | |
---|
| 95 | end |
---|