[gradsusr] How to output contour to a txt/dat file

Taixia wutxcn at gmail.com
Wed Sep 7 21:48:25 EDT 2016


Hi Jennifer, it works perfect. Thank you.

On Wednesday, September 7, 2016, Jennifer M Adams <jadams21 at gmu.edu> wrote:
> GrADS can write out the shapefile for you. Use ‘set gxout shp’ and ‘set
shp’ to control the output. Documentation is at
http://cola.gmu.edu/grads/gadoc/shapefiles.html.
> ‘set gxout shp'
> ‘set shp -line shptest'
> ’set clevs 0’
> ‘d temp'
> —Jennifer
>
> On Sep 6, 2016, at 8:47 PM, Taixia <wutxcn at GMAIL.COM> wrote:
>
> Thanks for your reply. Exactly.  I'd like get a *.shp file of the 0
contour's. It should be get the lat/lon of the contour's position first,
and then using Arcgis software to generate the .shp file.
>
> On Wednesday, September 7, 2016, Jennifer M Adams <jadams21 at gmu.edu>
wrote:
>> I guess I did not fully understand the question. You have drawn the
0-degree temperature contour; what exactly do you want to output to a text
file? The lat/lon of the contour’s position? —Jennifer
>>
>> On Sep 3, 2016, at 7:19 PM, Taixia <wutxcn at GMAIL.COM> wrote:
>>
>> Hi Jennifer,
>> Thanks a lot for your reply.
>> Problem still exists,forgive a Grads beginner. The data I used is the
NECP 5 years average air temperature, I'd like get the zero degree
temperature line. After "set clevs 0", I got the contours graphic (see
attachment). But I still cannot get the output file as your steps. Could
you please have a look at the attachments and help?
>> ---Tim
>> On Fri, Sep 2, 2016 at 7:20 PM, Jennifer M Adams <jadams21 at gmu.edu>
wrote:
>>>
>>> After drawing a plot, you can check the contour levels used with ‘q
shades’ or ‘q contours’. For line contours, the output looks like this
(first column is color number, second column is contour value):
>>> Number of levels = 11
>>> 9 50000
>>> 14 55000
>>> 4 60000
>>> 11 65000
>>> 13 70000
>>> 3 75000
>>> 10 80000
>>> 12 85000
>>> 8 90000
>>> 2 95000
>>> 6 100000
>>> If you want to write this to a file, here is a script fragment:
>>> ‘q contours’
>>> rc=write(“contourinfo.txt”,result)
>>> rc=close(“contourinfo.txt”)
>>> —Jennifer
>>> On Sep 1, 2016, at 9:57 PM, Taixia <wutxcn at GMAIL.COM> wrote:
>>>
>>> Anybody knows how to output the contour value (such as set clevs 0) to
.txt or .dat file (not graphic)? Thanks.
>>> _______________________________________________
>>> 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
>>>
>>
>> <air1115.nc><snap.bmp>_______________________________________________
>> 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
>
> --
> Jennifer Miletta Adams
> Center for Ocean-Land-Atmosphere Studies (COLA)
> George Mason University
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20160908/0a80ef7c/attachment.html 


More information about the gradsusr mailing list