[GRASSLIST:87] coordinate numbers in ps.map

Hey guys,
something strange, I was making a small map with ps.map, but the
coordinate numbers refuse to show complete. It is a UTM region, and
grid numbers appear as "73" instead of "730" (for X coords) and as
"729" instead of "7290".
I found that if I set the grid spacing to 5000m or less, numbers show
up fine, but if I use 10000m (as I want to), then this problem arises.

see it:

www.igc.usp.br/pessoais/guano/tempo/srtm_v2_numbers1.jpg
www.igc.usp.br/pessoais/guano/tempo/srtm_v2_numbers2.jpg

Carlos
--
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

something strange, I was making a small map with ps.map, but the
coordinate numbers refuse to show complete. It is a UTM region, and
grid numbers appear as "73" instead of "730" (for X coords) and as
"729" instead of "7290".
I found that if I set the grid spacing to 5000m or less, numbers show
up fine, but if I use 10000m (as I want to), then this problem arises.

see it:

www.igc.usp.br/pessoais/guano/tempo/srtm_v2_numbers1.jpg
www.igc.usp.br/pessoais/guano/tempo/srtm_v2_numbers2.jpg

It's a feature. I suggest using the the mapinfo instruction.

in ps/ps.map/do_grid.c

do_grid_numbers()

    /* round grid to multiple of 10 */
    rounded_grid = 1;
    if (PS.w.proj != PROJECTION_LL)
    {
        sprintf(num_text, "%d", PS.grid);
        len = strlen(num_text);
        while (len-- && num_text[len] == '0') rounded_grid *= 10;
        if (rounded_grid == 10) rounded_grid = 1;
    }
*

and a little later,
        sprintf(num_text, "%s", format_northing(g, rounded_grid));

and the format_northing() fn at the end of that file.

a cheap hack to disable the feature is to add a line:
  rounded_grid = 1;

at the "*" above.

Hamish