<div dir="ltr"><div><div><div>GrADS look for variables that are in file one only, if you
don't instruct to look in second file. What you need to do is that you
put .2 for files 2 variables.<br><br></div>For instance: define tmp=ave(temp.2 - 273.15,t=1,t=420,12)<br><br></div>Cheers !!!<br><br></div>Kishore</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><font size="4"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)"></span></b></span></font></div><div><font size="2"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)">PhD student in climate science,<br></span></b></span></font></div><div><font size="2"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)">National Institute of Technology, Rourkela,<br></span></b></span></font></div><div><font size="2"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)">India- 769008<br></span></b></span></font></div><div dir="ltr"><font size="2"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)">Phone: +91-8908671881<br><br><a href="http://www.researchgate.net/profile/Kishore_Ragi" target="_blank">http://www.researchgate.net/profile/Kishore_Ragi</a><br><br><a href="https://in.linkedin.com/in/kishoreragi" target="_blank">https://in.linkedin.com/in/kishoreragi</a><br><br><a href="http://kishoreragi.webnode.com/" target="_blank">http://kishoreragi.webnode.com/</a></span></b></span></font><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Tue, Mar 22, 2016 at 8:59 PM, Kishore Ragi <span dir="ltr"><<a href="mailto:kishoreragi@gmail.com" target="_blank">kishoreragi@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"><div><div><div>GrADS look for variables that are in file only, if you don't instruct to look in second file. What you need to do is that you put .2 for files variable.<br><br></div>For instance: define tmp=ave(temp.2 - 273.15,t=1,t=420,12)<br><br></div>Cheers !!!<br><br></div>Kishore<br></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><font size="4"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)"></span></b></span></font></div><div><font size="2"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)">PhD student in climate science,<br></span></b></span></font></div><div><font size="2"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)">National Institute of Technology, Rourkela,<br></span></b></span></font></div><div><font size="2"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)">India- 769008<br></span></b></span></font></div><div dir="ltr"><font size="2"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)">Phone: <a href="tel:%2B91-8908671881" value="+918908671881" target="_blank">+91-8908671881</a><br><br><a href="http://www.researchgate.net/profile/Kishore_Ragi" target="_blank">http://www.researchgate.net/profile/Kishore_Ragi</a><br><br><a href="https://in.linkedin.com/in/kishoreragi" target="_blank">https://in.linkedin.com/in/kishoreragi</a><br><br><a href="http://kishoreragi.webnode.com/" target="_blank">http://kishoreragi.webnode.com/</a></span></b></span></font><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote"><div><div class="h5">On Tue, Mar 22, 2016 at 8:32 PM, Gargi Akhoury <span dir="ltr"><<a href="mailto:gargiakhoury@bitmesra.ac.in" target="_blank">gargiakhoury@bitmesra.ac.in</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Dear Grads Users,<div> It's a very simple problem but I am facing problem to solve this. </div><div>I have two netcdf files like: </div><div><a href="http://temp.nc" target="_blank">temp.nc</a></div><div><a href="http://mslp.nc" target="_blank">mslp.nc</a></div><div><br></div><div>I want to open these two files together and display the image. I have done it like this.</div><div><br></div><div>'sdfopen <a href="http://mslp.nc" target="_blank">mslp.nc</a>'</div><div>'sdfopen <a href="http://t1000.nc" target="_blank">t1000.nc</a>'</div><div>'define mslp=ave(pressure,t=1,t=420,12)'</div><div>'d mslp'</div><div>'c'</div><div>'define tmp=ave(temp-273.15,t=1,t=420,12)'</div><div>'d tmp'</div><div><br></div><div>But I am getting error in this. The error is:</div><div><br></div><div>"define tmp=ave(temp-273.15,t=1,t=420,12)</div><div>Averaging. dim = 3, start = 1, end = 420</div><div>Syntax Error: Invalid Operand</div><div> 'temp' not a variable or function name</div><div>Operation Error: Error from ave function</div><div> Error ocurred at column 1</div><div>DEFINE error: Invalid expression."</div><div><br></div><div>Kindly, help me regarding this.</div><div><br></div><div>Kind Regards</div><span><font color="#888888"><div>Gargi</div><div><br></div><div><br></div><div><br></div></font></span></div>
<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" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>