<div dir="ltr"><div><div>Hi Bimal,<br></div>You should be able to do this using the maskout and const functions. Check out the example here: <a href="http://cola.gmu.edu/grads/gadoc/gradfuncmaskout.html">http://cola.gmu.edu/grads/gadoc/gradfuncmaskout.html</a><br></div>-Andrew<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 6, 2017 at 8:05 PM, Bimal Gyawali <span dir="ltr">&lt;<a href="mailto:bml.gya@gmail.com" target="_blank">bml.gya@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello All,<div>Can I calculate area Of a rectangular box but area of land only using grads? IN ATTACHED figure i would like to calculate area of the red box but wanna calculate only area of land not ocean. </div><div>Please help me with this if it is possible.</div><div>THank you.</div><div><br></div><div><br></div><div><br></div><div><img src="cid:ii_159752a63da9c8f4" alt="Inline image 1" width="475" height="379"><span class="HOEnZb"><font color="#888888"><br></font></span></div></div><div class="gmail_extra"><span class="HOEnZb"><font color="#888888"><br clear="all"><div><div class="m_4535263304642232248gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><p><b><i><span style="font-size:10pt;font-family:&#39;Times New Roman&#39;,serif;color:rgb(46,117,182);background-image:initial;background-position:initial;background-repeat:initial">Bimal Gyawali</span></i></b><i><span style="font-size:10pt;font-family:&#39;Times New Roman&#39;,serif;color:rgb(46,117,182);background-image:initial;background-position:initial;background-repeat:initial"><br>
Graduate Research Assistant<br>
Department of Physical and Environment Science<br>
Natural Resources Center<br>
Texas A&amp;M University-Corpus Christi<br>
Corpus Christi, TX 78412<br>
Tel: <a href="tel:(435)%20881-3603" value="+14358813603" target="_blank">435-881-3603</a></span></i><i><span style="font-family:&quot;Times New Roman&quot;,serif"></span></i></p></div></div></div></div></div></div></div></div></font></span><div><div class="h5">
<br><div class="gmail_quote">On Fri, Jan 6, 2017 at 11:08 AM, Hoop <span dir="ltr">&lt;<a href="mailto:hoop@colorado.edu" target="_blank">hoop@colorado.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">All,<br>
<br>
I&#39;ve been fighting this one for a while.  The problem is that, as U.S.<br>
Government site, we had to switch to the https protocol.  Redirects<br>
are being given by the server, but some versions of GrADS handle them<br>
and some don&#39;t.  The latest version of COLA GrADS works fine.  So,<br>
either update your GrADS or change the protocol to https on all URLs<br>
for the host <a href="http://www.esrl.noaa.gov" rel="noreferrer" target="_blank">www.esrl.noaa.gov</a>.<br>
<br>
-Hoop<br>
<br>
On 01/06/2017 10:00 AM, <a href="mailto:gradsusr-request@gradsusr.org" target="_blank">gradsusr-request@gradsusr.org</a> wrote:<br>
<br>
&gt; Date: Fri, 6 Jan 2017 11:01:18 +0200<br>
&gt; From: avi kojokro &lt;<a href="mailto:kojokroavi@gmail.com" target="_blank">kojokroavi@gmail.com</a>&gt;<br>
&gt; Subject: [gradsusr] Hello everyone, Question about NCEP reanalysis???<br>
&gt; To: ????? &lt;<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>&gt;<br>
&gt; Message-ID:<br>
&gt;       &lt;CAFCfe=M1+D_UPz-dPEK2JNg_t=<a href="mailto:4gK2Aw8%2BVmrJqbB08fMQVsOQ@mail.gmail.com" target="_blank">4<wbr>gK2Aw8+VmrJqbB08fMQVsOQ@mail.g<wbr>mail.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
&gt;<br>
&gt; I&#39;m trying to get data through this server on Grads:<br>
&gt;<br>
&gt; <a href="http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ncep.reanalysis.derived/pressure/air.mon.mean.nc" rel="noreferrer" target="_blank">http://www.esrl.noaa.gov/psd/t<wbr>hredds/dodsC/Datasets/ncep.rea<wbr>nalysis.derived/pressure/air.<wbr>mon.mean.nc</a><br>
&gt;<br>
&gt; and this server :<br>
&gt;<br>
&gt; <a href="http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ncep.reanalysis.derived/pressure/hgt.mon.mean.nc" rel="noreferrer" target="_blank">http://www.esrl.noaa.gov/psd/t<wbr>hredds/dodsC/Datasets/ncep.rea<wbr>nalysis.derived/pressure/hgt.<wbr>mon.mean.nc</a><br>
&gt;<br>
&gt;<br>
&gt; and this server :<br>
&gt;<br>
&gt; <a href="http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ncep.reanalysis.derived/surface/slp.mon.mean.nc" rel="noreferrer" target="_blank">http://www.esrl.noaa.gov/psd/t<wbr>hredds/dodsC/Datasets/ncep.rea<wbr>nalysis.derived/surface/slp.<wbr>mon.mean.nc</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; And I get this error on Three servers:<br>
&gt;<br>
&gt; Can anyone tell me why I&#39;m getting these errors?<br>
&gt;<br>
&gt; ga-&gt; 0AV11<br>
&gt; No hardcopy metafile open<br>
&gt; All files closed; all defined objects released;<br>
&gt; All GrADS attributes have been reinitialized<br>
&gt; curl error details:<br>
&gt; Error: nc_open failed to open file<br>
&gt; <a href="http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ncep.reanalysis.derived/pressure/air.mon.mean.nc" rel="noreferrer" target="_blank">http://www.esrl.noaa.gov/psd/t<wbr>hredds/dodsC/Datasets/ncep.rea<wbr>nalysis.derived/pressure/air.<wbr>mon.mean.nc</a><br>
&gt; NetCDF: I/O failure<br>
&gt; gadsdf: Couldn&#39;t ingest SDF metadata.<br>
&gt; SET Error:  No files open yet<br>
&gt; SET Error:  No files open yet<br>
&gt; SET Error:  No files open yet<br>
&gt; No Files Open<br>
&gt;  No Files Open<br>
&gt;<br>
&gt; SET Error:  No files open yet<br>
&gt; DISPLAY error:  no file open yet<br>
&gt;  T500DISPLAY error:  no file open yet<br>
&gt;<br>
&gt;<br>
&gt; No hardcopy metafile open<br>
&gt; All files closed; all defined objects released;<br>
&gt; All GrADS attributes have been reinitialized<br>
&gt; curl error details:<br>
&gt; Error: nc_open failed to open file<br>
&gt; <a href="http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ncep.reanalysis.derived/pressure/hgt.mon.mean.nc" rel="noreferrer" target="_blank">http://www.esrl.noaa.gov/psd/t<wbr>hredds/dodsC/Datasets/ncep.rea<wbr>nalysis.derived/pressure/hgt.<wbr>mon.mean.nc</a><br>
&gt; NetCDF: I/O failure<br>
&gt; gadsdf: Couldn&#39;t ingest SDF metadata.<br>
&gt; SET Error:  No files open yet<br>
&gt; SET Error:  No files open yet<br>
&gt; SET Error:  No files open yet<br>
&gt; No Files Open<br>
&gt;  No Files Open<br>
&gt;<br>
&gt; SET Error:  No files open yet<br>
&gt; DISPLAY error:  no file open yet<br>
&gt;  H500DISPLAY error:  no file open yet<br>
&gt;<br>
&gt;<br>
&gt; No hardcopy metafile open<br>
&gt; All files closed; all defined objects released;<br>
&gt; All GrADS attributes have been reinitialized<br>
&gt; curl error details:<br>
&gt; Error: nc_open failed to open file<br>
&gt; <a href="http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ncep.reanalysis.derived/surface/slp.mon.mean.nc" rel="noreferrer" target="_blank">http://www.esrl.noaa.gov/psd/t<wbr>hredds/dodsC/Datasets/ncep.rea<wbr>nalysis.derived/surface/slp.<wbr>mon.mean.nc</a><br>
&gt; NetCDF: I/O failure<br>
&gt; gadsdf: Couldn&#39;t ingest SDF metadata.<br>
&gt; SET Error:  No files open yet<br>
&gt; SET Error:  No files open yet<br>
&gt; SET Error:  No files open yet<br>
&gt; No Files Open<br>
&gt;  No Files Open<br>
&gt;<br>
&gt; SET Error:  No files open yet<br>
&gt; DISPLAY error:  no file open yet<br>
&gt;  SLPDISPLAY error:  no file open yet<br>
&gt;<br>
&gt;<br>
&gt; Thanks<br>
&gt;<br>
&gt; Avi.<br>
&gt; -------------- next part --------------<br>
&gt; An HTML attachment was scrubbed...<br>
&gt; URL: <a href="http://gradsusr.org/pipermail/gradsusr/attachments/20170106/e3c47352/attachment-0001.html" rel="noreferrer" target="_blank">http://gradsusr.org/pipermail/<wbr>gradsusr/attachments/20170106/<wbr>e3c47352/attachment-0001.html</a><br>
&gt;<br>
&gt; ------------------------------<br>
&gt; ______________________________<wbr>_____<br>
&gt; gradsusr mailing list<br>
&gt; <a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
&gt; <a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/li<wbr>stinfo/gradsusr</a><br>
&gt;<br>
&gt; End of gradsusr Digest, Vol 83, Issue 6<br>
&gt; ******************************<wbr>*********<br>
<br>
______________________________<wbr>_________________<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/li<wbr>stinfo/gradsusr</a><br>
</blockquote></div><br></div></div></div>
<br>______________________________<wbr>_________________<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/<wbr>listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>