error of processing landsat8

Post Reply
tianshang123
Posts: 6
Joined: Fri Dec 04, 2020 2:43 am
company / institution: naikai_university
Location: tianjin

error of processing landsat8

Post 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.
User avatar
fsteinmetz
Site Admin
Posts: 315
Joined: Fri Sep 07, 2018 1:34 pm
company / institution: Hygeos
Location: Lille, France
Contact:

Re: error of processing landsat8

Post 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
Post Reply