Opened 9 years ago
Last modified 6 years ago
#3083 new enhancement
allow single band processing with i.landsat.toar
Reported by: | mankoff | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.6.2 |
Component: | Raster | Version: | unspecified |
Keywords: | Cc: | mankoff@… | |
CPU: | Unspecified | Platform: | Unspecified |
Description
If i.landsat.toar
could work with a single band, workflows could be 12x as efficient. Only 1 band could be downloaded, imported, and processed, saving time and disk space.
Attachments (1)
Change History (13)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Sorry, to be precise, the patch handles one- and two-digit band numbers. For example 1 or 2 or 3 and 11 or 12 as well. But it won't handle 61 and 62 (Landsat 7).
comment:3 by , 9 years ago
I didn't intend to remove the standard functionality. That error is now fixed in the updated patch. Perhaps this should be considered a bad hack that works for L8 and not very well for L7, as opposed to a patch.
by , 9 years ago
Attachment: | i.landsat.toar.diff added |
---|
Patch updated - all bands processed if band
keyword not set.
comment:4 by , 8 years ago
Milestone: | 7.0.5 → 7.3.0 |
---|
follow-up: 7 comment:6 by , 8 years ago
Can anyone please review the attachment (...a few lines)? Thanks
comment:7 by , 8 years ago
Replying to neteler:
Can anyone please review the attachment (...a few lines)? Thanks
IIUC, the 'band' parameter takes the number of the band in the list of bands. This might not be intuitive for people, who when asked which band might say '61' (or '80' for those landsat images where bands are numbered with two digits). At least this would need very clear documentation both in the parameter description and the man page.
Also, I don't think this is explicit in our C submitting rules, but AFAIK, custom in GRASS has it that we do not use inline variable declarations. So the line
int i0, i1;
should come at the beginning with all the other declarations.
Other than that, I agree with Yann that this is a quite trivial patch.
I haven't tested, though.
comment:9 by , 7 years ago
Milestone: | 7.4.1 → 7.4.2 |
---|
comment:10 by , 6 years ago
Milestone: | 7.4.2 → 7.6.0 |
---|
All enhancement tickets should be assigned to 7.6 milestone.
Just tested. The patch deals with one-digit enumerated bands but it won't handle B61 and B62 (for Landsat 7). As well, it will break the "normal" functionality in which the module loops over all bands. And, finally, will it handle a "BQA" band (for Landsat 8 for example)?
Thanks for doing this!