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

Tiny difference in SEVIRI HRIT area extents #2706

Open
sfinkens opened this issue Dec 21, 2023 · 3 comments
Open

Tiny difference in SEVIRI HRIT area extents #2706

sfinkens opened this issue Dec 21, 2023 · 3 comments
Assignees

Comments

@sfinkens
Copy link
Member

Describe the bug

In some very rare cases, the area extent of a SEVIRI HRIT scene is a tiny bit different from the majority of scenes.

Majority, areas.yaml (5567248.28340708, 5570248.686685662, -5570248.686685662, -5567248.28340708)
2021-11-08 12:00     (5567248.28340708, 5570248.686685663, -5570248.686685662, -5567248.28340708)
                                                        ^

As a consequence, the x/y coordinates are also slightly different. When concatenating many scenes along the time dimension, xarray doubles the dimension and insert NaNs because the grids don't align.

A workaround is to use for example xr.concat(..., join="override") but I'm still curious why this happens. Maybe it can be fixed.

To Reproduce

import satpy
import glob

filenames = glob.glob("H-000-MSG1__-MSG1_IODC*202111081200*")
scene = satpy.Scene(filenames, reader="seviri_l1b_hrit")
scene.load(["IR_108"])
print(scene["IR_108"].attrs["area"].area_extent)

Environment Info:

  • OS: Linux
  • Satpy Version: 0.46.0
  • PyResample Version: 1.27.1
@sfinkens sfinkens self-assigned this Dec 21, 2023
@djhoese
Copy link
Member

djhoese commented Dec 22, 2023

Related: #2573

@mraspaud
Copy link
Member

mraspaud commented Jan 9, 2024

@ameraner any comments on this?

@ameraner
Copy link
Member

ameraner commented Jan 9, 2024

Hmm this is a little odd, I'd also be curious to know where it comes from... looks like a floating point precision issue, even though the input parameters should be always the same. I requested that slot from the archive, I'll try to take a look when I find a moment

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

No branches or pull requests

4 participants