Re: [GRASS-user] ps.map: Header File Not Read

2010-02-25 Thread Hamish
Rich wrote:
   Following the ps.map man page
 I created an instruction file (called
 'basin.basic') and a header file ('basin.hdr'). This worked
 the last time I
 ran it. Today, the header file is not being read; the
 header comes up with
 the raster map name and 'unknown location'. According to
 the man page this
 happens when the 'file' is not specified in the header
 section.
 
   As the file name is specified, how do I trace down
 the source of the problem?


please post or send privately exact instructions used.

I'd suspect that it is trying to use the location's description,
check PERMANENT/PROJ_NAME.


Hamish




___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] ps.map: Header File Not Read

2010-02-24 Thread Rich Shepard

  Following the ps.map man page I created an instruction file (called
'basin.basic') and a header file ('basin.hdr'). This worked the last time I
ran it. Today, the header file is not being read; the header comes up with
the raster map name and 'unknown location'. According to the man page this
happens when the 'file' is not specified in the header section.

  As the file name is specified, how do I trace down the source of the
problem?

Rich
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] ps.map: header

2010-01-05 Thread Hamish
Rich wrote:
   The man page tells me that the header section of the input file
 will print the map title and location (if known) centered above the
 map if there is no file specified. When I specify a file the header is
 printed left-justified.

correct.
 
   Is there a way to have the header centered when the
 text file is specified?

use the spacebar a lot? ;)
or use the 'text' instruction instead with y% as -5% or 105% or so..


looking in the ps.map/do_header.c source code there is in fact a lot
of rather interesting  undocumented formatting magic available.
(I looked because there's often a lot of old p.map goodies lurking about
in there waiting to be discovered)

%%  - literal %
%n  - ??? newline
%_  - horizontal bar
%d  - date
%l  - location name
%L  - Location's text description
%c  - %s in mapset %s
%m  - mapset name
%u  - user name
%x  - mask info
%-  - proceed to this char column number (? see example)


and example is given in the GRASS 5 source code:
  grass-5.4.1/src/paint/Programs/p.map/cmd/HEADER

%_
LOCATION: %-27l  DATE: %d
MAPSET:   %-27m  USER: %u

RASTER MAP: %c
MASK: %x
%_
Produced by: US Army CERL, Champaign Illinois
Software:GRASS
%_



I've now added this to the ps.map help page.
if anyone has a better idea how %n and %- should work, please post.
I expect for %-#x you will want to use a fixed-width font..


Hamish



  
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] ps.map: header

2010-01-04 Thread Rich Shepard

  The man page tells me that the header section of the input file will print
the map title and location (if known) centered above the map if there is no
file specified. When I specify a file the header is printed left-justified.

  Is there a way to have the header centered when the text file is
specified?

Rich
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user