CNES / swot-hydrology-toolbox

GNU Lesser General Public License v3.0
54 stars 20 forks source link

can not run proc_sisimp.py in default mode #15

Open alihakimi68 opened 1 year ago

alihakimi68 commented 1 year ago

In July 2023 I ran SWOT hydrology toolbox on a virtual linux and it worked fine with no problem. Today I want to run it again, when I run command $ python $SWOT_HYDROLOGY_TOOLBOX/sisimp/proc_sisimp.py rdf/parameter_sisimp.rdf I receive an error:

Traceback (most recent call last): File "/home/optimus/swot-hydrology-toolbox/sisimp/proc_sisimp.py", line 25, in import sisimp_processing as sisimp_ps File "/home/optimus/swot-hydrology-toolbox/sisimp/sisimp_processing.py", line 35, in import sisimp_function as sisimp_fct File "/home/optimus/swot-hydrology-toolbox/sisimp/sisimp_function.py", line 24, in import write_polygons as write_poly File "/home/optimus/swot-hydrology-toolbox/sisimp/write_polygons.py", line 41, in import proc_pixc File "/home/optimus/swot-hydrology-toolbox/sisimp/proc_pixc.py", line 24, in import product_netcdf as my_nc File "/home/optimus/swot-hydrology-toolbox/sisimp/product_netcdf.py", line 22, in import cnes.common.lib.my_netcdf_file as my_nc ModuleNotFoundError: No module named 'cnes'

the orbits are created successfully and I checked them in a GIS software. Screenshot from 2023-09-14 09-27-07

alihakimi68 commented 1 year ago

There is a list of requirements in: processing/src/cnes/sas/requirements.txt that should be installed. And that will fix the problem.