Timeline for Batch NDVI calculation with PyQGIS
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 12, 2020 at 21:49 | comment | added | Ricardo | Okay, so I jumped the gun with that last comment! The outputs from this calculation are wrong. The statistics are way off and the output images are all really dark and grainy... any idea what could be wrong? | |
Jun 25, 2020 at 16:01 | history | edited | Ricardo | CC BY-SA 4.0 |
deleted 155 characters in body
|
Jun 25, 2020 at 11:59 | comment | added | Ricardo | Okay, nice one, thanks Ben. Trying to run before I can walk! | |
Jun 25, 2020 at 6:10 | comment | added | Ben W |
Glad you got it figured out. Just to clarify- you can get rid of the .format(lyr.name()) and just leave it as r.ref = 'r@121' . Same for ir.ref = 'ir@192' . Unless you use a {} place holder, it's doing absolutely nothing! Evidently it's not needed here so that part of my answer is not useful. See: w3schools.com/python/ref_string_format.asp to understand how string formatting in Python works.
|
|
Jun 24, 2020 at 20:16 | history | answered | Ricardo | CC BY-SA 4.0 |