<br><br><div class="gmail_quote">On Wed, Nov 9, 2011 at 1:11 PM, Anil acharya <span dir="ltr"><<a href="mailto:acharya_anil@yahoo.com">acharya_anil@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><span>Hi</span></div>
<div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><span>I am also stucked after regridding my parameters in the control file. When I open the control file, I have two parameters tmp and pcp. I am able to regrid to my specific watershed location and display the result using opengrads (following commands) </span></div>
<div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><span><br></span></div><div><span><div>set lat 38 42</div><div>set lon -105 -96</div><div>set t 1 50</div><div>define pcp1=re(pcp,65,linear,-104.1875,0.125,25,linear,38.5625,0.125,bl)</div>
<div>d pcp1</div><div>define
tmp1=re(tmp,65,linear,-104.1875,0.125,25,linear,38.5625,0.125,bl)</div><div>d tmp1</div><div><br></div><div>I need to get the regridded output (pcp1, tmp1) for all time periods and for each lat. and lon. in text files.</div>
<div>e.g. file 1_-104.1875_38.5625 (pcp1 tmp1, parameters columnwise in each file)</div><div> file 2_-104.1875_38.6875 </div><div> file 3_-104.0625_38.5625</div><div> file 4_-104.0625_38.6875<br>
</div><div><br></div><div>If you notice the format above, each file varies in latitude and longitude by 0.125. Also the file names should have 4 decimal points as above. </div><div><br></div><div>I tried using while endwhile loop based on some instruction available in the graduser list (link below) but not able to fix the error. I just started using GRADS and I am meshing it again and again. I have not attached the code
thinking it might confuse you more.</div><div><br></div><div><a href="http://gibies.blogspot.com/2009/11/text-output-of-data-from-grads.html" target="_blank">http://gibies.blogspot.com/2009/11/text-output-of-data-from-grads.html</a><br>
</div><div><br></div><div>I appreciate if someone can help me out to get the required text file format. <br></div><div><br></div><div><br></div></span></div></div></div></blockquote><div><br></div><div>I am not sure what is your problem, regridding or writing data to text files. For text files, are you familiar with these recipes?</div>
<div><br></div><div> <a href="http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_variable_data_to_a_text_file">http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_variable_data_to_a_text_file</a></div>
<div><br></div><div> <a href="http://cookbooks.opengrads.org/index.php?title=Recipe-003:_Using_PyGrADS_to_save_variable_data_to_a_text_file">http://cookbooks.opengrads.org/index.php?title=Recipe-003:_Using_PyGrADS_to_save_variable_data_to_a_text_file</a></div>
<div><br></div><div><br></div><div> Arlindo</div><div><br></div></div>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>