<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"><<a href="mailto:bml.gya@gmail.com" target="_blank">bml.gya@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">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:'Times New Roman',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:'Times New Roman',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&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:"Times New Roman",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"><<a href="mailto:hoop@colorado.edu" target="_blank">hoop@colorado.edu</a>></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'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'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>
> Date: Fri, 6 Jan 2017 11:01:18 +0200<br>
> From: avi kojokro <<a href="mailto:kojokroavi@gmail.com" target="_blank">kojokroavi@gmail.com</a>><br>
> Subject: [gradsusr] Hello everyone, Question about NCEP reanalysis???<br>
> To: ????? <<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>><br>
> Message-ID:<br>
> <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>><br>
> Content-Type: text/plain; charset="utf-8"<br>
><br>
> I'm trying to get data through this server on Grads:<br>
><br>
> <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>
><br>
> and this server :<br>
><br>
> <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>
><br>
><br>
> and this server :<br>
><br>
> <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>
><br>
><br>
><br>
> And I get this error on Three servers:<br>
><br>
> Can anyone tell me why I'm getting these errors?<br>
><br>
> ga-> 0AV11<br>
> No hardcopy metafile open<br>
> All files closed; all defined objects released;<br>
> All GrADS attributes have been reinitialized<br>
> curl error details:<br>
> Error: nc_open failed to open file<br>
> <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>
> NetCDF: I/O failure<br>
> gadsdf: Couldn't ingest SDF metadata.<br>
> SET Error: No files open yet<br>
> SET Error: No files open yet<br>
> SET Error: No files open yet<br>
> No Files Open<br>
> No Files Open<br>
><br>
> SET Error: No files open yet<br>
> DISPLAY error: no file open yet<br>
> T500DISPLAY error: no file open yet<br>
><br>
><br>
> No hardcopy metafile open<br>
> All files closed; all defined objects released;<br>
> All GrADS attributes have been reinitialized<br>
> curl error details:<br>
> Error: nc_open failed to open file<br>
> <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>
> NetCDF: I/O failure<br>
> gadsdf: Couldn't ingest SDF metadata.<br>
> SET Error: No files open yet<br>
> SET Error: No files open yet<br>
> SET Error: No files open yet<br>
> No Files Open<br>
> No Files Open<br>
><br>
> SET Error: No files open yet<br>
> DISPLAY error: no file open yet<br>
> H500DISPLAY error: no file open yet<br>
><br>
><br>
> No hardcopy metafile open<br>
> All files closed; all defined objects released;<br>
> All GrADS attributes have been reinitialized<br>
> curl error details:<br>
> Error: nc_open failed to open file<br>
> <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>
> NetCDF: I/O failure<br>
> gadsdf: Couldn't ingest SDF metadata.<br>
> SET Error: No files open yet<br>
> SET Error: No files open yet<br>
> SET Error: No files open yet<br>
> No Files Open<br>
> No Files Open<br>
><br>
> SET Error: No files open yet<br>
> DISPLAY error: no file open yet<br>
> SLPDISPLAY error: no file open yet<br>
><br>
><br>
> Thanks<br>
><br>
> Avi.<br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> 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>
><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>
><br>
> End of gradsusr Digest, Vol 83, Issue 6<br>
> ******************************<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>