<div dir="auto">Thank you so much for your helo guys, I could complete everything and perfectly on time. <div dir="auto"><br></div><div dir="auto">The only problem am facing now is how to get the current date and time in UTC drawn as the title along with some string too in title itself. </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Jul 13, 2017 10:37 AM, "<a href="mailto:yaqiang.wang@gmail.com">yaqiang.wang@gmail.com</a>" <<a href="mailto:yaqiang.wang@gmail.com">yaqiang.wang@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<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">******************************<wbr>*******************</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" style="font-family:微软雅黑;font-size:14px;line-height:21px" target="_blank">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" style="font-family:微软雅黑;font-size:14px;line-height:21px" target="_blank">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" target="_blank">https://www.researchgate.net/<wbr>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">******************************<wbr>********************</span></div></span></div>
<blockquote style="margin-top:0px;margin-bottom:0px;margin-left:0.5em"><div> </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> <a href="mailto:guptaluv.8098@gmail.com" target="_blank">Lovish Aggarwal</a></div><div><b>Date:</b> 2017-07-13 11:10</div><div><b>To:</b> <a href="mailto:gradsusr@gradsusr.org" target="_blank">GrADS Users Forum</a></div><div><b>Subject:</b> Re: [gradsusr] Data descriptor file</div></div></div><div><div class="m_-703749813265303442FoxDiv20170713130117640247"><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 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"><<a href="mailto:guptaluv.8098@gmail.com" target="_blank">guptaluv.8098@gmail.com</a>></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 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="m_-703749813265303442HOEnZb"><div class="m_-703749813265303442h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 13, 2017 at 2:58 AM, 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: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" rel="noreferrer" target="_blank">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" rel="noreferrer" target="_blank">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_-703749813265303442m_7094465726979005515HOEnZb"><font color="#888888">—Jennifer<br>
</font></span><div class="m_-703749813265303442m_7094465726979005515HOEnZb"><div class="m_-703749813265303442m_7094465726979005515h5"><br>
<br>
<br>
<br>
<br>
> On Jul 12, 2017, at 4:23 PM, Lovish Aggarwal <<a href="mailto:guptaluv.8098@gmail.com" target="_blank">guptaluv.8098@gmail.com</a>> wrote:<br>
><br>
> 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>
> 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>
> Thanks!<br>
><br>
> On Jul 12, 2017 5:54 PM, "Jennifer M Adams" <<a href="mailto:jadams21@gmu.edu" target="_blank">jadams21@gmu.edu</a>> wrote:<br>
> This doc page should provide the information you need: <a href="http://cola.gmu.edu/grads/gadoc/aboutgriddeddata.html" rel="noreferrer" target="_blank">http://cola.gmu.edu/grads/gado<wbr>c/aboutgriddeddata.html</a><br>
><br>
> 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>
> —Jennifer<br>
><br>
><br>
> > On Jul 12, 2017, at 5:15 AM, Lovish Aggarwal <<a href="mailto:guptaluv.8098@gmail.com" target="_blank">guptaluv.8098@gmail.com</a>> wrote:<br>
> ><br>
> > I need to know the exact format of .grd file grads takes as input.<br>
> > 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>
> > So I want to know the exact format of grd file so that I can make it through my java code.<br>
> > Thank you!<br>
> > It's kind of urgent please reply asap.<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>
> --<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" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/li<wbr>stinfo/gradsusr</a><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>
--<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" rel="noreferrer" target="_blank">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>
</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></div>