Thanks very much John for advice on writing biary to ASCII in grads. Actually I posed this question some time go and it is ok.<br>My recent question was whether one could access analysis and forecasts on nomads servers directly through grads.<br>
<div style="padding: 0px; overflow: hidden; visibility: hidden; left: -5000px; position: absolute; z-index: 9999; margin-left: 0px; margin-top: 0px; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div><br><div class="gmail_quote">On Mon, Apr 18, 2011 at 2:31 PM,  <span dir="ltr">&lt;<a href="mailto:gradsusr-request@gradsusr.org">gradsusr-request@gradsusr.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Send gradsusr mailing list submissions to<br>
        <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:gradsusr-request@gradsusr.org">gradsusr-request@gradsusr.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:gradsusr-owner@gradsusr.org">gradsusr-owner@gradsusr.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of gradsusr digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. undef (vijay pawar)<br>
   2. lata42 (Ghan, Steven J)<br>
   3. min max of a variable (Simon Kiertscher)<br>
   4. different limits in the master control file (vijay pawar)<br>
   5. Re: lata42 (Colarco, Peter R. (GSFC-6133))<br>
   6. writing binary to ascii (Zilore Mumba)<br>
   7. Re: writing binary to ascii (Pou-Chang John Chen)<br>
   8. Re: lata42 (Ghan, Steven J)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sun, 17 Apr 2011 09:55:49 +0530<br>
