Problems encountered when processing landsat-8 data

Post Reply
dingky
Posts: 23
Joined: Tue Jun 30, 2020 3:56 am
company / institution: China University of Geosciences
Location: China

Problems encountered when processing landsat-8 data

Post by dingky »

Hi everyone,


I am executing the following code:

Code: Select all

./polymer_cli.py /home/ding/data/LC81260382015287LGN01/ /home/ding/data/outfile/lc8_20151014.hdf
GGet the following error message, how to solve it:

Code: Select all

Image size is 7741x7871
Traceback (most recent call last):
  File "./polymer_cli.py", line 34, in <module>
    run_atm_corr(Level1(args.input_file),
  File "/home/ding/polymer-v4.13/polymer/main.py", line 496, in run_atm_corr
    with level2 as l2, level1 as l1:
  File "/home/ding/polymer-v4.13/polymer/level1.py", line 113, in __enter__
    self.level1 = L1(self.filename, **self.kwargs)
  File "/home/ding/polymer-v4.13/polymer/level1_landsat8.py", line 156, in __init__
    self.init_geometry()
  File "/home/ding/polymer-v4.13/polymer/level1_landsat8.py", line 225, in init_geometry
    assert len(filenames_sensor) == 1, 'Error, sensor angles file missing ({})'.format(str(filenames_sensor))
AssertionError: Error, sensor angles file missing ([])
Best regards,

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

Re: Problems encountered when processing landsat-8 data

Post by fsteinmetz »

Hi,
Processing landsat8 requires that the solar and sensor angles are calculated beforehand. This requires applying the program "l8angles" available on https://www.usgs.gov/land-resources/nli ... ient-files
"l8angles" must be applied with the following command : l8_angles LC08_..._ANG.txt BOTH 1 -b 1 (see level1_landsat8.py)
Cheers,
François
dingky
Posts: 23
Joined: Tue Jun 30, 2020 3:56 am
company / institution: China University of Geosciences
Location: China

Re: Problems encountered when processing landsat-8 data

Post by dingky »

Hi fsteinmetz,


Thank you very much for your answers, can you talk more about it, I did not understand how to use

Code: Select all

the l8_angles LC08_..._ANG.txt BOTH 1 -b 1 code

Kind regards,

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

Re: Problems encountered when processing landsat-8 data

Post by fsteinmetz »

The l8angles code is available at this address : https://landsat.usgs.gov/sites/default/ ... _2_7_0.tgz
Documentation is here : https://www.usgs.gov/core-science-syste ... elated_con

It must be downloaded, compiled, and run on the txt file with the provided command.
dingky
Posts: 23
Joined: Tue Jun 30, 2020 3:56 am
company / institution: China University of Geosciences
Location: China

Re: Problems encountered when processing landsat-8 data

Post by dingky »

Hi fsteinmetz,

Thank you for your reply!
I am in the process of processing landsat-8 data
Image
After data processing
Image
Is this result normal?


Kind regards,

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

Re: Problems encountered when processing landsat-8 data

Post by fsteinmetz »

Sorry, I have not received your images.
Cheers,
François
Post Reply