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

MergeError in to_xarray_dataset for Scenes containing data from seviri_l1b_nc reader #2179

Open
BENR0 opened this issue Aug 16, 2022 · 1 comment · May be fixed by #2827
Open

MergeError in to_xarray_dataset for Scenes containing data from seviri_l1b_nc reader #2179

BENR0 opened this issue Aug 16, 2022 · 1 comment · May be fixed by #2827

Comments

@BENR0
Copy link
Collaborator

BENR0 commented Aug 16, 2022

Describe the bug
When trying to convert Scene containing data read with the seviri_l1b_nc reader merging fails. The reason is the acq_time coordinate. The option compat="override" (which picks the variable from the first dataset) solves the problem.
Another possible solution would be to drop the variable.

To Reproduce

fn = [seviri netcdf files]
msgscn = Scene(reader="seviri_l1b_nc", filenames=fn)
msgscn.load(["IR_108", "VIS006"])
msgscn.to_xarray_dataset()

Expected behavior
A xarray.Dataset should be returned.

Actual results
MergeError: conflicting values for variable 'acq_time' on objects to be combined. You can skip this check by specifying compat='override'.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment Info:

  • OS: Linux
  • Satpy Version: 0.36.1
  • PyResample Version: 1.19.0
@djhoese
Copy link
Member

djhoese commented Jun 17, 2024

I think I'd be more in favor of dropping the conflicts as it is a little "louder" of an error than picking the first one.

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

Successfully merging a pull request may close this issue.

5 participants