While looking at the CompositeDataLoader in ClimaCoupler (at https://github.com/CliMA/ClimaCoupler.jl/blob/02a374599bd828383a58dd8bf61c8ccb3f04891d/src/CalibrationTools.jl#L211), I realized the code can be simplified if a merge function is available.
This function would just merge two NCCatalogs together. If there are duplicate names, then we can follow the same behavior for merging dictionaries and the rightmost argument that owns the key gets its value in the dictionary.
While looking at the
CompositeDataLoaderin ClimaCoupler (at https://github.com/CliMA/ClimaCoupler.jl/blob/02a374599bd828383a58dd8bf61c8ccb3f04891d/src/CalibrationTools.jl#L211), I realized the code can be simplified if amergefunction is available.This function would just merge two
NCCatalogs together. If there are duplicate names, then we can follow the same behavior for merging dictionaries and the rightmost argument that owns the key gets its value in the dictionary.