<p dir="ltr">You need to 'set dfile 2' after opening the second file and then define the variable. Or define it as temp.2 to reference the second file</p>
<br><div class="gmail_quote"><div dir="ltr">On Tue, 22 Mar 2016 09:38 Gargi Akhoury, <<a href="mailto:gargiakhoury@bitmesra.ac.in">gargiakhoury@bitmesra.ac.in</a>> wrote:<br></div><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><div>Gargi</div><div><br></div><div><br></div><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>
</blockquote></div>