I have a UTM dataset that I am plotting with psmap. I would like to have grid squares at 1000 m intervals. I can do this easily with the following:
grid 1000
color black
numbers 1
font helvetica
fontsize 12
end*
*However, on the resulting plot, the gridline labels are truncated into kilometers e.g. 498, 7114, instead of 498000, 7114000. Is there a parameter that I can modify somewhere so that I can control output format and display the full number. (Similar to D_FORMAT / OUTPUT_DEGREE_FORMAT in GMT, I suppose).
Cheers
John
--
Dr John A Stevenson
RSE/Scottish Government Personal Research Fellow
(co-funded by Marie Curie Actions)
School of GeoSciences
The University of Edinburgh
Grant Institute
West Mains Road
Edinburgh EH9 3JW
Scotland
PHONE: (+44) 131 650 7526
FAX: (+44) 131 668 3184
email: john.stevenson@ed.ac.uk
web: http://www.geos.ed.ac.uk/homes/jsteven5
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
I have a UTM dataset that I am plotting with psmap. I
would like to have grid squares at 1000 m intervals. I
can do this easily with the following:
grid 1000
color black
numbers 1
font helvetica
fontsize 12
end*
*However, on the resulting plot, the gridline labels are
truncated into kilometers e.g. 498, 7114, instead of 498000,
7114000. Is there a parameter that I can modify
somewhere so that I can control output format and display
the full number. (Similar to D_FORMAT /
OUTPUT_DEGREE_FORMAT in GMT, I suppose).
right, it automatically truncates off extra zeros. I usually
use the map_info instruction which shows the full bounds.
Unfortunately there's no way to switch off that feature without
modifying the source code. if you wish to do that, edit
ps/ps.map/do_grid.c and in the do_grid_numbers() function
edit this line -from, +to: