[gradsusr] Data descriptor file

Lovish Aggarwal guptaluv.8098 at gmail.com
Tue Jul 18 15:06:27 EDT 2017


Thank you so much for your helo guys, I could complete everything and
perfectly on time.

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.

On Jul 13, 2017 10:37 AM, "yaqiang.wang at gmail.com" <yaqiang.wang at gmail.com>
wrote:

> 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.
>
>
> ------------------------------
> *************************************************
> Dr. Yaqiang Wang
> Chinese Academy of Meteorological Sciences (CAMS)
> 46, Zhong-Guan-Cun South Avenue
> Beijing, 100081
> China
>
> yaqiang.wang at gmail.com
>
> http://www.meteothinker.com
> *https://www.researchgate.net/profile/Yaqiang_Wang5
> <https://www.researchgate.net/profile/Yaqiang_Wang5>*
> **************************************************
>
>
> *From:* Lovish Aggarwal <guptaluv.8098 at gmail.com>
> *Date:* 2017-07-13 11:10
> *To:* GrADS Users Forum <gradsusr at gradsusr.org>
> *Subject:* Re: [gradsusr] Data descriptor file
> Am sorry but I still am unable to find mistake in my grd file.
> 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!
> Thanks in advance!
> Please reply asap.
> Also attached are the ctl file and screenshot of output on grads and
> command line.
>
> On Thu, Jul 13, 2017 at 8:03 AM, Lovish Aggarwal <guptaluv.8098 at gmail.com>
> wrote:
>
>> Am sorry but I still am unable to find mistake in my grd file.
>> 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!
>> Thanks in advance!
>> Please reply asap.
>>
>> On Thu, Jul 13, 2017 at 2:58 AM, Jennifer M Adams <jadams21 at gmu.edu>
>> wrote:
>>
>>> Sounds like your .dat file is really ascii, if it has columns with lat,
>>> lon, and wind speed data.
>>>
>>> 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:
>>> http://cola.gmu.edu/grads/gadoc/aboutgriddeddata.html#structure
>>>
>>> “… 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).”
>>>
>>> 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: http://cola.gmu.edu/grads/gado
>>> c/ascii.html — the section on “Input ASCII data” has an example showing
>>> how to deal with ASCII data using GrADS scripts.
>>> —Jennifer
>>>
>>>
>>>
>>>
>>>
>>> > On Jul 12, 2017, at 4:23 PM, Lovish Aggarwal <guptaluv.8098 at gmail.com>
>>> wrote:
>>> >
>>> > This won't work as my dat file contains three columns containing lat
>>> long and wind speed. And grads is unable to read it.
>>> > 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.
>>> > Thanks!
>>> >
>>> > On Jul 12, 2017 5:54 PM, "Jennifer M Adams" <jadams21 at gmu.edu> wrote:
>>> > This doc page should provide the information you need:
>>> http://cola.gmu.edu/grads/gadoc/aboutgriddeddata.html
>>> >
>>> > 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.
>>> > —Jennifer
>>> >
>>> >
>>> > > On Jul 12, 2017, at 5:15 AM, Lovish Aggarwal <
>>> guptaluv.8098 at gmail.com> wrote:
>>> > >
>>> > > I need to know the exact format of .grd file grads takes as input.
>>> > > 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.
>>> > > So I want to know the exact format of grd file so that I can make it
>>> through my java code.
>>> > > Thank you!
>>> > > It's kind of urgent please reply asap.
>>> > > _______________________________________________
>>> > > gradsusr mailing list
>>> > > gradsusr at gradsusr.org
>>> > > http://gradsusr.org/mailman/listinfo/gradsusr
>>> >
>>> > --
>>> > Jennifer Miletta Adams
>>> > Center for Ocean-Land-Atmosphere Studies (COLA)
>>> > George Mason University
>>> >
>>> >
>>> >
>>> >
>>> > _______________________________________________
>>> > gradsusr mailing list
>>> > gradsusr at gradsusr.org
>>> > http://gradsusr.org/mailman/listinfo/gradsusr
>>> > _______________________________________________
>>> > gradsusr mailing list
>>> > gradsusr at gradsusr.org
>>> > http://gradsusr.org/mailman/listinfo/gradsusr
>>>
>>> --
>>> Jennifer Miletta Adams
>>> Center for Ocean-Land-Atmosphere Studies (COLA)
>>> George Mason University
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org
>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>
>>
>>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20170719/86042753/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: InsertPic_.png
Type: image/png
Size: 71708 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20170719/86042753/attachment-0001.png 


More information about the gradsusr mailing list