Skip to content

CMIP6 IPSL historical and ssp245 concatenate error #282

Description

@jvegreg

I am running into a related problem when trying to concatenate data from IPSL historical and ssp245 simulations (tas_Amon_IPSL-CM6A-LR_historical_r2i1p1f1_gr_185001-201412.nc and tas_Amon_IPSL-CM6A-LR_ssp245_r2i1p1f1_gr_201501-210012.nc). The historical data has a time origin of January 1850 and SSP245 data has a time origin of January 2015 . I get this error:

iris.exceptions.ConcatenateError: failed to concatenate into a single cube.
   Cube metadata differs for phenomenon: air_temperature
   Dimension coordinates metadata differ: time != time
   Auxiliary coordinates metadata differ: day_of_month, day_of_year, month_number, year != day_of_month, day_of_year, month_number, year

It appears that _fix_cube_attributes ensures that the global attributes of the two cubes being merged are the same, but not the attributes attached to the coordinates. By inserting print statements, it looks to me like the code correctly accounts for the different time origins of the two input files, and adapts the units of time and the dates accordingly, but it leaves the attribute 'time-origin' attached to the 'time' coordinate of the second file unchanged, which causes check_aux_coords to fail.

I'm not sure if this can be resolved by changing _fix_cube_attributes or just be writing a model-specific fix. Any help would be greatly appreciated!

main_log_debug.txt

Originally posted by @npgillett in ESMValGroup/ESMValTool#538 (comment)

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions