Thanks a lot to everyone who answered my question on how to import PICT/TIFF
files to grass4.0. Here I try to summarize and comment the different alternatives.
First, let me state the problem: to import PICT/TIFF files in a way as automated
as possible.
1. The only satisfactory way to import any file to grass4.0 is r.in.ascii, because
it is the only program that creates all supporting files without messing up the
user. Unfortunately there is not pbm utility able to convert PICT/TIFF files to
ascii, so no way to use r.in.ascii.
2. The alternative is to import the raw binary file. This can be done either
converting the PICT/TIFF file to binary way pbm or just saving as such if the software used for digitizing supports this format (Adobe PhotoShop does). Then
the problem is that you have to run r.support to create the supporting files and directory structure, which has to be done interactively. If you have just one image, this can be done wth little pain; for any number higher than 1, though, this becomes an absurd waiste of time.
3. The intermediate solution: to create an auxiliary raster with the same name
using r.mapcalc, then copy the binary file to the cell directory: the so imported binary file overrides the auxiliary and takes advantage of its supporting files and directory structure. This can be automated in a script without too much
pain.
4. The good solution: write r.in.pict and r.in.tiff: for this the information
provided by Pat Dunlavey is a good start point. Anybody on the p list would do it?
Thanks again,
Agus
Importing PICT/TIFF:summary
From kostello Fri Jul 30 11:54:58 1993
Sender: grass-lists-owner@moon.cecer.army.mil.
Reply-To: grassu-list@moon.cecer.army.mil.
Precedence: Bulk
Date: Fri, 30 Jul 1993 11:54:58
To: grassu-list@moon.cecer.army.mil
Subject: Re: Noninteractive labeling of area
X-Lines: 35
Status: O
Content-Length: 527
Lines: 21
I am seeking a method to noninteractively label the
area inside a rectangle. I want to apply the rectangle
as a mask later. I would appreciate any suggestions.Thank you.
Karen Bryant
I faced a similar problem a few months ago. In my case I was
fortunate enough to know the location of one internal point
for each area to be labelled. Given that situation I did the
following to create an attribute file:
From a file that looked like this:
118:16:11W 34:16:20N 101100
118:17:08W 34:15:04N 101200