Hi everyone,<div><br></div><div> Now I want to draw a figure that contains many variables from different files under Grads. The script is as follows.<br><br>'reinit'<br>'set grid off'<br>'set grads off'<br>
<br>*** for Windows<br>*'sdfopen C:\daily4times\<a href="http://hgt.2012.nc">hgt.2012.nc</a>' <br>*'sdfopen C:\daily4times\<a href="http://hgt.meanrunmean.1981-2010.nc">hgt.meanrunmean.1981-2010.nc</a>'<br>
*'sdfopen C:\daily4times\<a href="http://hgt.meanrunstd.1981-2010.nc">hgt.meanrunstd.1981-2010.nc</a>'<br><br>*** for Linux<br>'sdfopen /host/daily4times/<a href="http://hgt.2012.nc">hgt.2012.nc</a>' <br>'sdfopen /host/daily4times/<a href="http://hgt.meanrunmean.1981-2010.nc">hgt.meanrunmean.1981-2010.nc</a>'<br>
'sdfopen /host/daily4times/<a href="http://hgt.meanrunstd.1981-2010.nc">hgt.meanrunstd.1981-2010.nc</a>'<br><br><br><br>*** for output figure (type: eps)<br>*'enable print D:\Writing\disaster_management\hgtgap.gmf'<br>
*'enable print dif_hgt.eps'<br>'set parea 1 9 1 8'<br>'set lat 10 60'<br>'set xlint 10'<br>'set lon 100 160'<br>'set ylint 10'<br>'set cint 0.5'<br>'set clskip 1'<br>
'set rbcols 14 9 4 11 5 13 0 10 7 12 8 2 6'<br>'set strmden 1'<br>'set clevs -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6'<br>'set xlopts 1 4 0.15'<br>'set ylopts 1 4 0.15'<br>'define stdanomalies=((hgt.1(time=12Z14JUL2012,LEV=500)-hgt.2(time=06Z29DEC2010,LEV=500))/hgt.3(time=06Z29DEC2010,LEV=500))'<br>
'set gxout shaded'<br>'d stdanomalies'<br>'cbarn 1 0.5 9.3 4.5'<br><span style="color:rgb(255,0,0)">'open /host/GFS/20120714/gfs_3_20120714_1200_fff.ctl'<br>'set dfile 2'<br>'set lat 10 60'<br>
'set xlint 10'<br>'set lon 100 160'<br>'set ylint 10'<br>'set gxout contour'<br>'set t 1'<br>'set lev 500'<br>'d hgt.4'<br>'draw title a.GFS 500 hPa hgtprs 12Z14JUL2012'</span><br>
<br>*** for output figure (type: eps)<br>*'print<br>*'disable print'<br>*** for outut figure (type: png)<br>'printim \host\daily4times\hgtstdanomalies_500_20120714.png white'<br></div><div><br></div><div>
As you see, it contains two parts. One is to display 'd stdanomalies', the other is to <span style="color:rgb(255,0,0)">'d hgt.4'. <span style="color:rgb(0,0,0)">I can display the first one, but cannot display the second one. Because the second variable is come from GFS forecast data(</span></span><span style="color:rgb(255,0,0)"><span style="color:rgb(0,0,0)"><span style="color:rgb(255,0,0)">GFS/20120714/gfs_3_20120714_1200_fff.ctl').<span style="color:rgb(0,0,0)"> But I think Grads can display different variables from different files.<br>
So, anyone can help me how to work it. Thank you very much!!!!<br><br> Best wishes,<br><br>Duan<br><br> <br></span></span> <img alt="Inline image 1" src="cid:ii_13cd9125854edbb5"></span><br></span><div><br></div>-- <br>
Weili Duan<br>Disaster Prevention Research Institute (DPRI),
Kyoto University, Uji, Kyoto 611-0011, Japan<br>TEL: <a href="tel:%2B81-774-38-4131" value="+81774384131" target="_blank">+81-774-38-4131</a> FAX: <a href="tel:%2B81-774-38-4130" value="+81774384130" target="_blank">+81-774-38-4130</a><br>
E-mail: <a href="mailto:duan.scut.cn@gmail.com" target="_blank">duan.scut.cn@gmail.com</a><br> <a href="mailto:dyuan.weiri.88r@st.kyoto-u.ac.jp" target="_blank">duanwl1986@flood.dpri.kyoto-u.ac.jp</a><a href="mailto:dyuan.weiri.88r@st.kyoto-u.ac.jp" target="_blank"></a>
</div>