Opened 13 years ago

Last modified 6 years ago

#1640 new enhancement

r.in.gdal scale/offset not applied

Reported by: alf Owned by: grass-dev@…
Priority: normal Milestone: 7.6.2
Component: Raster Version: 6.4.2
Keywords: r.in.gdal, scale, offset Cc:
CPU: Unspecified Platform: Linux

Description

Hi,

r.in.gdal does not apply scale and offset specified as metadata (and correctly shown by gdalinfo) in the file to be imported.

Maybe it shoud/should not by default, but a specific flag might be advisable.

Best,

Alessandro

Change History (11)

comment:1 by martinl, 13 years ago

Component: DefaultRaster
Keywords: r.in.gdal scale offset added

comment:2 by hamish, 13 years ago

Milestone: 6.4.37.0.0
Type: defectenhancement

Hi,

afaik they are non-standard extensions and just treated as plain-text metadata by GDAL. heuristics might be possible (albeit fragile), but perhaps not advisable to apply them by default. (e.g. makes filtering out transformed non-NULL no-data values a bit more difficult)

for examples of semi-automatic transforms see:

http://grass.osgeo.org/wiki/MODIS#Processing

and exponential flavour: (where Slope and Intercept are present but not y=mx+b)

http://grass.osgeo.org/wiki/MODIS#Processing_2

Hamish

comment:3 by martinl, 8 years ago

Milestone: 7.0.07.0.5

comment:4 by martinl, 8 years ago

Milestone: 7.0.57.3.0

comment:5 by martinl, 8 years ago

Milestone: 7.3.07.4.0

Milestone renamed

comment:6 by stjo, 8 years ago

Hello,

specifying scale and offset directly in r.in.gdal would be helpful for Proba-V NDVI Data too. So you wouldn't have to use the r.mapcalc tool after the import.

Maybe it's a good reason to start this topic again :)

kind regards,

Jonas

comment:7 by neteler, 7 years ago

Milestone: 7.4.07.4.1

Ticket retargeted after milestone closed

comment:8 by neteler, 6 years ago

Milestone: 7.4.17.4.2

comment:9 by martinl, 6 years ago

Milestone: 7.4.27.6.0

All enhancement tickets should be assigned to 7.6 milestone.

comment:10 by martinl, 6 years ago

Milestone: 7.6.07.6.1

Ticket retargeted after milestone closed

comment:11 by martinl, 6 years ago

Milestone: 7.6.17.6.2

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.