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

Jennifer M Adams jadams21 at gmu.edu
Tue Sep 6 12:03:03 EDT 2016


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<mailto: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<mailto: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<mailto: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<mailto: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<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr


<air1115.nc><snap.bmp>_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto: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/20160906/943cc8e2/attachment.html 


More information about the gradsusr mailing list