Hi everybody,
I have installed on windows 10 Anaconda 4.2.0 64-bit along with Sen2Cor 2.3.1 and SNAP 5.0.
When trying to run sen2cor in SNAP, following error message appears:
ImportErro: No modeule named osgeo.gdal_array<<
What do I have to do to get the thing right?
Any help very apreciated,
Sincerely,
gábor
ABraun
April 27, 2017, 6:07am
#2
osgeo is actually installed with Anaconda. Do you have other versions of Python installed?
What happens when you type Python
in your command line?
Hi Andreas,
thank you for your help! Here the info, that appears, when typing “Python”:
Sincerely,
gábor
ABraun
April 27, 2017, 10:33am
#4
that indicates that the correct python is addressed.
Now make sure that the correct python (Anaconda2) executable is found by sen2cor:
See point 4 here:
It's really hard to detect errors from the distance so I just can tell how sen2cor works for me:
Installing sen2cor Download sen2cor.zip, exctract and run python setup.py install [image]
Downloading and extracting S2 data in C:\Temp\S2\S2A_MSIL1C_20170410T103021_N0204_R108_T32UMU_20170410T103020 Keeping the full path is crucial Open it via File > import > Optical Sensors > Sentinel-2 > S2M-SI S2A
[image]
Display in SNAP
[image]
Adjusting path names under Tools > Manage external Too…
Hi Andreas,
I could see, that there was no osgeo folder installed in the “site-packages” folder. I ran the command “conda install gdal” and the folder was installed.
I ran into an new problem, when running sen2cor (UnicodeDecodeError), bt I will open a new topic for that. This topic can be closed.
Sincerely,
gábor
Hi Andreas, thank you for the detailled instructions to run sen2cor.
This will be valuable when sucessfully running sen2cor.
Sincerely,
gábor