q shpopts
Lists the current settings for drawing and writing out shapefiles. This command is available with GrADS version 2.0.a9 or later. The Please see the documentation page on shapefiles for more details. This example shows the default values: This example shows how to set and query shapefile options:
Usage Notes
clear shp
command releases all user-defined shapefile attributes from memory, and resets the output filename root and shapefile type to their default values. The reset
and reinit
commands will do the same thing -- use clear shp
if you do not want to reset all the other user settings. Examples
ga-> reinit
ga-> q shpopts
Settings for drawing shapefiles:
polygon fill color: -1
mark type: 3
mark size: 0.05
Settings for writing shapefiles:
output filename root: grads
output type: line
format string: %12.6f
ga-> set shpopts 15
ga-> set shp -pt -fmt 8 4 pointshp
ga-> set shpattr Author string JMA
ga-> set shpattr Date string 2010-05-23
ga-> set shpattr pi double 3.14159
ga-> q shpopts
Settings for drawing shapefiles:
polygon fill color: 15
mark type: 3
mark size: 0.05
Settings for writing shapefiles:
output filename root: pointshp
output type: point
format string: %8.4f
attributes:
Author: JMA
Date: 2010-05-23
pi: 3.1416