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

Taixia wutxcn at gmail.com
Sat Sep 3 19:19:18 EDT 2016


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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20160904/175d6091/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: air1115.nc
Type: application/x-netcdf
Size: 238670 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20160904/175d6091/attachment-0001.nc 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snap.bmp
Type: image/bmp
Size: 1154832 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20160904/175d6091/attachment-0001.bmp 


More information about the gradsusr mailing list