[gradsusr] About set shp -poly

Li, Guilong (EC) guilong.li at canada.ca
Thu Oct 20 15:16:13 EDT 2016


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
[cid:image001.png at 01D22AE4.E4CCC1E0]

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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20161020/dacb3d70/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 119422 bytes
Desc: image001.png
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20161020/dacb3d70/attachment-0001.png 


More information about the gradsusr mailing list