<div dir="ltr"><div><div>Hi Martin,<br><br></div>I put in my lat lon coors in the new file and ran the script but the message "Opening input file <a href="http://air.sig995.1948.nc">air.sig995.1948.nc</a>" is repeated until I manually close GrADS. It seems as if the script is not looping to open the other 63 files and just keeps looping and opening the file for 1948. How could I fix this?<br>
<br></div>Thanks again for all your help,<br></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><span style="color:rgb(106,168,79)"><b>Emily P. Wilson, Intern</b></span><br><span style="color:rgb(61,133,198)">Research and Conservation Department<br>
Denver Botanic Gardens<br>1007 York St.<br>Denver, CO 80206<br>720-865-3593</span></div></div>
<br><br><div class="gmail_quote">On Thu, Jul 18, 2013 at 6:17 AM, Martin V. Mathew <span dir="ltr"><<a href="mailto:vmartinmathew@gmail.com" target="_blank">vmartinmathew@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><br><div class="gmail_extra">Hi Emily</div><div class="gmail_extra"><br></div><div class="gmail_extra">I have tested the script and fixed all the problems, it can now do all required calculations. This program uses output of "q dim" command to identify start point and end point of each month. The program uses a compound variable to store the calculated data. Right now I don't know a method to write values in a compound variable to a text file. Hence I am only displaying the data to the terminal using say command. If you find a means to write the data to text file, kindly convey it me. Please find the attached script. </div>
<div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div><div>(1) I would like to get max/min temps for multiple specific lat/long coordinates. To do that would I just change the set lat and set lon lines? Should I change then the x= and y= that come after the set lat and set lon definitions or leave those as is?<br>
</div>
</div></div></blockquote></div><div>Commands 'set lon' and 'set x' do the same thing. Hence there is no need to use both the commands. In order to do the calculation for multiple lat/lon coordinates you can either insert an additional while loop in the script or otherwise change the set lat and set lon lines and run the script again. </div>
<div class="im">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>(2) As of now when I run the script it says "Opening input file <a href="http://air.sig995.1948.nc" target="_blank">air.sig995.1948.nc</a>" 63 times with the corresponding years but no numerical data is provided. I haven't specified where to write the data to a table but shouldn't it still be displayed?<br>
</div></div></blockquote></div><div>The modified script will display output data in the terminal. Please find a means to write the data to an output file. </div></div><div class="im">-- <br>Martin V. Mathew<br>Research scholar<br>
Centre for Oceans, Rivers, Atmosphere and Land Sciences (CORAL)<br>
IIT Kharagpur<br>India.<br>
</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>