cosmo oddeven partitioner hdr

function partitions = cosmo_oddeven_partitioner(ds, type)