Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#4878 closed defect (fixed)

missing value not excluded from range in IDRISI

Reported by: rhijmans Owned by: warmerdam
Priority: normal Milestone: 1.10.0
Component: default Version: 1.9.1
Severity: normal Keywords: RST
Cc: ilucena

Description (last modified by Even Rouault)

When using GDAL 1.9.1 (via writeGDAL or writeRaster in R packages rgdal or raster) to write RST (IDRISI), the missing value flag is not excluded from the range of values, leading to incorrect header files like the one below (in this case the "min value" and "display min" should have been 10, not -9999 the missing value flag).

file format : Idrisi Raster A.1
file title  : 
data type   : real
file type   : binary
columns     : 10
rows        : 10
ref. system : latlong
ref. units  : deg
unit dist.  : 1
min. X      : -180.0000000
max. X      : 180.0000000
min. Y      : -90.0000000
max. Y      : 90.0000000
pos'n error : unspecified
resolution  : 18.0000000
min. value  : -9999
max. value  : 100
display min : -9999
display max : 100
value units : unspecified
value error : unspecified
flag value  : -9999
flag def'n  : missing data

Change History (4)

comment:1 by Even Rouault, 10 years ago

Milestone: 2.0.0
Resolution: fixed
Status: newclosed

r25187 "Idrisi: ignore nodata value when computing min/max of CreateCopy()'ed dataset; also avoid setting unset values of mean and stddev to PAM (#4878)"

comment:2 by Even Rouault, 10 years ago

Description: modified (diff)

comment:3 by Even Rouault, 10 years ago

r25214 "Idrisi: re-add SetStatistics(), and make it call the new SetMinMax() (#4878)"

comment:4 by Even Rouault, 10 years ago

Cc: ilucena added
Note: See TracTickets for help on using tickets.