<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Are you able to 'd c1-c2' ? If not, then you will have to write out your intermediate results (fut and pas) using fwrite, create descriptors with the same time axis (should be a tsize of 1, right?), and then you'll be able to display the difference.&nbsp;<div>--Jennifer</div><div><br><div><br><div><br><div><div>On Apr 18, 2014, at 3:57 AM, mehwish ramzan wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Dear GrADS Community,<div><br></div><div>I need help your kind help. I am trying to make a differential map between JJA precipitation in mm/day for past and future climate using the same climate model with same resolution but with different time periods by using the following script;</div>
<div><br></div><div>'open rain_future.ctl'</div><div>'open rain_past.ctl'</div><div style="">'set display color white'</div><div style="">'c'</div><div style=""><br></div><div style="">'set lon 10 100'</div>
<div style="">'set lat -20 50'</div><div style="">'set mpdset hires'</div><div style=""><br></div><div style="">'set dfile 1'</div><div style="">'set t 1 &nbsp;12'</div><div style="">'define c1= ave(prec, t+0, time=dec2050, 12)'</div>
<div style="">'modify c1 seasonal'</div><div style="">'define fut= ave(c1, t=6, t=8)'</div><div style=""><br></div><div style="">'set dfile 2'</div><div style="">'set t 1 12'</div><div style="">'define c2 = ave(prec, t+0, time=dec2005, 12)'</div>
<div style="">'modify c2 seasonal'</div><div style="">'define pas= ave(c2, t=6, t=8)'</div><div style=""><br></div><div style="">'define diff = fut - pas'</div><div style=""><br></div><div style="">'d diff'</div>
<div style=""><br></div><div style="">But i receive an error message.&nbsp;</div><div style="">'' cannot contour grids--- all undefined values''....</div><div style=""><br></div><div style="">So please tell me where i am doing wrong in the above script? Or is there an alternate method to calculate it?</div>
<div style=""><br></div><div style=""><br></div><div style="">Thank you</div><div style=""><br></div><div style="">With Best Regards,</div><div style=""><br></div><div style="">Mehwish</div><div style=""><br></div></div>
_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams<br>Center for Ocean-Land-Atmosphere Studies (COLA)<br>111 Research Hall, Mail Stop 2B3<br>George Mason University<br>4400 University Drive<br>Fairfax, VA 22030&nbsp;<br><br></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></div></span></span><br class="Apple-interchange-newline">
</div>
<br></div></div></div></body></html>