Error Processing Landsat-8

Post Reply
asim1212
Posts: 5
Joined: Mon Jul 29, 2019 10:51 am
company / institution: UiT, Norway
Location: Tromso

Error Processing Landsat-8

Post by asim1212 »

Hi,

I am running Polymer on OLI-8, it gives the following error.


/Data/mas108/ResearchData/IFT/EarthObservation/ArvenEtterNansen/workspace/muhammad/L8_S2_L1_2019/Data_2018/LC81790082018202LGN00
LC81790082018202LGN00
/Data/mas108/ResearchData/IFT/EarthObservation/ArvenEtterNansen/workspace/muhammad/L8_S2_L1_2019/Data_2018/Polymer_OLI/LC81790082018202LGN00
Reading coordinates from /Data/mas108/ResearchData/IFT/EarthObservation/ArvenEtterNansen/workspace/muhammad/L8_S2_L1_2019/Data_2018/LC81790082018202LGN00/LC08_L1TP_179008_20180721_20180731_01_T1_B1.TIF
Image size is 8961x8981
Traceback (most recent call last):
File "/Data/mas108/ResearchData/IFT/EarthObservation/ArvenEtterNansen/workspace/muhammad/Polymer/polymer-v4.13/Run_Polymer.py", line 69, in <module>
run_atm_corr(Level1_OLI(filename,
File "/Data/mas108/ResearchData/IFT/EarthObservation/ArvenEtterNansen/workspace/muhammad/Polymer/polymer-v4.13/polymer/level1_landsat8.py", line 147, in __init__
self.init_geometry()
File "/Data/mas108/ResearchData/IFT/EarthObservation/ArvenEtterNansen/workspace/muhammad/Polymer/polymer-v4.13/polymer/level1_landsat8.py", line 214, in init_geometry
assert len(filenames_sensor) == 1, 'Error, sensor angles file missing ({})'.format(str(filenames_sensor))
AssertionError: Error, sensor angles file missing ([])

Please advise.
User avatar
fsteinmetz
Site Admin
Posts: 215
Joined: Fri Sep 07, 2018 1:34 pm
company / institution: Hygeos
Location: Lille, France
Contact:

Re: Error Processing Landsat-8

Post by fsteinmetz »

Hello,
Indeed you need to generate the angles file. The documentation in level1_landsat8.py is a bit succinct, so here it is with some more details :

The command to run to generate the angles file is : l8_angles LC08_..._ANG.txt BOTH 1 -b 1

l8_angles is available at:
https://www.usgs.gov/land-resources/nli ... ient-files

It can be compiled with the following commands:

Code: Select all

wget https://landsat.usgs.gov/sites/default/files/documents/L8_ANGLES_2_7_0.tgz
tar xzf L8_ANGLES_2_7_0.tgz
rm -fv L8_ANGLES_2_7_0.tgz
cd l8_angles
make
cd ..
Cheers,
François
Post Reply