<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Courier New" size=2>Hi Ross.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>THE PROBLEM</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>My understanding is that you:</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>1. imported the data from
"dtm.asc" into the site file "points.dtm" using "s.in.ascii", then </FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>2. with "s.surf.rst" produced an FCELL map
called "elevation.dtm" from that new site file, and</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>3. were unable to display either
"elevation.dtm" or another image file "cape.img", because of error messages
about compression.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>PROBABLE CAUSE</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>I believe that this is caused by one or
both of the following problems:</FONT></DIV>
<DIV><FONT face="Courier New" size=2><FONT face="Courier New" size=2><FONT
face="Courier New" size=2></FONT></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><FONT face="Courier New" size=2>1. your
Grass data drive being mounted in text mode rather than binary mode
and/or,</FONT></DIV>
<DIV></FONT> </DIV>
<DIV>2. <FONT face="Courier New" size=2>the points.dtm file you have uses
Windows style line endings (possibly caused by WinZip, possibly caused by your
default Cygwin text file setting from setup time), and in turn possibly causing
problems for Grass which very Unixy.</FONT></FONT></DIV><FONT face="Courier New"
size=2>
<DIV><FONT face="Courier New" size=2></FONT> </DIV></FONT>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>THE GOOD NEWS</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Here is what I did to make and display a
new elevation raster from the raw data you sent. </FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>First note that I was running the native
Windows Grass5 Pre-Release 5 under the latest web install Cygwin using Unix text
files by default (set this when running the Cygwin setup program) and that I
ensured that my data drives were mounted as binary.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>1. I started bash and
executed:</FONT></DIV>
<DIV><FONT face="Courier New" size=2> </FONT></DIV>
<DIV><FONT face="Courier New" size=2> cd
/cygdrive/g/grass5.0.0pre5/</FONT></DIV>
<DIV><FONT face="Courier New" size=2> </FONT></DIV>
<DIV><FONT face="Courier New" size=2>This is significant because by using a full
Unix style path name I am automatically ensuring that the drive will be mounted
in binary mode. If I had used "g:/grass/..." instead this might have been
different depending on the mount table.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>2. Started Grass.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Likewise I fed a complete Cygwin path name
into the Grass startup screen.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>3. I processed your raw data file
"dtm.asc" as follows (apologies for wrapped line endings, interspersed
comments etc):</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>
<DIV><FONT face="Courier New"
size=2>-----------------------------------------------------------</FONT></DIV>GRASS:/cygdrive/g/grass5.0.0pre5
> s.in.ascii sites=p.dtm input=/cygdrive/g/data/grass5/Cape/dtm.asc d=2
fs=space<BR></FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>
<DIV><FONT face="Courier New"
size=2>-----------------------------------------------------------</FONT></DIV>GRASS:/cygdrive/g/grass5.0.0pre5
> d.mon start=x0; d.mon select=x0<BR>Socket is already in use or not
accepting connections.<BR>Use d.mon to select a monitor<BR>Problem selecting x0.
Will try once more<BR></DIV></FONT>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>
<DIV><FONT face="Courier New"
size=2>-----------------------------------------------------------</FONT></DIV>GRASS:/cygdrive/g/grass5.0.0pre5
> d.sites type=+ sitefile=p.dtm color=yellow size=3</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>
<DIV><FONT face="Courier New" size=2>Your "points.dtm" won't display for me
because it has the wrong kind of line endings, BUT, m</FONT>y new "p.dtm"
displays fine.</FONT></DIV></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2> </DIV>
<DIV><BR>
<DIV><FONT face="Courier New"
size=2>-----------------------------------------------------------</FONT></DIV>GRASS:/cygdrive/g/grass5.0.0pre5
> s.surf.rst input=p.dtm elev=e.dtm field=1</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Authors: original version L.Mitas,
H.Mitasova<BR> GRASS
implementation I.Kosinovsky, D.P.Gerdes<BR>see references in manual page or
at:<BR><A
href="http://www2.gis.uiuc.edu:2280/modviz/papers/listsj.html">http://www2.gis.uiuc.edu:2280/modviz/papers/listsj.html</A></FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Warning: strip exists with insufficient
data</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>The number of points in sites file is
864<BR>The number of points outside of region 0<BR>The number of points being
used (after reduction) is 864</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Processing all selected output
files<BR>will require 240640 bytes of disk space for temp files</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2> 100%<BR>Percent complete: history
initiated</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2> </DIV>
<DIV>
<DIV><FONT face="Courier New"
size=2>-----------------------------------------------------------</FONT></DIV><BR>GRASS:/cygdrive/g/grass5.0.0pre5
> d.rast e.dtm<BR> 100%</DIV>
<DIV> </DIV>
<DIV>This new "e.dtm" displays perfectly, whereas your "elevation.dtm does not,
with the same errors you were getting.</DIV>
<DIV><BR></DIV>
<DIV>
<DIV><FONT face="Courier New"
size=2>-----------------------------------------------------------</FONT></DIV></FONT><FONT
face="Courier New" size=2>
<DIV> </DIV>I will separately forward the new project files to you with the
new file "e.dtm" I generated. Please let us know how you go.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Cheers</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Mike Thomas.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New"
size=2>-----------------------------------------------------------</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=ross@aoc.co.za href="mailto:ross@aoc.co.za">Ross Rozendaal</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=miketh@brisbane.paradigmgeo.com
href="mailto:miketh@brisbane.paradigmgeo.com">miketh@brisbane.paradigmgeo.com</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, August 01, 2002 7:04
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [winGRASS] Problem
displaying raster data on Wingrass </DIV>
<DIV><FONT face="Courier New" size=2></FONT><FONT face="Courier New"
size=2></FONT><FONT face="Courier New" size=2></FONT><FONT face="Courier New"
size=2></FONT><BR></DIV>
<DIV><FONT face="Courier New" color=#0000ff size=2>Hi Mike,</FONT></DIV>
<DIV><FONT face="Courier New" color=#0000ff size=2>Thanks for your response. I
hope you can help me find a solution. Below is a description of what I
did:</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" color=#0000ff size=2>I have imported a list of
points as sites and they seem to work fine. I can dsiplay them using the
command:</FONT></DIV>
<DIV><FONT face="Courier New" color=#ff0000 size=2> d.sites type=+
sitefile=points.dtm color=yellow size=3</FONT></DIV>
<DIV><FONT face="Courier New" color=#0000ff size=2>From this I can see that I
have my geographical extents correct.</FONT></DIV>
<DIV><FONT face="Courier New" color=#0000ff size=2>Now I want to convert these
sites to a raster.</FONT></DIV>
<DIV><FONT face="Courier New" color=#0000ff size=2>I use the following
command:</FONT></DIV>
<DIV><FONT face="Courier New" color=#ff0000 size=2> s.surf.rst
input=points.dtm elev=elevation.dtm field=1</FONT></DIV>
<DIV><FONT face="Courier New" color=#0000ff size=2>I then run:</FONT></DIV>
<DIV><FONT face="Courier New" color=#ff0000 size=2> d.rast
elevation.dtm</FONT></DIV>
<DIV><FONT face="Courier New" color=#0000ff size=2>and I get the
error:</FONT></DIV>
<DIV><FONT face="Courier New" color=#0000ff size=2>
<DIV><FONT face="Courier New" color=#ff0000 size=2> WARNING: Fail of
initial read of compressed file [cape.img in user1]</FONT></DIV>
<DIV><FONT face="Courier New" color=#ff0000 size=2> WARNING: unable to
open raster map [cape.img in user1]</FONT></DIV>
<DIV><FONT face="Courier New" color=#ff0000 size=2> ERROR: Not able to
open cellfile for [cape.img]</FONT></DIV>
<DIV>I thought that I might have made a mistake with the command. I tried to
import a raster map.</DIV>
<DIV>I had a tiff file with a tfw file:</DIV>
<DIV><FONT color=#ff0000> r.in.tiff input=/smine.tif
output=cape.img</FONT></DIV>
<DIV>and then:</DIV>
<DIV><FONT color=#ff0000> d.rast cape.img</FONT></DIV>
<DIV>and I get the same error message.</DIV>
<DIV>I have attached the project without the image file as it is quite
big.</DIV>
<DIV> </DIV>
<DIV>Cheers,</DIV>
<DIV>Ross</DIV>
<DIV> </DIV></FONT></DIV></BLOCKQUOTE></BODY></HTML>