From: vijay pawar &lt;<a href="mailto:vijay.pawar87@gmail.com">vijay.pawar87@gmail.com</a>&gt;<br>
Subject: [gradsusr] undef<br>
To: GrADS Users Forum &lt;<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&gt;<br>
Message-ID: &lt;BANLkTinoJ4q=<a href="mailto:W%2BfO4p432_g35k77pNTKgQ@mail.gmail.com">W+fO4p432_g35k77pNTKgQ@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
if suppose in a file i have undef &quot;-1e+o7&quot;..what does this mean?<br>
<br>
Thank You<br>
Vijay<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://gradsusr.org/pipermail/gradsusr/attachments/20110417/b183bbe6/attachment-0001.html" target="_blank">http://gradsusr.org/pipermail/gradsusr/attachments/20110417/b183bbe6/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sun, 17 Apr 2011 23:39:38 -0700<br>
From: &quot;Ghan, Steven J&quot; &lt;<a href="mailto:Steve.Ghan@pnl.gov">Steve.Ghan@pnl.gov</a>&gt;<br>
Subject: [gradsusr] lata42<br>
To: GrADS Users Forum &lt;<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:C9D12ABA.9085%25steve.ghan@pnl.gov">C9D12ABA.9085%steve.ghan@pnl.gov</a>&gt;<br>
Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
<br>
I&#39;m trying to use lats4d for the first time to regrid:<br>
<br>
lats4d -i <a href="http://infilename.nc" target="_blank">infilename.nc</a> -de <a href="http://outgridname.nc" target="_blank">outgridname.nc</a> -func re(@,144,linear,0,2.5,96,linear,-89.,1.925,bl)<br>
<br>
The result:<br>
Invalid QUERY argument: udc<br>
WARNING: this build of GrADS v2.0.a9 does not include the LATS option<br>
WARNING: &quot;-format grib&quot; or &quot;-format coads&quot; are not supported.<br>
&lt;RC&gt; 1 &lt;/RC&gt;<br>
&lt;/IPC&gt;<br>
ERROR: cannot proceed without LATS; try specifying a different -format<br>
1ga-&gt;<br>
<br>
Will this problem be corrected if I upgrade to the latest grads, or is there another workaround?<br>
<br>
-Steve Ghan<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Mon, 18 Apr 2011 10:56:46 +0200<br>
From: Simon Kiertscher &lt;<a href="mailto:simon.kiertscher@gmx.de">simon.kiertscher@gmx.de</a>&gt;<br>
Subject: [gradsusr] min max of a variable<br>
To: GrADS Users Forum &lt;<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:4DABFCCE.3050705@gmx.de">4DABFCCE.3050705@gmx.de</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
Hi all,<br>
<br>
I am trying to find out a minimum and a maximum of a variable.<br>
Therefore I use &#39;q attr&#39; and will pars it.<br>
The problem is that the format is something like<br>
&quot;evaporation Float32 data_range 4.73882e-25,454.459&quot;<br>
I can get that line, but now I have a problem.<br>
I have no operation in GrADS to divide the last values right?<br>
I need to divide it into to strings/values to get separate min and max<br>
values.<br>
How can I do this? Or is there another easier way to get the min and the<br>
max values of a variable?<br>
<br>
Thank you,<br>
Simon<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Mon, 18 Apr 2011 15:45:07 +0530<br>
From: vijay pawar &lt;<a href="mailto:vijay.pawar87@gmail.com">vijay.pawar87@gmail.com</a>&gt;<br>
Subject: [gradsusr] different limits in the master control file<br>
To: GrADS Users Forum &lt;<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:BANLkTik7LEQwurO99ojg2XfhG_4ie68v_A@mail.gmail.com">BANLkTik7LEQwurO99ojg2XfhG_4ie68v_A@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
hello,<br>
I am using the grads version 2.0.a9.oga.1.the netcdf file that opens<br>
correctly is<br>
<br>
SDF file C:\Users\acer\Desktop\sst\1998\<a href="http://mar98.nc" target="_blank">mar98.nc</a> is open as file 1<br>
LON set to 0.0219727 159.983<br>
LAT set to -70.9937 -20.0171<br>
LEV set to 0 0<br>
Time values set: 1998:2:15:0 1998:2:15:0<br>
E set to 1 1<br>
ga-&gt; d sst<br>
Contouring: -0 to 30 interval 3<br>
<br>
<br>
When I create a ctl file as follows..<br>
<br>
dset C:\Users\acer\Desktop\sst\1998\%mc%<a href="http://y2.nc" target="_blank">y2.nc</a><br>
title SST, Pathfinder Ver 5.0, Day and Night, Global, Science Quality<br>
(Monthly Composite)<br>
options template<br>
tdef 1 linear 12Z16OCT1998 1dy<br>
zdef 1 linear 0 1<br>
xdef 3641 linear 0.0219727 0.0439453<br>
ydef 1161 linear -70.9937 0.0439453<br>
undef -1e+07<br>
vars 1<br>
sst 1 -999 Sea Surface Temperature<br>
endvars<br>
....the file opens.the time series also opens but the the contouring that I<br>
get is:<br>
&quot;Contouring: -3e+38 to 3e+38 interval 5e+37&quot;<br>
which is incorrect!<br>
What to do how to set the required limits??<br>
--<br>
Regards,<br>
Vijay.Pawar<br>
Symbiosis Institute Of Geoinformatics,<br>
Pune,India<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://gradsusr.org/pipermail/gradsusr/attachments/20110418/f23aa32a/attachment-0001.html" target="_blank">http://gradsusr.org/pipermail/gradsusr/attachments/20110418/f23aa32a/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Mon, 18 Apr 2011 08:49:01 -0500<br>
From: &quot;Colarco, Peter R. (GSFC-6133)&quot; &lt;<a href="mailto:peter.r.colarco@nasa.gov">peter.r.colarco@nasa.gov</a>&gt;<br>
Subject: Re: [gradsusr] lata42<br>
To: GrADS Users Forum &lt;<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:890B3D3E-EC66-4D1D-AE9E-DF75C0B2FDF2@nasa.gov">890B3D3E-EC66-4D1D-AE9E-DF75C0B2FDF2@nasa.gov</a>&gt;<br>
Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
<br>
I think you need the opengrads version to do with:<br>
<a href="http://opengrads.org/" target="_blank">http://opengrads.org/</a><br>
<br>
Pete<br>
<br>
On Apr 18, 2011, at 2:39 AM, Ghan, Steven J wrote:<br>
<br>
I&#39;m trying to use lats4d for the first time to regrid:<br>
<br>
lats4d -i <a href="http://infilename.nc" target="_blank">infilename.nc</a> -de <a href="http://outgridname.nc" target="_blank">outgridname.nc</a> -func re(@,144,linear,0,2.5,96,linear,-89.,1.925,bl)<br>
<br>
The result:<br>
Invalid QUERY argument: udc<br>
WARNING: this build of GrADS v2.0.a9 does not include the LATS option<br>
WARNING: &quot;-format grib&quot; or &quot;-format coads&quot; are not supported.<br>
&lt;RC&gt; 1 &lt;/RC&gt;<br>
&lt;/IPC&gt;<br>
ERROR: cannot proceed without LATS; try specifying a different -format<br>
1ga-&gt;<br>
<br>
Will this problem be corrected if I upgrade to the latest grads, or is there another workaround?<br>
<br>
-Steve Ghan<br>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&lt;mailto:<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&gt;<br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br>
--------------------------------------------------------------------<br>
Peter Colarco<br>
NASA GSFC<br>
Code 613.3<br>
NASA Goddard Space Flight Center<br>
Greenbelt, MD 20771<br>
<a href="tel:301.614.6382" value="+13016146382">301.614.6382</a> (ph)<br>
<a href="tel:301.614.5903" value="+13016145903">301.614.5903</a> (fax)<br>
<br>
<a href="mailto:peter.r.colarco@nasa.gov">peter.r.colarco@nasa.gov</a>&lt;mailto:<a href="mailto:peter.r.colarco@nasa.gov">peter.r.colarco@nasa.gov</a>&gt;<br>
<a href="http://hyperion.gsfc.nasa.gov/People/Colarco" target="_blank">http://hyperion.gsfc.nasa.gov/People/Colarco</a><br>
--------------------------------------------------------------------<br>
<br>
<br>
<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://gradsusr.org/pipermail/gradsusr/attachments/20110418/480e85dd/attachment-0001.html" target="_blank">http://gradsusr.org/pipermail/gradsusr/attachments/20110418/480e85dd/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Mon, 18 Apr 2011 16:31:28 +0200<br>
From: &quot;Zilore Mumba&quot; &lt;<a href="mailto:zmumba@gmail.com">zmumba@gmail.com</a>&gt;<br>
Subject: [gradsusr] writing binary to ascii<br>
To: &lt;<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&gt;<br>
Message-ID: &lt;000501cbfdd5$50100680$f0301380$@com&gt;<br>
Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
<br>
Hello Grads Users,<br>
<br>
I thought I used command like sprint to write data in grads to ascii. Or is<br>
it NetCdf to ascii? Help needed please<br>
<br>
Zilore<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://gradsusr.org/pipermail/gradsusr/attachments/20110418/699ed6ca/attachment-0001.html" target="_blank">http://gradsusr.org/pipermail/gradsusr/attachments/20110418/699ed6ca/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 7<br>
Date: Mon, 18 Apr 2011 23:11:55 +0800 (CST)<br>
From: Pou-Chang John Chen &lt;<a href="mailto:wishingwork@yahoo.com.tw">wishingwork@yahoo.com.tw</a>&gt;<br>
Subject: Re: [gradsusr] writing binary to ascii<br>
To: GrADS Users Forum &lt;<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:658449.90457.qm@web73704.mail.tp2.yahoo.com">658449.90457.qm@web73704.mail.tp2.yahoo.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
<br>
Hi Zilore<br>
I will try gxout print to list the value of grids, and then query the result and<br>
write out.<br>
&#39;set gxout print&#39;<br>
&#39;d var&#39;<br>
w=write(output_file,result)<br>
 c=close(output_file)<br>
