<div dir="ltr">Thanks a lot to all....for ur kind help....its working now....!!!<div><br></div><div>Regards</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 22, 2016 at 10:14 PM, Jennifer M Adams <span dir="ltr"><<a href="mailto:jadams21@gmu.edu" target="_blank">jadams21@gmu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
You can also try changing ‘pressure’ to ‘pressure(z=1)’ and see if that helps. —Jennifer
<div><br>
<div><div><div class="h5">On Mar 22, 2016, at 12:24 PM, <a href="mailto:dzengiz.tafa@telenet.be" target="_blank">dzengiz.tafa@telenet.be</a> wrote:
<div><br>
<blockquote type="cite">
<div>
<div style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10pt">
<div><span style="font-size:small">Hi</span></div>
<div><br>
</div>
<div><span style="font-size:small">Try to use the variable, followed with a ".#", where # stands for the filenumber thats assigned.</span></div>
<div><span style="font-size:small">Starting eg from what you have...<br>
</span></div>
<div><br>
</div>
<div>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"> 'sdfopen <span style="color:#336699"><span><a href="http://mslp.nc/" style="color:#336699;text-decoration:none" target="_blank">mslp.nc</a></span></span>'</span></div>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"> 'sdfopen <span style="color:#336699"><span><a href="http://t1000.nc/" style="color:#336699;text-decoration:none" target="_blank">t1000.nc</a></span></span>'</span></div>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"> 'define mslp=ave(pressure,t=1,t=420,12)'</span></div>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"> 'd mslp'</span></div>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"> 'c'</span></div>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"> 'define tmp=ave(temp-273.15,t=1,t=420,12)'</span></div>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"> 'd tmp'</span></div>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"><br>
</span></div>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small">The first sdfopen creates file number 1 & the second creates file number 2</span></div>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"><br>
</span></div>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small">When using the variables you can add a ".", followed by the filename so</span></div>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"> <span style="font-family:verdana,helvetica,sans-serif;background-color:rgb(253,253,253)">'define
mslp=ave(pressure,t=1,t=420,12)' becomes<br>
<span style="font-family:verdana,helvetica,sans-serif;background-color:rgb(253,253,253)">'define mslp=ave(pressure.1,t=1,t=420,12)'</span><br>
</span></span></div>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"><span style="font-family:verdana,helvetica,sans-serif;background-color:rgb(253,253,253)"><span style="font-family:verdana,helvetica,sans-serif;background-color:rgb(253,253,253)">and</span></span></span></div>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"><span style="font-family:verdana,helvetica,sans-serif;background-color:rgb(253,253,253)"><span style="font-family:verdana,helvetica,sans-serif;background-color:rgb(253,253,253)">
'define <span style="font-family:verdana,helvetica,sans-serif;background-color:rgb(253,253,253)">tmp=ave(temp-273.15,t=1,t=420,12)' becomes</span></span></span></span></div>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"><span style="font-family:verdana,helvetica,sans-serif;background-color:rgb(253,253,253)"><span style="font-family:verdana,helvetica,sans-serif;background-color:rgb(253,253,253)"><span style="font-family:verdana,helvetica,sans-serif;background-color:rgb(253,253,253)">
'define <span style="font-family:verdana,helvetica,sans-serif;background-color:rgb(253,253,253)">tmp=ave(temp.2-273.15,t=1,t=420,12)'</span></span></span></span></span></div>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"><span style="font-family:verdana,helvetica,sans-serif;background-color:rgb(253,253,253)"><span style="font-family:verdana,helvetica,sans-serif;background-color:rgb(253,253,253)"><span style="font-family:verdana,helvetica,sans-serif;background-color:rgb(253,253,253)"><span style="font-family:verdana,helvetica,sans-serif;background-color:rgb(253,253,253)"><br>
</span></span></span></span></span></div>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"><span style="font-family:verdana,helvetica,sans-serif;background-color:rgb(253,253,253)"><span style="font-family:verdana,helvetica,sans-serif;background-color:rgb(253,253,253)"><span style="font-family:verdana,helvetica,sans-serif;background-color:rgb(253,253,253)"><span style="font-family:verdana,helvetica,sans-serif;background-color:rgb(253,253,253)">If
for some reason this does not work, just add a <span style="font-family:Helvetica,Arial,sans-serif">'set dfile #' (#=filenumber) before handling the vars</span></span></span></span></span></span></div>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"><span style="font-family:verdana,helvetica,sans-serif;background-color:rgb(253,253,253)"><span style="font-family:verdana,helvetica,sans-serif;background-color:rgb(253,253,253)"><span style="font-family:verdana,helvetica,sans-serif;background-color:rgb(253,253,253)"><span style="font-family:verdana,helvetica,sans-serif;background-color:rgb(253,253,253)"><span style="font-family:Helvetica,Arial,sans-serif"><br>
</span></span></span></span></span></span></div>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"><span style="background-color:rgb(253,253,253)"><span style="background-color:rgb(253,253,253)"><span style="background-color:rgb(253,253,253)"><span style="background-color:rgb(253,253,253)">The
whole solution then becomes</span></span></span></span></span></div>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<br>
</div>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"> 'sdfopen <span style="color:#336699"><span><a href="http://mslp.nc/" style="color:#336699;text-decoration:none" target="_blank">mslp.nc</a></span></span>'</span></div>
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"><span style="background-color:rgb(253,253,253)"><span style="background-color:rgb(253,253,253)"><span style="background-color:rgb(253,253,253)"><span style="background-color:rgb(253,253,253)"></span></span></span></span></span>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"> 'sdfopen <span style="color:#336699"><span><a href="http://t1000.nc/" style="color:#336699;text-decoration:none" target="_blank">t1000.nc</a></span></span>'</span></div>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"> 'set stdfile 1'</span></div>
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"><span style="background-color:rgb(253,253,253)"><span style="background-color:rgb(253,253,253)"><span style="background-color:rgb(253,253,253)"><span style="background-color:rgb(253,253,253)"></span></span></span></span></span>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"> 'define mslp=ave(pressure.1,t=1,t=420,12)'</span></div>
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"><span style="background-color:rgb(253,253,253)"><span style="background-color:rgb(253,253,253)"><span style="background-color:rgb(253,253,253)"><span style="background-color:rgb(253,253,253)"></span></span></span></span></span>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"> 'd mslp'</span></div>
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"><span style="background-color:rgb(253,253,253)"><span style="background-color:rgb(253,253,253)"><span style="background-color:rgb(253,253,253)"><span style="background-color:rgb(253,253,253)"></span></span></span></span></span>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"> 'c'</span></div>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"> 'set stdfile 2'</span></div>
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"><span style="background-color:rgb(253,253,253)"><span style="background-color:rgb(253,253,253)"><span style="background-color:rgb(253,253,253)"><span style="background-color:rgb(253,253,253)"></span></span></span></span></span>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"> 'define tmp=ave(temp.2-273.15,t=1,t=420,12)'</span></div>
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"><span style="background-color:rgb(253,253,253)"><span style="background-color:rgb(253,253,253)"><span style="background-color:rgb(253,253,253)"><span style="background-color:rgb(253,253,253)"></span></span></span></span></span>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"> 'd tmp'</span></div>
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"><span style="background-color:rgb(253,253,253)"><span style="background-color:rgb(253,253,253)"><span style="background-color:rgb(253,253,253)"><span style="background-color:rgb(253,253,253)"><br>
</span></span></span></span></span></div>
<div style="font-family:'Times New Roman';font-size:13.3333px;background-color:#fdfdfd">
<span style="font-family:verdana,helvetica,sans-serif;font-size:small"><span style="background-color:rgb(253,253,253)"><span style="background-color:rgb(253,253,253)"><span style="background-color:rgb(253,253,253)"><span style="background-color:rgb(253,253,253)">Good
luck.</span></span></span></span></span></div>
</div>
<div><br>
</div>
<hr>
<div style="font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt">
<b>Van: </b>"Gargi Akhoury" <<a href="mailto:gargiakhoury@bitmesra.ac.in" target="_blank">gargiakhoury@bitmesra.ac.in</a>><br>
<b>Aan: </b>"GrADS Users Forum" <<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>><br>
<b>Verzonden: </b>Dinsdag 22 maart 2016 13:53:08<br>
<b>Onderwerp: </b>Re: [gradsusr] (no subject)<br>
<div><br>
</div>
<div dir="ltr">
<div>Hello,</div>
<div> I have tried but I am getting this error:</div>
<div><br>
</div>
<div>Data Request Warning: Request is completely outside file limits<br>
</div>
<div> Entire grid contents are set to missing data</div>
<div> Grid limits of file: X = 1 144 Y = 1 73 Z = 1 1 T = 1 780 E = 1 1</div>
<div> Grid limits of request: X = 1 145 Y = 1 73 Z = -999 -999 T = 1 1 E = 1 1</div>
<div> Warning issued for variable = temp.2</div>
<div>Data Request Warning: Request is completely outside file limits</div>
<div> Entire grid contents are set to missing data</div>
<div> Grid limits of file: X = 1 144 Y = 1 73 Z = 1 1 T = 1 780 E = 1 1</div>
<div> Grid limits of request: X = 1 145 Y = 1 73 Z = -999 -999 T = 13 13 E = 1 1</div>
<div> Warning issued for variable = temp.2</div>
<div>Data Request Warning: Request is completely outside file limits</div>
<div> Entire grid contents are set to missing data</div>
<div> Grid limits of file: X = 1 144 Y = 1 73 Z = 1 1 T = 1 780 E = 1 1</div>
<div> Grid limits of request: X = 1 145 Y = 1 73 Z = -999 -999 T = 25 25 E = 1 .......................................</div>
<div><br>
</div>
<div>Regards</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Mar 22, 2016 at 4:41 PM, Thomas Davies <span dir="ltr">
<<a href="mailto:tsd.davies@gmail.com" target="_blank">tsd.davies@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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>
<div>
<div dir="ltr">On Tue, 22 Mar 2016 09:38 Gargi Akhoury, <<a href="mailto:gargiakhoury@bitmesra.ac.in" target="_blank">gargiakhoury@bitmesra.ac.in</a>> wrote:<br>
</div>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div>
<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>
</div>
</div>
<span>_______________________________________________<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>
</span></blockquote>
</div>
<br>
_______________________________________________<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>
<br>
_______________________________________________<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" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</div>
<div><br>
</div>
</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" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote>
</div>
<br>
</div></div><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="font-size:12px">--</div>
<div style="font-size:12px">Jennifer Miletta Adams<br>
Center for Ocean-Land-Atmosphere Studies (COLA)<br>
George Mason University<br>
<br>
<br>
</div>
</div>
</div>
</div>
<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" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>