GrADS: Plotting multiple variables and panelling of figures (Multiple plots on a single page)
Output image |
The script:
(For this script to be run, you have to have "rupres" file in your present working directory as a prerequisite)
'reinit'
*'set display color white'
*'c'
'set grads off'
'set grid off'
'set xlint 7'
'set ylint 5'
'set xlopts 1 6 0.13'
'set ylopts 1 6 0.13'
'run colors.gs'
'run basemap.gs'
'set mpdset rupres'
*************temperature****************
'set parea 2 6 6 10'
'open file6.nc.ctl'
'set lon 60 104'
'set lat 5 37'
'set gxout shaded'
'set clevs -5 0 5 10 15 20 25 30 35'
'set ccols 45 46 51 52 53 54 55 56 57 58'
'd ts-273.15'
'run cbarn 0.85 8 6.5 8'
'basemap o 0 1'
**************relative_humidity********************
'set parea 2 6 1 5'
'open file7.nc.ctl'
'define hum=ave(rh,t=101,t=104)'
'set lon 60 104'
'set lat 5 37'
'set gxout shaded'
'd hum'
'run cbarn 0.85 6 6.5 3'
'basemap o 0 1'
***********************************
'set string 1 l 7'
'set strsiz 0.12'
'draw string 1.95 10 (a) Temperature 2007 JJAS'
'draw string 1.95 5 (b) Relative Humidity 2007 JJAS'
*'gxprint output.png x1200 y1600 white'
'printim output.pdf'
Comments
Post a Comment