rio-toa icon indicating copy to clipboard operation
rio-toa copied to clipboard

Landsat 5 coverage?

Open gzitzlsb-it4i opened this issue 4 years ago • 1 comments

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:

  1. Make the thermal constants string a wild card, e.g. "*THERMAL_CONSTANTS". To accept both LS8 and LS5 (and maybe other Landsat products?).
  2. Mention in the README that LS5 would also work. I was almost turned down by just reading LS8 there.

Thank you!

gzitzlsb-it4i avatar Mar 07 '21 22:03 gzitzlsb-it4i

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.

gzitzlsb-it4i avatar Aug 08 '22 15:08 gzitzlsb-it4i