#3932 closed defect (fixed)
i.vi: NDWI unnecessarily requires red band
Reported by: | sbl | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.8.1 |
Component: | Imagery | Version: | git-releasebranch78 |
Keywords: | i.vi | Cc: | |
CPU: | All | Platform: | All |
Description
i.vi requires a red band in any case, even if e.g. NDWI does not need one. So, in order to make the module run, a map has to be given also for the red band. That seems like unexpected behavior to me. Maybe better to leave all input bands optional and add a check for the requested VI if required bands are provided...
Change History (4)
comment:1 by , 5 years ago
comment:2 by , 5 years ago
Related: also the i.wi addon should be likewise updated:
https://github.com/OSGeo/grass-addons/blob/master/grass7/imagery/i.wi/main.c
comment:3 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 by , 5 years ago
Personally, I would say, ideally, i.vi and i.wi would be merged into one module e.g. i.spectral.index, where computation of all sorts of spectral indices is collected...
That would be most convenient for users and it would reduce maintenance burden (though the modules would have to be merged first of course). Worth a new ticket?
Addressed in https://github.com/OSGeo/grass/pull/179