<br>
You can use query to separate the result as following:<br>
&#39;set gxout print&#39;<br>
&#39;d var&#39;<br>
length=subwrd(result,4)<br>
i=1;while(i&lt;=9+length)<br>
value=subwrd(result,i)<br>
w=write(output_file,i)<br>
i=i+1;endwhile<br>
c=close(output_file)<br>
<br>
Just for sure you close the output file.<br>
<br>
Is this what you want?<br>
John<br>
<br>
________________________________<br>
GrADS Tutorial on Facebook<br>
<a href="http://www.wishingwork.com/grads/" target="_blank">http://www.wishingwork.com/grads/</a><br>
<br>
<br>
<br>
<br>
________________________________<br>
From: Zilore Mumba &lt;<a href="mailto:zmumba@gmail.com">zmumba@gmail.com</a>&gt;<br>
To: <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
Sent: Mon, April 18, 2011 10:31:28 PM<br>
Subject: [gradsusr] writing binary to ascii<br>
<br>
<br>
Hello Grads Users,<br>
I thought I used command like sprint to write data in grads to ascii. Or is it<br>
NetCdf to ascii? Help needed please<br>
Zilore<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://gradsusr.org/pipermail/gradsusr/attachments/20110418/2ef8c320/attachment-0001.html" target="_blank">http://gradsusr.org/pipermail/gradsusr/attachments/20110418/2ef8c320/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 8<br>
Date: Mon, 18 Apr 2011 10:44:13 -0700<br>
From: &quot;Ghan, Steven J&quot; &lt;<a href="mailto:Steve.Ghan@pnl.gov">Steve.Ghan@pnl.gov</a>&gt;<br>
Subject: Re: [gradsusr] lata42<br>
To: GrADS Users Forum &lt;<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:C9D1C5ED.90BA%25steve.ghan@pnl.gov">C9D1C5ED.90BA%steve.ghan@pnl.gov</a>&gt;<br>
Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
<br>
Thanks Pete.<br>
<br>
I downloaded the latest grads from opengrads:<br>
<br>
ga-&gt; lats4d -i gxBC_all_0.nc -de <a href="http://mam3.nc" target="_blank">mam3.nc</a> -func re(@,144,linear,0,2.5,96,linear,-89.,1.925,bl)<br>
Invalid QUERY argument: udc<br>
WARNING: this build of GrADS v2.0.a9.oga.1 does not include the LATS option<br>
WARNING: &quot;-format grib&quot; or &quot;-format coads&quot; are not supported.<br>
&lt;RC&gt; 1 &lt;/RC&gt;<br>
&lt;/IPC&gt;<br>
ERROR: cannot proceed without LATS; try specifying a different -format<br>
1ga-&gt; lats4d -i gxBC_all_0.nc -de <a href="http://mam3.nc" target="_blank">mam3.nc</a> -func re(@,144,linear,0,2.5,96,linear,-89.,1.925,bl)<br>
Invalid QUERY argument: udc<br>
WARNING: this build of GrADS v2.0.a9.oga.1 does not include the LATS option<br>
WARNING: &quot;-format grib&quot; or &quot;-format coads&quot; are not supported.<br>
<br>
Any other suggestions?<br>
<br>
-Steve<br>
<br>
From: &quot;Colarco, Peter R. (GSFC-6133)&quot; &lt;<a href="mailto:peter.r.colarco@nasa.gov">peter.r.colarco@nasa.gov</a>&lt;mailto:<a href="mailto:peter.r.colarco@nasa.gov">peter.r.colarco@nasa.gov</a>&gt;&gt;<br>
Reply-To: GrADS Users Forum &lt;<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&lt;mailto:<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&gt;&gt;<br>
Date: Mon, 18 Apr 2011 06:49:01 -0700<br>
To: GrADS Users Forum &lt;<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&lt;mailto:<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&gt;&gt;<br>
Subject: Re: [gradsusr] lata42<br>
<br>
I think you need the opengrads version to do with:<br>
<a href="http://opengrads.org/" target="_blank">http://opengrads.org/</a><br>
<br>
Pete<br>
<br>
On Apr 18, 2011, at 2:39 AM, Ghan, Steven J wrote:<br>
<br>
I&#39;m trying to use lats4d for the first time to regrid:<br>
<br>
lats4d -i <a href="http://infilename.nc" target="_blank">infilename.nc</a> -de <a href="http://outgridname.nc" target="_blank">outgridname.nc</a> -func re(@,144,linear,0,2.5,96,linear,-89.,1.925,bl)<br>
<br>
The result:<br>
Invalid QUERY argument: udc<br>
WARNING: this build of GrADS v2.0.a9 does not include the LATS option<br>
WARNING: &quot;-format grib&quot; or &quot;-format coads&quot; are not supported.<br>
&lt;RC&gt; 1 &lt;/RC&gt;<br>
&lt;/IPC&gt;<br>
ERROR: cannot proceed without LATS; try specifying a different -format<br>
1ga-&gt;<br>
<br>
Will this problem be corrected if I upgrade to the latest grads, or is there another workaround?<br>
<br>
-Steve Ghan<br>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&lt;mailto:<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&gt;<br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br>
--------------------------------------------------------------------<br>
Peter Colarco<br>
NASA GSFC<br>
Code 613.3<br>
NASA Goddard Space Flight Center<br>
Greenbelt, MD 20771<br>
<a href="tel:301.614.6382" value="+13016146382">301.614.6382</a> (ph)<br>
<a href="tel:301.614.5903" value="+13016145903">301.614.5903</a> (fax)<br>
<br>
<a href="mailto:peter.r.colarco@nasa.gov">peter.r.colarco@nasa.gov</a>&lt;mailto:<a href="mailto:peter.r.colarco@nasa.gov">peter.r.colarco@nasa.gov</a>&gt;<br>
<a href="http://hyperion.gsfc.nasa.gov/People/Colarco" target="_blank">http://hyperion.gsfc.nasa.gov/People/Colarco</a><br>
--------------------------------------------------------------------<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<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" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br>
<br>
End of gradsusr Digest, Vol 14, Issue 35<br>
****************************************<br>
</blockquote></div><br>