Timeline for Batch NDVI calculation with PyQGIS
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 24, 2020 at 12:13 | comment | added | Ricardo | Okay Ben, thanks for the input. Close, but no cigar just yet. Your first suggestion seems good, but I'm not sure the string formatting was totally right. It threw up an error about getting an "str" when it expected "QgsRasterCalculatorEntry" So I changed your suggestion ras1.ref = '{}@121'.format(lyr.name()) to r.ref = 'r@121'.format(lyr.name()) and no more errors.... only I'm not getting any output that I can see; just the temp .py file generated. | |
Jun 24, 2020 at 2:57 | history | edited | Ben W | CC BY-SA 4.0 |
added 170 characters in body
|
Jun 24, 2020 at 2:46 | history | answered | Ben W | CC BY-SA 4.0 |