[gradsusr] [Bug report] gxout shape in -poly mode does not honor clevs or cint
Jennifer M Adams
jadams21 at gmu.edu
Thu Jun 27 20:18:53 EDT 2019
Hi, Stefan —
I think you are confusing the options for drawing and creating shapefiles. The clevs/cint settings are used when writing out the shapefiles with ‘gxout shp’. When drawing the shapefiles you have created, use the shpopts command to set the fill color, or else use ‘set line’ to control the line characteristics if you are not filling them in. Here is a sample script:
'open model.ctl'
'set lat 0 20'
'set lon 0 40’
'set gxout shp'
'set shp -poly shp20'
'set cint 20'
'd ps'
say result
'set shp -poly shp10'
'set cint 10'
'd ps'
say result
‘clear'
'set gxout shaded'
'set cint 20'
'd ps’
'set line 0 1 10'
'draw shp shp20’
'set line 0 5 2’
'draw shp shp10’
'q shpopts'
say result
That yields the following output to the terminal:
ga-> testshp
Contouring: 800 to 1000 interval 20
26 polygons written to shapefile shp20
Contouring: 790 to 1010 interval 10
30 polygons written to shapefile shp10
Settings for drawing shapefiles:
polygon fill color: -1
mark type: 3
mark size: 0.05
Settings for writing shapefiles:
output filename root: shp10
format string: %12.6f
And here is the display:
[cid:43038F03-AC07-47C4-84CC-45EDD4B72F01]
On Jun 27, 2019, at 7:26 AM, Stefan Gofferje <stefan at saakeskus.fi<mailto:stefan at saakeskus.fi>> wrote:
Grads version: 2.2.1
Platform: Ubuntu Server 16.04
Observed behaviour:
When using gxout shp with shpopts -poly to create shapefiles, grads does not honor clevs or cint setting issued before the draw command.
With shpopts -line, cint and/or clevs ARE honored
Expected behaviour:
Grads should honor clevs/cint settings also when creating shape files in -poly mode.
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://secure-web.cisco.com/1csXQglMUxbB7uGEcAEAqquZTYZbQus_1RgX8mRCTTQ-1G2hk8DITolrVrKfflYDKr8j1wPNSJ_iUmVCp-ELyHrtJLWMjvHkBzaqfORg9Sc8MyzuXMJuBIjNXnT0eQXmhd6ppFKg0OKntQLdkRA1Yjmec10aHkIZKRHOZaW4Yo-fp0vV6aCwWZfhR9WbhEQ5LUHyuqFtL8WBYmrcyHC-OYyDQZmnkadLKB4Kn5JT6kOD3hG4IWwUdSPChRF19RywOv5_Wa4ldPffewT_Qf0AbyNrZ_-gFjZOHbY6Wyb6_xjvZSrbQbyPVYosaBN_ie9ihZOZG4JYF43XWgpjhDNMwHYMEsVUrD4WR-bBTeSIkea71WnbmEx1l1aEl3xSJyJHt_NOYvaHAGzNwts4AgyAXW0VnyWqe8S1IAV4cBbLEhdYA3unBumhzs8hG3QeGEHjQ/http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr
--
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/20190628/10b30188/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testshp.png
Type: image/png
Size: 150078 bytes
Desc: testshp.png
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20190628/10b30188/attachment-0001.png>
More information about the gradsusr
mailing list