def Decompress(compmap,mask,emptymap):
    """
    Decompressing map from 1D to 2D with missing values
    :param compmap: compressed map
    :param mask:  mask map
    :param emptymap: map with only 0 in
    :return: decompressed 2D map
    """
    dmap=emptymap.copy()
    dmap[~mask.ravel()] = compmap[:]
    dmap = dmap.reshape(mask.shape)
    return dmap