Bug report #11278

Power in raster calculator returns no data values where it should be 0 to 1

Added by Mario Quevedo about 10 years ago. Updated over 9 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Raster Calculator
Affected QGIS version:2.4.0 Regression?:No
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:19576

Description

The following operation with in QGIS 2.4 Raster calculator:

10 ^ (("20091201_20100101_chl_modis_malvinas_ns@1" * 0.0000581)-2)

returns no data values where it should return floating point values between 0 and 1. However, results above 1 are correct. Parsing the operation, only the power section returned wrong numbers.

This operation used to work OK with the same raster layer in plugin Raster Calc, and still works OK in the SAGA raster calculator of the processing toolbox.

I had actually noticed the same behavior in previous versions of QGIS.

output.JPG (77 KB) Mario Quevedo, 2014-09-26 08:52 AM

rastercalculator.JPG (75.7 KB) Mario Quevedo, 2014-09-26 08:52 AM

Associated revisions

Revision c9ff77f9
Added by Nyall Dawson over 9 years ago

Fix power validity test in raster calculator (fix #11278)

Revision 327517d0
Added by Nyall Dawson over 9 years ago

Fix power validity test in raster calculator (fix #11278)

History

#1 Updated by Nyall Dawson over 9 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF