[GRASSLIST:4165] Re: m.in.e00 problem?

Markus Neteler neteler at itc.it
Fri Jul 26 11:32:38 EDT 2002


On Fri, Jul 26, 2002 at 08:33:14AM -0700, Jeff D. Hamann wrote:
> I've been trying to import some e00 files using the following step....
> 
> Mapset <PERMANENT> in Location <jackson-stp>
> GRASS-GRID > m.in.e00 input=b20.e00 action=raster verbose=3
> GRASS-GRID > d.mon start=x0
> using default visual which is TrueColor
> ncolors: 65536
> Graphics driver [x0] started
> GRASS-GRID > r.colors map=b20 color=grey
> Color table for [b20] set to grey
> GRASS-GRID > d.rast b20
> 100%
> 
> and the resulting image is all white...
> 
> the r.rast function returns
> 
> GRASS-GRID > r.info b20
> +---------------------------------------------------------------------------
> -+
> | Layer: b20 Date: Fri Jul 26 08:14:19 2002 |
> | Mapset: PERMANENT Login of Creator: hamannj |
> | Location: jackson-stp |
> | DataBase: /usr/home/hamannj/projects/jackson/grassdata |
> | Title: ( b20 ) |
> |---------------------------------------------------------------------------
> -|
> | |
> | Type of Map: raster Number of Categories: 255 |
> | Data Type: CELL |
> | Rows: 2751 |
> | Columns: 3528 |
> | Total Cells: 9705528 |
> | Projection: State Plane (zone 0) |
> | N: 120498.70412715 S: 37936.60595648 Res: 30.01166782 |
> | E: 1367616.71679898 W: 1261735.55273279 Res: 30.01166782 |
> | Range of data: min = -2147483647 max = 255 |
> | |
> | Data Source: |
> | |
> | |
> | |
> | Data Description: |
> | generated by m.in.e00 |
> | |
> | |
> +---------------------------------------------------------------------------
> -+
> 
> which doesn't seem to be correct as the minimum value is a very large
> negative number. This is a grid that was imported from a landsat7 tif image
> (i would try to import it directly into grass itself but I'm having problems
> with gdal on my freebsd machine right now and need to do a bunch of port
> upgrades...
> 
> Is there some step I am leaving out here?

This large-number-m.in.e00-rster-import bug was fixed in
5.0pre4 (are you using an earlier version?).

For now you can use r.null and set
-2147483647
which is one of the ESRI "NULL" values to
NULL.

Best regards

 Markus



More information about the grass-user mailing list