how to run the polymer

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

how to run the polymer

Post by dingky »

I use IDLE to run polyme_cli.py to no avail.Excuse me, how to use polymer
User avatar
fsteinmetz
Site Admin
Posts: 101
Joined: Fri Sep 07, 2018 1:34 pm
company / institution: Hygeos
Location: Lille, France
Contact:

Re: how to run the polymer

Post by fsteinmetz »

Hi,
I can not provide help about IDLE, but if you provide me with more information about your issue with polymer_cli.py, I would be happy to help.
Cheers,
François
dingky
Posts: 5
Joined: Tue Jun 30, 2020 3:56 am
company / institution: China University of Geosciences
Location: China

Re: how to run the polymer

Post by dingky »

I had created an environment and installed required dependencies.however,I was trying to run polymer on sentinel-2 images,there was error message.
runing code: python ./polymer_cli.py S2A_MSIL1C_20170402T024541_N0204_E132_T50RNV_20200727T095734.SAFE

I got the following information:
Traceback (most recent calll last):

File "/home/dingky/ . local/lib/python3.8/site- packages/polymer-v4.13/polymer_ cli.py", line 11, in <module>
from polymer .main import run_ atm_ corr , Level1, Level2
File " /home/dingky/ . local/lib/ python3.8/site packages/polymer-v4.13/polymer /main.py", line 18, in <module>
from polymer . polymer_ main import PolymerMinimizer
ModuleNotFoundError: NO module namedpolymer . polymer_ main .
think you

kind regards

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

Re: how to run the polymer

Post by fsteinmetz »

Dear Ding,
You need to compile the program first, using the command "make".
More information can be found in the file README.md.
Cheers,
François
dingky
Posts: 5
Joined: Tue Jun 30, 2020 3:56 am
company / institution: China University of Geosciences
Location: China

Re: how to run the polymer

Post by dingky »

Dear François,

Thank you very much for your reply.I've completed to compile the program by
$ make ./polymer4.13/
.Unfortunately, this error still occurs. My Ubuntu system has two versions of python, is it related to this? Thanks for the answers and patience.



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

Re: how to run the polymer

Post by fsteinmetz »

I doubt your command has succeeded, because the command should be "make", in the directory containing the makefile, not "make ./polymer4.13/".
dingky
Posts: 5
Joined: Tue Jun 30, 2020 3:56 am
company / institution: China University of Geosciences
Location: China

Re: how to run the polymer

Post by dingky »

Dear François,

Thanks for your reply.
I think i get it.Thank you very much for your help!
kind regards
ding
Post Reply