Pyarimohan,<br>Are all five of your data sets on the same grid? If not, that will probably cause a seg fault.<br><br>Jeff Duda<br><br><div class="gmail_quote">On Wed, Nov 24, 2010 at 5:30 AM, pyarimohan maharana <span dir="ltr"><<a href="mailto:chiku777rock@gmail.com">chiku777rock@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>Dear all,</div>
<div> </div>
<div>i am new to this forum. I am trying to calculate the precipitation bias (regcm output -CRU ) and when i am running the script, it is ending with segmentation fault.....</div>
<div> this is the script</div>
<div> </div>
<div><span lang="">
<p>'reinit'</p>
<p>'set display color white'</p>
<p>'c'</p>
<p>'enable print test2.meta'</p>
<p>'open /export/data/RegCM_Pyari/pyari/RegCM/NNRP2run/1988/SRF.1988060100.ctl'</p>
<p>'open /export/data/RegCM_Pyari/pyari/RegCM/NNRP2run/1988/SRF.1988070100.ctl'</p>
<p>'open /export/data/RegCM_Pyari/pyari/RegCM/NNRP2run/1988/SRF.1988080100.ctl'</p>
<p>'open /export/data/RegCM_Pyari/pyari/RegCM/NNRP2run/1988/SRF.1988090100.ctl'</p>
<p>'sdfopen /export/data/<a href="http://GPCP.PRECIP.NC" target="_blank">GPCP.PRECIP.NC</a>'</p>
<p>'define t1=ave(tpr.1,t=1,t=240)'</p>
<p>'define t2=ave(tpr.2,t=241,t=488)'</p>
<p>'define t3=ave(tpr.3,t=489,t=736)'</p>
<p>'define t4=ave(tpr.4,t=737,t=976)'</p>
<p>'define T=(t1+t2+t3+t4)/4.0'</p>
<p>'define P=ave(precip.5,t=90,t=93)'</p>
<p>'set grid off'</p>
<p>'set grads off'</p>
<p>'set mpdset hires'</p>
<p>'set lat 5 40'</p>
<p>'set lon 65 98'</p>
<p>'set gxout shaded'</p>
<p>'set clevs -5 -4 -3 -2 -1 0 1 2 3 5 8 11 14 17 20'</p>
<p>'set ccols 3 14 4 11 5 13 0 10 7 12 8 2 6 15'</p>
<p>'d T-P'</p>
<p>'set gxout contour'</p>
<p>'set cint 1'</p>
<p>'d T-P'</p>
<p>'run <a href="http://cbar.gs" target="_blank">cbar.gs</a>'</p>
<p>'close 5'</p>
<p>'close 4'</p>
<p>'close 3'</p>
<p>'close 2'</p>
<p>'close 1'</p>
<p> </p>
<p>'print'</p>
<p>'disable print'</p>
<p> </p>
<p> </p>
<p> </p>
<p>can anyone help?</p>
<p>thanks.</p></span></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Jeff Duda<br>Iowa State University<br>Meteorology Graduate Student<br>3134 Agronomy Hall<br><a href="http://www.meteor.iastate.edu/~jdduda">www.meteor.iastate.edu/~jdduda</a><br>