Page 1 of 1

error of processing landsat8

Posted: Mon Apr 19, 2021 9:45 am
by tianshang123
Hello everyone
i try to process landsat8 use polymer_cli.py
the error is:
uppp@Uppp:~/polymer-v4.13$ ./polymer_cli.py /home/uppp/LC08_L1TP_018029_20160808_20170222_01_T1/ /home/uppp/11.nc
Traceback (most recent call last):
File "./polymer_cli.py", line 34, in <module>
run_atm_corr(Level1(args.input_file),
File "/home/uppp/polymer-v4.13/polymer/level1.py", line 36, in __init__
self.autodetect()
File "/home/uppp/polymer-v4.13/polymer/level1.py", line 61, in autodetect
raise Exception('Unable to detect sensor for file "{}"'.format(b))
Exception:Unable to detect sensor for file "LC08_L1TP_018029_20160808_20170222_01_T1"


How to fix this problem? Thank you in advance!

Kind regards,
Tian.

Re: error of processing landsat8

Posted: Thu May 06, 2021 7:23 pm
by fsteinmetz
Hello,
Apologies for the late reply.
There is currently no auto-detection of Landsat8 Level1 files in the command line interface, but you can write a very small python script to process your file (run_atm_corr(Level1_OLI(...), Level2_NETCDF())) ; see example.py.
Kind regards,
François