function ds = cosmo_slice(ds, to_select, dim, type_or_check)
cosmo skip test if no external hdr
cosmo sphere offsets hdr