Page 1 of 1

Use this for Sentinel 3

Posted: Wed Feb 05, 2020 11:59 am
by academicgamer
Hi,
I am tring to use polymer v4.12 through this commond but I got these erros


First, I using this commond

Code: Select all

huang@ubuntu:~/Desktop/polymer-v4.12/polymer-v4.12$ python setup.py 
, but I don't know is it correctly install. It shows that


Compiling polymer/clut.pyx because it changed.
Compiling polymer/neldermead.pyx because it changed.
Compiling polymer/polymer_main.pyx because it changed.
Compiling polymer/water.pyx because it changed.
[1/4] Cythonizing polymer/clut.pyx
/usr/local/lib/python3.6/dist-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /home/huang/Desktop/polymer-v4.12/polymer-v4.12/polymer/clut.pxd
tree = Parsing.p_module(s, pxd, full_module_name)
[2/4] Cythonizing polymer/neldermead.pyx
/usr/local/lib/python3.6/dist-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /home/huang/Desktop/polymer-v4.12/polymer-v4.12/polymer/neldermead.pxd
tree = Parsing.p_module(s, pxd, full_module_name)
[3/4] Cythonizing polymer/polymer_main.pyx
/usr/local/lib/python3.6/dist-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /home/huang/Desktop/polymer-v4.12/polymer-v4.12/polymer/polymer_main.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
[4/4] Cythonizing polymer/water.pyx
/usr/local/lib/python3.6/dist-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /home/huang/Desktop/polymer-v4.12/polymer-v4.12/polymer/water.pxd
tree = Parsing.p_module(s, pxd, full_module_name)
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help

error: no commands supplied


Secondly, It is hard for me to understand what to do after that. I want to know how to use the commond

Code: Select all

./polymer_cli.py <level1> <level2>
Is it used like python? Such as

Code: Select all

python./polymer_cli.py <level1> <level2>
However, I am unable to run the algorithm. Can someone please suggest something?


Best,
Kim

Re: Use this for Sentinel 3

Posted: Thu Feb 06, 2020 10:37 am
by fsteinmetz
Dear Kim,
Please use the command make all for the compilation. More information can be found in the README.
Kind regards,
François

Re: Use this for Sentinel 3

Posted: Thu Feb 06, 2020 2:52 pm
by academicgamer
Dear François,

Thanks so much for solving these problem. I successfully finished it. But I have some new problems now.

When I commond

Code: Select all

 python polymer_cli.py S3A_OL_2_LFR____20200204T041704_20200204T042004_20200205T083617_0179_054_275_4140_LN1_O_NT_002.SEN3 result.hdf
it return me that

Traceback (most recent call last):
File "polymer_cli.py", line 34, in <module>
run_atm_corr(Level1(args.input_file),
File "/home/huang/Desktop/polymer-v4.12/polymer-v4.12/polymer/level1.py", line 36, in __init__
self.autodetect()
File "/home/huang/Desktop/polymer-v4.12/polymer-v4.12/polymer/level1.py", line 61, in autodetect
raise Exception('Unable to detect sensor for file "{}"'.format(b))
Exception: Unable to detect sensor for file "S3A_OL_2_LFR____20200204T041704_20200204T042004_20200205T083617_0179_054_275_4140_LN1_O_NT_002.SEN3"

Is the Senser-3 Date wrong? Dose the level1 file is a folder?

Thanks a lot in advance for your help,
Best regards

Kim

Re: Use this for Sentinel 3

Posted: Thu Feb 06, 2020 6:03 pm
by fsteinmetz
The problem here is that S3A_OL_2_LFR... is a level2 product.
You need to apply Polymer to a level1 product, thus starting with S3A_OL_1_ or S3B_OL_1_.
Otherwise it should work as you did.
Kind regards,
François