[gradsusr] About set shp -poly

Li, Guilong (EC) guilong.li at canada.ca
Mon Oct 24 11:37:00 EDT 2016


Hi Jennifer,

By using "set line color" and "set shpopts color", I can fill the color without vertical lines. But it fills the whole area same color. I tried to follow your example "shp_demo1.gs" to fill the color by data range, but I failed on it (tried to use if condition). Is there any simple example I can follow, I just want to show shape file same to "set gxout shaded".

Thanks,

Guilong

From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Jennifer M Adams
Sent: October 21, 2016 9:30 AM
To: GrADS Users Forum
Subject: Re: [gradsusr] About set shp -poly

This has already been discussed:
http://gradsusr.org/pipermail/gradsusr/2012-January/031806.html

On Oct 20, 2016, at 3:16 PM, Li, Guilong (EC) <guilong.li at canada.ca<mailto:guilong.li at canada.ca>> wrote:


Hi Everyone,

I want to use GrADS polygon with color filled (shaded format) to generate shapefile in order to put it in ArcGIS. For points and lines, shapefile works well. But polygon has some problems.

Here is the code, I use GrADS 2.1.a3

'reinit'
'sdfopen ensmedium_climatology.nc'
'set grads off'
'set grid off'
filename='cdd_2090s'
'set gxout shp'
'set shp -poly 'filename
'd (cd3-cd0)'
'draw shp 'filename

And generated figure
<image001.png>

There are a lot of vertical lines in each polygon. When I want to fill each polygon as a color (use set shpopts colornumber), all polygons are filled in one color.

So my questions are 1) how to remove these vertical lines 2) how to fill in different colors for different polygons.

Thanks,

Guilong


_______________________________________________
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/20161024/8dd94059/attachment-0001.html 


More information about the gradsusr mailing list