Closed Peter9192 closed 1 year ago
As discussed offline, the supplementary dataset inherits the facets from the main variable if they're not specified. In this case, you want to concatenate the historical
and ssp585
experiment for the main dataset, but only use one of the two for the supplementary dataset, e.g.:
from esmvalcore.dataset import Dataset
dataset = Dataset(
short_name='tos',
mip='Omon',
project='CMIP6',
exp= ['historical', 'ssp585'],
dataset='CESM2',
ensemble='r4i1p1f1',
grid='gn',
)
dataset.add_supplementary(short_name='areacello', mip='Ofx', exp='historical')
cube = dataset.load()
It makes sense once you get it
I want to concatenate historical and future for a dataset with ancillary variables (because I need to calculate the area):
Unfortunately this fails, because esmvalcore apparently tries to concatenate the fx variable along the time dimension:
Stacktrace
``` ERROR:esmvalcore.preprocessor:Failed to run preprocessor function 'concatenate' on the data [