Radim's suggestion indeed resolved the problem. From the
cygwin command line, I ran
tr -d '\015' < oldmapinstructions > newmapinstructions
and newmapinstructions ran with a problem as the input to ps.map
Thank you very much.
(I remain puzzled why the "size 1" line did NOT cause a
problem, only the "color red" line.)
Best,
Michael Ash
> I am using GRASS 5.0pre3 on Cygwin/Windows
> I gave ps.map the following mapping instruction file
> sites censusbg
> color red
> size 1
> end
> raster onsitegridlogscore
> end
>
> ps.map rejects the file with the following message:
> PS-PAINT: using default configuration values.
> : illegal color request
>
> If I remove the color instruction from the mapping
> instruction file, then there is no complaint and the map is
> produced (without the desired color).
>
> If I give the instructions interactively, then there is no
> complaint and the map is produced (with the desired color)It could be problem with line endings. If the file is written on
windows, try to remove <CR> by "tr -d '\015'"
Michael Ash, Assistant Professor
of Economics and Public Policy
Department of Economics and CPPA
University of Massachusetts
Amherst, MA 01003
Tel 413-545-6329 Fax 413-545-2921
Email mash@econs.umass.edu
http://www-unix.oit.umass.edu/~maash