Question about running Polymer on Linux machine
Posted: Wed Jan 05, 2022 11:27 am
Hi
I am trying to run Polymer on a Linux machine, but I have encountered a problem. So far I have installed the dependencies and created the Polymer environment using the following (without any error messages)
conda create –n polymer –c conda-forge mamba
conda activate polymer
mamba env update –f environment.yml
after this I have downloaded auxiliary data, I have created the directory for the ancillary data to be dowloaded, and I have converted the files to C and compiled the code with
make auxdata_all
make
make ancillary
So far, no problems. However, as soon as I try to run the first block of my Jupiter notebook code (using the polymer environment), the code crashes on this line
from polymer.main import run_atm_corr, Level1, Level2
with an error (bellow). Is there someone that could help?
Thank you for your time
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
/tmp/ipykernel_1364341/3681058688.py in <module>
4
5 import sys, os, time
----> 6 from polymer.main import run_atm_corr, Level1, Level2
7 from polymer.ancillary_era5 import Ancillary_ERA5
8 from polymer.level1_msi import Level1_MSI
~/AtmCorr/Polymer/polymer-v4.14/polymer/main.py in <module>
16 from polymer.level2 import Level2
17 from polymer.bodhaine import rod
---> 18 from polymer.polymer_main import PolymerMinimizer
19 from polymer.water import ParkRuddick, MorelMaritorena
20 from warnings import warn
ModuleNotFoundError: No module named 'polymer.polymer_main'
I am trying to run Polymer on a Linux machine, but I have encountered a problem. So far I have installed the dependencies and created the Polymer environment using the following (without any error messages)
conda create –n polymer –c conda-forge mamba
conda activate polymer
mamba env update –f environment.yml
after this I have downloaded auxiliary data, I have created the directory for the ancillary data to be dowloaded, and I have converted the files to C and compiled the code with
make auxdata_all
make
make ancillary
So far, no problems. However, as soon as I try to run the first block of my Jupiter notebook code (using the polymer environment), the code crashes on this line
from polymer.main import run_atm_corr, Level1, Level2
with an error (bellow). Is there someone that could help?
Thank you for your time
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
/tmp/ipykernel_1364341/3681058688.py in <module>
4
5 import sys, os, time
----> 6 from polymer.main import run_atm_corr, Level1, Level2
7 from polymer.ancillary_era5 import Ancillary_ERA5
8 from polymer.level1_msi import Level1_MSI
~/AtmCorr/Polymer/polymer-v4.14/polymer/main.py in <module>
16 from polymer.level2 import Level2
17 from polymer.bodhaine import rod
---> 18 from polymer.polymer_main import PolymerMinimizer
19 from polymer.water import ParkRuddick, MorelMaritorena
20 from warnings import warn
ModuleNotFoundError: No module named 'polymer.polymer_main'