Landsat 5 coverage?
First, thank you very much for the great tool set! I'm using it for processing Landsat 5 L1 products, which works quite well as I can tell:
$ rio toa reflectance --dst-dtype 'uint8' -p -t './LT05._B{b}.TIF' ...
Also TOA brightness temp. works, with a minimal change to "rio-toa/rio_toa/brightness_temp.py": K1 = toa_utils.load_mtl_key(mtl, ['L1_METADATA_FILE', 'THERMAL_CONSTANTS', 'K1_CONSTANT_BAND'], band) K2 = toa_utils.load_mtl_key(mtl, ['L1_METADATA_FILE', 'THERMAL_CONSTANTS', 'K2_CONSTANT_BAND'], band)
Then I can use it right away: $ rio toa brighttemp -d 'uint8' -t './LT05._B{b}.TIF' ...
I'd suggest two things:
- Make the thermal constants string a wild card, e.g. "*THERMAL_CONSTANTS". To accept both LS8 and LS5 (and maybe other Landsat products?).
- Mention in the README that LS5 would also work. I was almost turned down by just reading LS8 there.
Thank you!
There seems to be no updates on this repo anymore. To anyone interested in Landsat 5 TM TOA correction, we have forked this repo and applied the necessary changes: https://github.com/It4innovations/rio-toa_ls5
I'd still be glad to see this repo here to include support for Landsat 5 TM.