<div><div>I finally made it</div><div>much appreciate!</div><div><br></div><div class="gmail_quote">2011/6/29 Jennifer Adams <span dir="ltr"><<a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word">If you want to show the gradual accumulation of precip at a single point over time, try this: <div>'set lat 'mylat</div><div>'set lon 'mylon</div><div>'set t 1 last'</div>
<div>'d tloop(sum(precip,t=1,t+0))'</div><div><br></div><div>--Jennifer</div><div><br></div><div><br><div><div><div></div><div class="h5"><br><div><div>On Jun 27, 2011, at 10:12 AM, Rafanoharana Serge Claudio wrote:</div>
<br><blockquote type="cite"><br><br><div class="gmail_quote">On Wed, Jun 22, 2011 at 9:45 AM, gabriel gavinho <span dir="ltr"><<a href="mailto:gavinho.gabriel@gmail.com" target="_blank">gavinho.gabriel@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Dear Serge,<div><br></div><div><div>The solution you proposed did solve the problem envolving the plot of both variables, but it displays a straight line with the final result for accumulated precipitation instead of the increasing line presenting the gradual accumulation. Do you know how can I sort this out?</div>
<div>still, thank you very much for your help,</div></div><div><div><br></div><div>regards</div><div><br></div><div>Gabriel Gavinho</div><div>Federal University of Rio de Janeiro</div></div><div><div class="gmail_quote">
<br></div><div><div></div><div><div class="gmail_quote"> 2011/6/21 Rafanoharana Serge Claudio <span dir="ltr"><<a href="mailto:rafanoharana@gmail.com" target="_blank">rafanoharana@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear Gabriel,<br><br>In order to obtain the total precipitation within a month, you can just 'define acc=sum(pcp, t=1, t=31)'.<br>If I really understand what you want is that you would like to display both daily and accumulation within one graphic. If so, it's a little bit tricky but what I can suggest is that if you want to display both within one graphic, try to set gxout linefill since linefill can deal with 2 variables, then go back to set gxout line so it will be something like:<br>
<br>'sdfopen <a href="http://file.nc" target="_blank">file.nc</a>'<br>'set lat -23'<br>'set lon -45'<br>'set t 1 31'<div><br>'define acc=sum(pcp, t=1, t=31)'<br></div>'set gxout linefill'<br>
'set lfcols 0 0' (----> this is black color and you can refer to <a href="http://www.iges.org/grads/gadoc/colorcontrol.html" target="_blank">http://www.iges.org/grads/gadoc/colorcontrol.html</a>)<br> 'd pcp;acc' (up til here, you have only the x and y value, without the graphs, so you need to plot the graph)<br>
'set gxout line'<br>'set ccolor 3'<br>'d pcp'<br>'set ccolor 5'<br> 'd acc'<br><br>Hope this can help,<div><div></div><div><br><br>Regards,<br><br>Serge<br><br><div class="gmail_quote">
2011/6/21 gabriel gavinho <span dir="ltr"><<a href="mailto:gavinho.gabriel@gmail.com" target="_blank">gavinho.gabriel@gmail.com</a>></span><br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear Serge,<div><br></div><div><div>I belive I did not make myself clear about the graphic I need.</div><div>suppose I select a single point, let's say lat -23 lon -45, and set the time to a month period, I will have the values of precipitation for each day as it is in any meteogram.</div>
<div>My problem is that I need to continually sum the daily valeus so I can achive the total precipitation within a month but in a way I can present an increasing line in over the daily values.</div><div>I hope I could make it clear and I really appreciate your help</div>
</div><div><br></div><div>Regars,</div><div>Gabriel Gavinho</div><div><font color="#888888">Federal University of Rio de Janeiro.</font><div><div></div><div><br><br><div class="gmail_quote">2011/6/21 Rafanoharana Serge Claudio <span dir="ltr"><<a href="mailto:rafanoharana@gmail.com" target="_blank">rafanoharana@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Gabriel,<br><br>What do you mean by "in the same graphic"? because I think it will depends on that. For your precipitation data, if you set your gxout to shaded, I think you won't see both values, but if you set your gxout, for example to contour, you'll be able to see both.<br>
<br>Let's say your precipitaion variable is "pcp". It will be something like:<br>'sdfopen <a href="http://file.nc" target="_blank">file.nc</a>'<br>'set gxout contour'<br>'define acc=sum(pcp, t=1, t=31)'<br>
'd pcp'<br>'d acc'<br><br>So if you need for the day 17, just set t to 17 by adding 'set t 17' right after 'sdfopen...'<br>In addition, you can write your accumulation variable to your file using 'set sdfwrite <a href="http://file.nc" target="_blank">file.nc</a>' followed by 'sdfwrite acc'.<br>
Maybe the following will give you more info.<br><br>I quote from Bob Kuligowski:<br><br>"GrADS can produce numerous types of file displays using gridded data using set gxout:<br><br>bar (bar chart) <br>line (line graph)<br>
barb (wind barbs) <br>linefill (color fill between two lines)<br>contour (contour plot) <br>scatter (scatter plot)<br>errbar (error bars) <br>shaded (shaded contour plot)<br>grfill (shaded grid boxes) <br>
stream (wind streamlines)<br>fgrid (grid boxes shaded for specified values) <br>vector (wind vector arrows)<br>grid (grid boxes with printed values)"<br><br>Hope it can help,<br><br>Regards,<br><br>Serge<br>
<br><br><br><div class="gmail_quote"><div><div></div><div>2011/6/21 gabriel gavinho <span dir="ltr"><<a href="mailto:gavinho.gabriel@gmail.com" target="_blank">gavinho.gabriel@gmail.com</a>></span><br></div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div> <div>Dear Users</div><div><br></div><div>I am having a hard time trying to sum the values for daily precipitation during a month, in order put together both daily values and the accumulative sum in the same graphic </div>
<div> <br></div><div>Can you help me?</div><div><br></div><div>regards!</div><div><br></div><font color="#888888"><div>Gabriel Gavinho</div><div>Federal University of Rio de Janeiro</div> </font><br></div></div>_______________________________________________<br>
gradsusr mailing list<br> <a href="mailto:gradsusr@gradsusr.org" target="_blank">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><font color="#888888">Serge<br> </font><br>_______________________________________________<br> gradsusr mailing list<br> <a href="mailto:gradsusr@gradsusr.org" target="_blank">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></div></div></div> </blockquote></div><br><br clear="all"><br></div>
</div>-- <br><font color="#888888">Serge<br> </font></blockquote></div><br></div></div></div> </blockquote></div><br><br clear="all"><br>-- <br>Serge<br> _______________________________________________<br>gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br></blockquote>
</div><br></div></div><font color="#888888"><div> <span style="border-collapse:separate;border-spacing:0px 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;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">
<span style="border-collapse:separate;border-spacing:0px 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;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;border-spacing:0px 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;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div>
--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, MD 20705</div><div><a href="mailto:jma@cola.iges.org" target="_blank">jma@cola.iges.org</a></div><div><br>
</div><br></span></span></div></span> </div><br></font></div></div></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></div>