New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Satpy Writer 'geotiff' exists but could not be loaded #928
Comments
You are most likely missing the @mraspaud Maybe we should make the "hidden" debug messages that likely exist more obvious in cases like this. |
Code:
Code Output:
I don't know what the cause of the missing modules is. As far as I remember, I used conda for installing most of the packages. However, the Writer geotiff seems to be OK, but could not be loaded. |
Try running |
It's interesting that
Code output:
ninjotiff.yaml still has some problems. |
Are you running this code from a notebook or interactive environment like Spyder? Maybe you installed rasterio or updated Satpy and needed to restart python? |
I run the codes in Linux Terminal. I will check the issue in another system which is identical to my system. |
@anikfal Any luck in getting this to work? |
@djhoese After installing the missing from satpy import available_writers
available_writers()
Could not import writer config from: ['/home/ah/.conda/envs/newpyth/lib/python3.7/site-packages/satpy/etc/writers/ninjotiff.yaml']
['geotiff', 'cf', 'mitiff', 'scmi', 'simple_image'] But using this writer to convert the data to Geotiff seems not much helpful: from satpy.scene import Scene
from satpy import find_files_and_readers
from datetime import datetime
files = find_files_and_readers(base_dir='/home/ah/MSG10-sdscase/datamsg8',
#start_time=datetime(2019,4,1,9,00),
#end_time=datetime(2019,4,1,9,15),
reader='seviri_l1b_nc')
scn = Scene(filenames=files)
scn.load([10.8])
scn.save_datasets(writer='geotiff') With the errors which seem to be related to the type of the projection:
For my case, using gdal (e.g. gdal_translate) directly, could handle the issue more effectively. |
@anikfal what is the output of |
@anikfal What version of the GDAL C library do you have installed in your environment? What version of rasterio? pyproj? PROJ? This error is from rasterio and is stating that the projection is not valid which is odd since it is coming from the reader. |
@pnuu Output of
@djhoese Versions of the requested libraries: gdal_translate --version
GDAL 2.4.2, released 2019/06/28
conda list | grep -i 'rasterio\|proj\|gdal'
anaconda-project 0.8.3 py_0
libgdal 2.4.2 h04a3d72_6 conda-forge
proj4 6.1.0 he751ad9_2 conda-forge
pyproj 2.2.1 py37hc44880f_0 conda-forge
rasterio 1.0.28 py37hdff7cfa_1 conda-forge |
Sorry, one more, what about the version of |
@djhoese conda list | grep troll
trollimage 1.10.0 <pip>
trollsift 0.3.2 <pip> It is interesting that on my laptop with the regular Fedora 31, due to the lack of a library, |
@anikfal There is a newer version of trollimage (1.11.0) that should fix this issue or at least handle it better. Could you try updating trollimage and see if your code works? |
@djhoese Problem solved. Thank you.
|
Glad it works for you now. Thanks for the update. |
Code:
from satpy import available_writers
available_writers()
Description:
Output of the above code:
Could not import writer config from: ['/home/.../satpy/etc/writers/geotiff.yaml']
Could not import writer config from: ['/home/.../satpy/etc/writers/ninjotiff.yaml']
['mitiff', 'simple_image', 'scmi', 'cf']
Environment Info:
The text was updated successfully, but these errors were encountered: