Closed GeorgeMJ23 closed 3 months ago
You might miss a dependency. Try running
from satpy.utils import check_satpy
check_satpy()
and/or rerun the whole script while adding
from satpy.utils import debug_on
debug_on()
somewhere near the top
Hi @GeorgeMJ23 I just tried with the indicated files e.g.
scn = Scene(filenames=["W_XX-EUMETSAT-Darmstadt,IMG+SAT,MTI1+LI-2-LFL--FD--CHK-BODY--ARC-NC4E_C_EUMT_20240731091020_L2PF_OPE_20240731090007_20240731091007_N__T_0055_0001.nc"], reader="li_l2_nc")
and it worked for me, so I also suspect an issue with missing dependencies, let us know if you find out more with Gerrit's suggestions :)
Hi @GeorgeMJ23 , I'm closing this issue as it is likely related to your conda env/missing dependencies. Feel free to reopen if you have further issues!
In the Real Time Lightning Data Visualisation with Python article of Medium I'm trying to run the code in there, but it gives me an error related to satpy.
The code takes MTG-I1 LI data for some period of time from EUMETSAT in .nc form and downloads them and then draws them on a map. But something is wrong and satpy doesn't recognize the data.
The code is: (you must have some EUMETSAT credentials(keys) for this to work) (I did not give all the code, but only all the code up to the point it gave the error, as the remaining code is irrelevant.)
And now it returns the error in terminal:
Don't know how to open the following files: {'point_data\W_XX-EUMETSAT-Darmstadt,IMG+SAT,MTI1+LI-2-LFL--FD--CHK-BODY--ARC-NC4E_C_EUMT_20240731091020_L2PF_OPE_20240731090007_20240731091007_NT_0 055_0001.nc', 'point_data\W_XX-EUMETSAT-Darmstadt,IMG+SAT,MTI1+LI-2-LFL--FD--CHK-BODY--ARC-NC4E_C_EUMT_20240731160022_L2PF_OPE_20240731155007_20240731160007_NT_0096_0001.nc' etc... listing all the other files in this folder that are valid .nc files I can open with other programs.
With Visual Studio Code GUI giving the error:
What is wrong here?