[GRASS-user] Landsat color correction fails with "Segmentation fault" in GRASS 6.3

Hamish,

Here are the outputs:

  1. GRASS 6.3.0 (Romania):~ > r.univar -ge RGB321.3@marius perc=98
    n=68587026
    null_cells=3781910
    min=58
    max=255
    range=197
    mean=181.261
    mean_of_abs=181.261
    stddev=36.808
    variance=1354.83
    coeff_var=20.3067
    sum=12432135110
    Segmentation fault

  2. GRASS 6.3.0 (Romania):~ > g.region -p
    projection: 99 (sterea)
    zone: 0
    datum: ** unknown (default: WGS84) **
    ellipsoid: a=6378245 es=0.006693421622965943
    north: 773383.051
    south: 194663.051
    west: 103791.364
    east: 904111.364
    nsres: 80
    ewres: 80
    rows: 7234
    cols: 10004
    cells: 72368936

  3. After setting DEBUG=1
    GRASS 6.3.0 (Romania):~ > i.landsat.rgb red=RGB321.3@marius green=RGB321.2@marius blue=RGB321.1@marius
    Processing RGB321.3@marius
    Segmentation fault
    D1/1: RGB321.3@marius: min=108 max=
    ERROR: bad rule (syntax error): white
    Processing RGB321.2@marius
    Segmentation fault
    D1/1: RGB321.2@marius: min=129 max=
    ERROR: bad rule (syntax error): white
    Processing RGB321.1@marius
    Segmentation fault
    D1/1: RGB321.1@marius: min=137 max=
    ERROR: bad rule (syntax error): white

I am not sure why it says “datum: unknown,” it’s the “Dealul Piscului 1970” datum (using the EPSG 31700). I don’t think it’s related to the error though.
Thanks for looking into it.

Marius

Hamish wrote: