cosmo check partitions hdr

function is_ok = cosmo_check_partitions(partitions, ds, varargin)