Skip to content

Xarray merge warning in process_isimip_data #1817

@lilianschuster

Description

@lilianschuster

I am getting a xarray warning when running process_isimip_data that xarray will change its xr.merge behaviour. When running future simulations it results in a lot of warning which is cluttering the slurm files. Probably we should add join='outer' to preserve the old behaviour on these two lines

temp_a = xr.merge([temp_a_gcm, temp_a_hist],
and
precip_a = xr.merge([precip_a_gcm, precip_a_hist],
?

For more info: Here is the warning that I am getting ...
FutureWarning: In a future version of xarray the default value for join will change from join='outer' to join='exact'. This change will result in the following ValueError: cannot be aligned with join='exact' because index/labels/sizes are not equal along these coordinates (dimensions): 'time' ('time',) The recommendation is to set join explicitly for this case. temp_a = xr.merge([temp_a_gcm, temp_a_hist], ...

--> and here are the xarray changes described: https://docs.xarray.dev/en/v2025.08.0/user-guide/combining.html#merge

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions