## set shpattr

`set shpattr name type value`

Sets attribute metadata to be included in the shapefile created with the `set gxout shp` command.

`name` Name of the data base field (attribute), must be 11 characters or less.
`type` May be one of three data types: "string" ("char"), "int", or "double".
`value` May be a numeric value (for types "int" and "double") or any string as long as the length of the entire entry does not exceed 512 characters.

### Usage Notes

This command is available in GrADS v2.0.a9 or higher.

Numerical attribute values (integers and doubles) are written to the shapefile in text format. The `set shp` command controls the formatting of the numbers, by specifiying the length of the number (total number of columns) and the precision (number of places to the right of the decimal place, which is only meaningful for attributes of type double).

The `reset` or `reinit` commands will release all the user-specified shapefile attributes from memory. To do this without resetting all the other user-specified options, use the `clear shp` command.

Use the `q shpopts` command to see the current settings for drawing and writing shapefiles.

Please see the documentation page on shapefiles for more information.

### Examples

`set shpattr Author string Put_Your_Name_Here`