<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }div.foxdiv20170713130117640247 { }body { font-size: 10.5pt; font-family: 微软雅黑; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>You data is not grid data but scatter point data, so you need to write it as GrADS station data format for using GrADS to plot it.</div><div><br></div><div><div>
<img src="cid:_Foxmail.1@40f73da5-f5ea-77c9-c723-889c922011e4"></div></div>
<div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><span style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;">*************************************************</span><br style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;"><span style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;">Dr. Yaqiang Wang</span><br style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;"><span style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;">Chinese Academy of Meteorological Sciences (CAMS)</span><br style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;"><span style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;">46, Zhong-Guan-Cun South Avenue</span><br style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;"><span style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;">Beijing, 100081</span><br style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;"><span style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;">China</span><br style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;"><span style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;">             </span><br style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;"><a href="mailto:yaqiang.wang@gmail.com" target="_blank" style="font-family: 微软雅黑; font-size: 14px; line-height: 21px;">yaqiang.wang@gmail.com</a><br style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;"><br style="color: rgb(136, 136, 136); font-family: 微软雅黑; font-size: 14px; line-height: 21px;"><a href="http://www.meteothinker.com" target="_blank" style="font-family: 微软雅黑; font-size: 14px; line-height: 21px;">http://www.meteothinker.com</a></div><div style="margin: 10px;"><span style="background-color: rgba(0, 0, 0, 0);"><u><font color="#0000ff"><a href="https://www.researchgate.net/profile/Yaqiang_Wang5">https://www.researchgate.net/profile/Yaqiang_Wang5</a></font></u></span><font face="verdana" size="2"><span style="line-height: 19px;"><br></span></font><span style="font-family: 微软雅黑; font-size: 14px; color: rgb(136, 136, 136); line-height: 21px;">**************************************************</span></div></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div>&nbsp;</div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>From:</b>&nbsp;<a href="mailto:guptaluv.8098@gmail.com">Lovish Aggarwal</a></div><div><b>Date:</b>&nbsp;2017-07-13&nbsp;11:10</div><div><b>To:</b>&nbsp;<a href="mailto:gradsusr@gradsusr.org">GrADS Users Forum</a></div><div><b>Subject:</b>&nbsp;Re: [gradsusr] Data descriptor file</div></div></div><div><div class="FoxDiv20170713130117640247"><div dir="ltr"><div>Am sorry but I still am unable to find mistake in my grd file.</div><div>Both the ascii data file with lat long and wind speed&nbsp; AND the grid file produced by my java code are attached here, please I request you to see and tell me where am I mistaken!</div><div>Thanks in advance!</div><div>Please reply asap.</div><div>Also attached are the ctl file and screenshot of output on grads and command line.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 13, 2017 at 8:03 AM, Lovish Aggarwal <span dir="ltr">&lt;<a href="mailto:guptaluv.8098@gmail.com" target="_blank">guptaluv.8098@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div dir="ltr"><div>Am sorry but I still am unable to find mistake in my grd file.</div><div>Both the ascii data file with lat long and wind speed&nbsp; AND the grid file produced by my java code are attached here, please I request you to see and tell me where am I mistaken!</div><div>Thanks in advance!</div><div>Please reply asap.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 13, 2017 at 2:58 AM, Jennifer M Adams <span dir="ltr">&lt;<a href="mailto:jadams21@gmu.edu" target="_blank">jadams21@gmu.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;">Sounds like your .dat file is really ascii, if it has columns with lat, lon, and wind speed data.<br>
<br>
The doc file I pointed to in my first reply does tell you ‘exactly how your output grid file must be written’ — look under the heading Structure of a Gridded Binary File:<br>
<a href="http://cola.gmu.edu/grads/gadoc/aboutgriddeddata.html#structure" target="_blank" rel="noreferrer">http://cola.gmu.edu/grads/gado<wbr>c/aboutgriddeddata.html#struct<wbr>ure</a><br>
<br>
“… Each building block is a horizonal grid of data varying in the X and Y dimensions. The first dimension (X) always varies from west to east; the second dimension (Y) varies from south to north (by default).”<br>
<br>
So, you muse write all longitudes at the southernmost latitude. Then write out another row of data for all longidutes and the next latitude, etc. You may find this page useful: <a href="http://cola.gmu.edu/grads/gadoc/ascii.html" target="_blank" rel="noreferrer">http://cola.gmu.edu/grads/gado<wbr>c/ascii.html</a> — the section on “Input ASCII data” has an example showing how to deal with ASCII data using GrADS scripts.<br>
<span class="m_7094465726979005515HOEnZb"><font color="#888888">—Jennifer<br>
</font></span><div class="m_7094465726979005515HOEnZb"><div class="m_7094465726979005515h5"><br>
<br>
<br>
<br>
<br>
&gt; On Jul 12, 2017, at 4:23 PM, Lovish Aggarwal &lt;<a href="mailto:guptaluv.8098@gmail.com" target="_blank">guptaluv.8098@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; This won't work as my dat file contains three columns containing lat long and wind speed. And grads is unable to read it.<br>
&gt; The reason am trying to make a grid file from it using java! Please help me up with how exactly my output grid file must be written for it to be understood by grads.<br>
&gt; Thanks!<br>
&gt;<br>
&gt; On Jul 12, 2017 5:54 PM, "Jennifer M Adams" &lt;<a href="mailto:jadams21@gmu.edu" target="_blank">jadams21@gmu.edu</a>&gt; wrote:<br>
&gt; This doc page should provide the information you need: <a href="http://cola.gmu.edu/grads/gadoc/aboutgriddeddata.html" target="_blank" rel="noreferrer">http://cola.gmu.edu/grads/gado<wbr>c/aboutgriddeddata.html</a><br>
&gt;<br>
&gt; Flat binary data files often have the .dat OR the .grd extension, so converting may not be necessary. Depending on what your error is, you can check the file's size, it should be xsize*ysize*zsize*4 bytes.<br>
&gt; —Jennifer<br>
&gt;<br>
&gt;<br>
&gt; &gt; On Jul 12, 2017, at 5:15 AM, Lovish Aggarwal &lt;<a href="mailto:guptaluv.8098@gmail.com" target="_blank">guptaluv.8098@gmail.com</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; I need to know the exact format of .grd file grads takes as input.<br>
&gt; &gt; I have .dat file with xyz (lat lon windspeed) and am converting this .dat file to .grd but there is a problem in reading the grd file made.<br>
&gt; &gt; So I want to know the exact format of grd file so that I can make it through my java code.<br>
&gt; &gt; Thank you!<br>
&gt; &gt; It's kind of urgent please reply asap.<br>
&gt; &gt; ______________________________<wbr>_________________<br>
&gt; &gt; gradsusr mailing list<br>
&gt; &gt; <a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
&gt; &gt; <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank" rel="noreferrer">http://gradsusr.org/mailman/li<wbr>stinfo/gradsusr</a><br>
&gt;<br>
&gt; --<br>
&gt; Jennifer Miletta Adams<br>
&gt; Center for Ocean-Land-Atmosphere Studies (COLA)<br>
&gt; George Mason University<br>
&gt;<br>
&gt;<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" target="_blank" rel="noreferrer">http://gradsusr.org/mailman/li<wbr>stinfo/gradsusr</a><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" target="_blank" rel="noreferrer">http://gradsusr.org/mailman/li<wbr>stinfo/gradsusr</a><br>
<br>
--<br>
Jennifer Miletta Adams<br>
Center for Ocean-Land-Atmosphere Studies (COLA)<br>
George Mason University<br>
<br>
<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" target="_blank" rel="noreferrer">http://gradsusr.org/mailman/li<wbr>stinfo/gradsusr</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote>
</body></html>