[GRASSLIST:5558] i.composite problem: gives minmax 1:1, grass5

Philipp Molzer phil at molzer.net
Fri Feb 14 20:17:25 EST 2003


Hi,
Running grass5 on Linux RH8, I've imported a USGS aerial photo in JPEG 
format with

r.in.gdal -o input=294.JPG output=294.JPG

This gives me an imagery group called 294.JPG
and 3 raster files called 294.JPG.1, 294.JPG.2, and 294.JPG.3
Each of the raster files has a data range of 0..255 and is viewable with 
d.rast
I'd like to plot the image with proper colors with d.rast so I first ran
g.region rast=294.JPG.1
r.support -r map=294.JPG.1
r.support -r map=294.JPG.2
r.support -r map=294.JPG.3
and then
i.composite (interactively) on 294.JPG, choosing
b=294.JPG.1
g=294.JPG.2
r=294.JPG.3
colorsteps=10
output=294.JPG.COMP
This did give me a decent color table with a range of 1..1000

The problem is that 294.JPG.COMP has a data range of 1..1
so I get a blank image.

What am I doing wrong?
Phil

The info on each file is below:

--------------030508040504050606000504
Content-Type: text/plain;
 name="294.info.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="294.info.txt"

GRASS:/DATA/GIS/NJ/STATE/ORTHO_PHOTO > r.info 294.JPG.COMP
 +----------------------------------------------------------------------------+
 | Layer:    294.JPG.COMP                   Date: Wed Feb 12 18:34:42 2003    |
 | Mapset:   state1                         Login of Creator: pmolzer         |
 | Location: njstat1                                                          |
 | DataBase: /home/pmolzer/grassdata                                          |
 | Title:     ( 294.JPG.COMP )                                                |
 |----------------------------------------------------------------------------|
 |                                                                            |
 |   Type of Map:  raster              Number of Categories: 1                |
 |   Data Type:    CELL                                                       |
 |   Rows:         7712                                                       |
 |   Columns:      5893                                                       |
 |   Total Cells:  45446816                                                   |
 |        Projection: State Plane (zone 0)                                    |
 |            N:     744029    S:     720894   Res: 2.99987033                |
 |            E:     596069    W:     578389   Res: 3.00016969                |
 |   Range of data:    min =  1 max = 1                                       |
 |                                                                            |
 |   Data Source:                                                             |
 |                                                                            |
 |                                                                            |
 |                                                                            |
 |   Data Description:                                                        |
 |    generated by i.composite                                                |
 |                                                                            |
 |                                                                            |
 +----------------------------------------------------------------------------+

GRASS:/DATA/GIS/NJ/STATE/ORTHO_PHOTO > r.info 294.JPG.1
 +----------------------------------------------------------------------------+
 | Layer:    294.JPG.1                      Date: Wed Feb 12 13:47:41 2003    |
 | Mapset:   state1                         Login of Creator: pmolzer         |
 | Location: njstat1                                                          |
 | DataBase: /home/pmolzer/grassdata                                          |
 | Title:     ( 294.JPG.1 )                                                   |
 |----------------------------------------------------------------------------|
 |                                                                            |
 |   Type of Map:  raster              Number of Categories: 255              |
 |   Data Type:    CELL                                                       |
 |   Rows:         7003                                                       |
 |   Columns:      5342                                                       |
 |   Total Cells:  37410026                                                   |
 |        Projection: State Plane (zone 0)                                    |
 |            N: 766677.2211896    S: 743564.63485144   Res: 3.3003836        |
 |            E: 561405.43303879    W: 543774.78385723   Res: 3.3003836       |
 |   Range of data:    min =  0 max = 255                                     |
 |                                                                            |
 |   Data Source:                                                             |
 |                                                                            |
 |                                                                            |
 |                                                                            |
 |   Data Description:                                                        |
 |    generated by r.in.gdal                                                  |
 |                                                                            |
 |                                                                            |
 +----------------------------------------------------------------------------+

GRASS:/DATA/GIS/NJ/STATE/ORTHO_PHOTO > r.info 294.JPG.2
 +----------------------------------------------------------------------------+
 | Layer:    294.JPG.2                      Date: Wed Feb 12 13:47:58 2003    |
 | Mapset:   state1                         Login of Creator: pmolzer         |
 | Location: njstat1                                                          |
 | DataBase: /home/pmolzer/grassdata                                          |
 | Title:     ( 294.JPG.2 )                                                   |
 |----------------------------------------------------------------------------|
 |                                                                            |
 |   Type of Map:  raster              Number of Categories: 255              |
 |   Data Type:    CELL                                                       |
 |   Rows:         7003                                                       |
 |   Columns:      5342                                                       |
 |   Total Cells:  37410026                                                   |
 |        Projection: State Plane (zone 0)                                    |
 |            N: 766677.2211896    S: 743564.63485144   Res: 3.3003836        |
 |            E: 561405.43303879    W: 543774.78385723   Res: 3.3003836       |
 |   Range of data:    min =  0 max = 255                                     |
 |                                                                            |
 |   Data Source:                                                             |
 |                                                                            |
 |                                                                            |
 |                                                                            |
 |   Data Description:                                                        |
 |    generated by r.in.gdal                                                  |
 |                                                                            |
 |                                                                            |
 +----------------------------------------------------------------------------+

GRASS:/DATA/GIS/NJ/STATE/ORTHO_PHOTO > r.info 294.JPG.3
 +----------------------------------------------------------------------------+
 | Layer:    294.JPG.3                      Date: Wed Feb 12 13:48:15 2003    |
 | Mapset:   state1                         Login of Creator: pmolzer         |
 | Location: njstat1                                                          |
 | DataBase: /home/pmolzer/grassdata                                          |
 | Title:     ( 294.JPG.3 )                                                   |
 |----------------------------------------------------------------------------|
 |                                                                            |
 |   Type of Map:  raster              Number of Categories: 255              |
 |   Data Type:    CELL                                                       |
 |   Rows:         7003                                                       |
 |   Columns:      5342                                                       |
 |   Total Cells:  37410026                                                   |
 |        Projection: State Plane (zone 0)                                    |
 |            N: 766677.2211896    S: 743564.63485144   Res: 3.3003836        |
 |            E: 561405.43303879    W: 543774.78385723   Res: 3.3003836       |
 |   Range of data:    min =  0 max = 255                                     |
 |                                                                            |
 |   Data Source:                                                             |
 |                                                                            |
 |                                                                            |
 |                                                                            |
 |   Data Description:                                                        |
 |    generated by r.in.gdal                                                  |
 |                                                                            |
 |                                                                            |
 +----------------------------------------------------------------------------+





More information about the grass-user mailing list