<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"><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 style>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>
<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 style>The modified script will display output data in the terminal. Please find a means to write the data to an output file. </div></div>-- <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>