Skip to content

use of xarray instead of the MFDatasetCommonDims class - #3187

Open
JanEisermann wants to merge 3 commits into
Open-MSS:developfrom
JanEisermann:xarray_3185
Open

use of xarray instead of the MFDatasetCommonDims class#3187
JanEisermann wants to merge 3 commits into
Open-MSS:developfrom
JanEisermann:xarray_3185

Conversation

@JanEisermann

@JanEisermann JanEisermann commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

Purpose of PR?:

Fixes #3185

Does this PR introduce a breaking change?
use of xarray instead of the MFDatasetCommonDims class, which is removed within this PR

If the changes in this PR are manually verified, list down the scenarios covered::
tests succeeded, not manually verified

Additional information for reviewer? :
Mention if this PR is part of any design or a continuation of previous PRs

Does this PR results in some Documentation changes?
If yes, include the list of Documentation changes

Checklist:

  • Bug fix. Fixes #
  • New feature (Non-API breaking changes that adds functionality)
  • PR Title follows the convention of <type>: <subject>
  • Commit has unit tests

with help by Claude

@ReimarBauer ReimarBauer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

until Joern looked on that I hold it blocked.

@joernu76 already was against thi change in a different PR

logging.debug("opening datasets.")
dsKWargs = self.data_access.mfDatasetArgs()
dataset = netCDF4tools.MFDatasetCommonDims(self.filenames, **dsKWargs)
dataset = netCDF4tools.open_mfdataset_commondims(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can xarray.open_mfdataset be used here? That would really remove code?

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

Successfully merging this pull request may close these issues.

We should use xarray instead of the MFDatasetCommonDims class

3 participants