Hi
I think the problem here is that you are trying to concatenate cubes from different ensemble members, where I suspect you want to be using r1i1p1f1 (or r2... or r3...) throughout in both historical and SSP245 experiments. If I do this (on JASMIN, using Iris2.4):
import iris
from iris.experimental.equalise_cubes import equalise_attributes
cubes = iris.load(['/badc/cmip6/data/CMIP6/CMIP/NCAR/CESM2-WACCM/historical/r1i1p1f1/Amon/pr/gn/v20190415/*.nc',
'/badc/cmip6/data/CMIP6/ScenarioMIP/NCAR/CESM2-WACCM/ssp245/r1i1p1f1/Amon/pr/gn/v20190815/*.nc'])
equalise_attributes(cubes)
# make the latitude and longitude bounds the same in the first cube (historical run) as in the first ssp245 run
# other metadata tweaks may be necessary depending on the versions of the data being read
for axis in ['x', 'y']:
cubes[0].coord(axis=axis).bounds = cubes[1].coord(axis=axis).bounds
cube = cubes.concatenate_cube()
This works fine. You can’t concatenate the cubes across multiple ensemble members as they all cover the same time range and share the same spatial coordinates, so there is no dimension over which they can be concatenated.
I hope this is useful.
Best regards
Tony Phillips
--
You received this message because you are subscribed to the Google Groups "SciTools (iris, cartopy, cf_units, etc.) -
https://github.com/scitools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
scitools-iri...@googlegroups.com.
To view this discussion on the web, visit
https://groups.google.com/d/msgid/scitools-iris/5b7a84b9-ffdd-47f4-a691-d6e336999e56n%40googlegroups.com.