I would like to use ACOLITE atmospheric correction with python, however, I cannot install pyhdf.

The RuntimeError is following:

RuntimeError: Cannot find required HDF4 DLLs -- check LIBRARY_DIRS

I was googling, however I didn't find any specific answer for the error.

What should I do?

I am a Windows user. However, I can use in an emergency the WSL Debian.


1 Answer 1


With help of @Mikkel Lydholm Rasmussen, I've found the answer.

The main issue is in installing pyhdf with help of pip, but it should be successful with:

the conda install -c conda-forge pyhdf

Don't worry to install Anaconda beside the solo python installation and use Anaconda Prompt for the manipulation. I also recommend installing other packages in the new environment:

conda create -n my_env pyhdf ipykernel

Generally, other packages (GDAL) for ACOLITE will be incompatible with Anaconda standard distribution.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.