<HTML>
<HEAD>
<TITLE>Slicing tif files</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN DEFANGED_STYLE='font-size:12.0px'>Dear list,<BR>
<BR>
I&#8217;m trying to read in a greyscale georefrenced TIF file. &nbsp;I have successfully read in georeferenced color TIF files and sliced them into smaller sections, but I am having a great deal of trouble with this greyscale image.<BR>
<BR>
First off I realized after playing with it that the greyscale required using d.rast while the color needed d.rgb.. So far ok..<BR>
<BR>
The color file was in lat/long so I read it into a lat/long location. &nbsp;The greyscale seems to be UTM, so I tried both UTM and XY locations. &nbsp;Both work for reading in and doing a d.rast and writing the file out as a PNG, but I can&#8217;t seem to slice the files up into smaller chunks. &nbsp;<BR>
<BR>
When I first read in the file, I call :<BR>
r.in.gdal &#8211;o &#8211;e input=/Volumes/Recent/SB/p663east.tif output=temp<BR>
<BR>
g.region &#8211;p gives me : &nbsp;<BR>
GRASS 6.0.0 (LocationText):~ &gt; g.region -p<BR>
projection: 0 (x,y)<BR>
zone: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0<BR>
north: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3821818.5<BR>
south: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3806127.5<BR>
west: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;251135.5<BR>
east: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;276337.5<BR>
nsres: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1<BR>
ewres: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1<BR>
rows: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;15691<BR>
cols: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;25202<BR>
<BR>
d.mon start=PNG<BR>
d.rast &#8211;o map=temp<BR>
d.mon stop=PNG<BR>
<BR>
And I get a nice grainy map of my original tif file<BR>
<BR>
Then I try <BR>
g.region n=3815204.19 s=3812771.11 w=235544.84 e=238598.83<BR>
<BR>
GRASS 6.0.0 (LocationText):~ &gt; g.region -p<BR>
projection: 0 (x,y)<BR>
zone: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0<BR>
north: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3815204.19<BR>
south: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3812771.11<BR>
west: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;235544.84<BR>
east: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;238598.83<BR>
nsres: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0.09999918<BR>
ewres: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0.09999967<BR>
rows: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;24331<BR>
cols: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;30540<BR>
<BR>
d.mon start=PNG<BR>
d.rast &#8211;o map=temp<BR>
d.mon stop=PNG<BR>
<BR>
<BR>
And now I get a nice black image for a PNG file...<BR>
<BR>
Same thing happens in the UTM location..<BR>
<BR>
I&#8217;m stumped.<BR>
<BR>
Thanks for your patience...<BR>
<BR>
- sharyn</SPAN></FONT>
</BODY>
</HTML>