[GRASS-user] Grid label format in psmap
Hi, 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.steven...@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. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Grid label format in psmap
On Thu, 25 Nov 2010, John A Stevenson wrote: grid 1000 color black numbers 1 font helvetica fontsize 12 end* John, Have you tried specifying grid 1 (assuming kilometers rather than meters)? If so, what results did you see in the pdf? Rich ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Grid label format in psmap
John wrote: 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: -sprintf(num_text, %s, format_northing(g, rounded_grid)); +sprintf(num_text, %s, format_northing(g, 1)); and then recompile. (untested) you may also try out ps.output from the Addons collection, it has more advanced border controls: http://grass.osgeo.org/screenshots/images/probabilidad_de_infeccion_crop.jpg (which at some point will be merged into ps.map too) Hamish ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user