Skip to content
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

Error reading SEVIRI native file from EUMETSAT API #1440

Closed
cherif2019-dev opened this issue Nov 16, 2020 · 13 comments · Fixed by #1438 or pytroll/pyresample#313
Closed

Error reading SEVIRI native file from EUMETSAT API #1440

cherif2019-dev opened this issue Nov 16, 2020 · 13 comments · Fixed by #1438 or pytroll/pyresample#313

Comments

@cherif2019-dev
Copy link

I downloaded a seviri file from eumetsat api in nat format but when I tried to save the HRV channel in netcdf format I got a satpy error :

ValueError: Chunks do not add up to shape. Got chunks=((3711, 3711, 3714),), shape=(8640,)

Please do you have any idea about this error, Thank you.

@mraspaud
Copy link
Member

@cherif2019-dev thanks for raising this issue.
We need more info in order to be able to help you.
Could you provide the smallest possible script that produces this error, and make the data file available for us to test if needed?
Thanks

@cherif2019-dev
Copy link
Author

cherif2019-dev commented Nov 16, 2020 via email

@mraspaud
Copy link
Member

@cherif2019-dev
the code looks good, could you share your data file?
@strandgren @ameraner do you have an idea?

@cherif2019-dev
Copy link
Author

cherif2019-dev commented Nov 16, 2020 via email

@djhoese djhoese changed the title /pytroll/satpy/issues Error reading SEVIRI native file from EUMETSAT API Nov 16, 2020
@strandgren
Copy link
Collaborator

@cherif2019-dev @mraspaud It seems to be related to the fact that the native HRV data are not padded to full disk when loaded. I'm currently working on this and hope to have it finished in a few days. I did a quick test with my code in development and the lines of code from @cherif2019-dev seem to work fine with that nat-file.

@mraspaud
Copy link
Member

@strandgren thanks for checking!

@cherif2019-dev the PR in question: #1438

@simonrp84
Copy link
Member

Can confirm that the error occurs for me with the current satpy release.

@strandgren
Copy link
Collaborator

@cherif2019-dev if you need to have this working on a short notice you could clone my branch from the draft PR above. I am still working on improving the code in terms of memory usage, but the code itself code should do the job I think

@ameraner
Copy link
Member

Hi all,

this feels like a deja-vu, and indeed it's a bug in pyresample I discussed this summer with @djhoese but never got to fix. I just created a pyresample PR pytroll/pyresample#313 that fixes the problem.

@strandgren 's satpy PR circumvents the issue since the output Dataset after padding has an AreaDefinition instead of a StackedAreaDefinition.

@mraspaud
Copy link
Member

@cherif2019-dev the mentioned pyresample PR has been merged, so if you use pyresample's master branch it should fix your issue.

@cherif2019-dev
Copy link
Author

cherif2019-dev commented Nov 18, 2020 via email

@ameraner
Copy link
Member

@cherif2019-dev you can clone the current master into your machine, then install it using pip:

git clone git@github.com:pytroll/pyresample.git
pip install -e ./pyresample/

@cherif2019-dev
Copy link
Author

cherif2019-dev commented Nov 18, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants