Page 1 of 1

Facing problem in L8 correction

Posted: Thu Jun 06, 2024 12:03 pm
by majed07
Hi,

I am facing problem in generating L8 correction in Linux Mageia.

First, I have followed the following code to generate angles.

command line
cd /home/majed/polymer

wget https://landsat.usgs.gov/sites/default/ ... _2_7_0.tgz
tar xzf L8_ANGLES_2_7_0.tgz
rm -fv L8_ANGLES_2_7_0.tgz
cd l8_angles
make
./l8_angles /home/majed/L8/LC08_L1TP_207024_20220314_20220322_02_T1/LC08_L1TP_207024_20220314_20220322_02_T1_ANG.txt BOTH 1 -b 1

The code generate 4 files “sensor_B01”,“solar_B01”. Later i copied 4 files to my LANDSAT8 directory (home/majed/L8/LC08_L1TP_207024_20220314_20220322_02_T1), then run python by using following code. However it still showing unable to detect sensors.

command line
python3 polymer_cli.py home/majed/l8/LC08_L1TP_207024_20220314_20220322_02_T1 out.nc

Please help.

Many thanks.

Re: Facing problem in L8 correction

Posted: Tue Jun 11, 2024 3:09 pm
by fsteinmetz
Hello,
Here the issue is not related to the use of the angle files, but to the file autodetection of landsat products in polymer_cli.py.
I have added a fix on github, hopefully it fixes this issue.
Cheers, François