<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 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:32 PM, Gargi Akhoury <span dir="ltr"><<a href="mailto:gargiakhoury@bitmesra.ac.in" target="_blank">gargiakhoury@bitmesra.ac.in</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">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 class="HOEnZb"><font color="#888888"><div>Gargi</div><div><br></div><div><br></div><div><br></div></font></span></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" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>