Page 1 of 1

Problems encountered when processing landsat-8 data

Posted: Fri Sep 18, 2020 11:40 am
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

Re: Problems encountered when processing landsat-8 data

Posted: Mon Sep 21, 2020 8:06 am
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

Re: Problems encountered when processing landsat-8 data

Posted: Mon Sep 21, 2020 1:10 pm
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

Re: Problems encountered when processing landsat-8 data

Posted: Tue Sep 22, 2020 9:57 am
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.

Re: Problems encountered when processing landsat-8 data

Posted: Wed Sep 23, 2020 4:09 am
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

Re: Problems encountered when processing landsat-8 data

Posted: Mon Oct 12, 2020 7:37 am
by fsteinmetz
Sorry, I have not received your images.
Cheers,
François