I have two cubes that I would like to merge together over a "forecast_reference_time" coordinate, however they have different numbers of ensemble members:
>>print(cube1)
2 metre temperature / (K) (realization: 25; forecast_period: 7; latitude: 29; longitude: 36)
Dimension coordinates:
realization x - - -
forecast_period - x - -
latitude - - x -
longitude - - - x
Scalar coordinates:
central_lead_time: 9.0
forecast_reference_time: 2016-11-02 00:00:00
Attributes:
Conventions: CF-1.5
>>print(cube2)
2 metre temperature / (K) (realization: 51; forecast_period: 7; latitude: 29; longitude: 36)
Dimension coordinates:
realization x - - -
forecast_period - x - -
latitude - - x -
longitude - - - x
Scalar coordinates:
central_lead_time: 9.0
forecast_reference_time: 2017-11-02 00:00:00
Attributes:
Conventions: CF-1.5
I would like the merged cube to be of shape (forecast_reference_time: 2; realization: 51; forecast_period: 7; latitude: 29; longitude: 36), where the missing 31 members from cube1 are masked.
Does anyone know how I could implement this? Ideally I'd like a method that worked for a whole CubeList, who's members might have any arbitrary number of realizations.