def METHOD_NAME(dtm, out):
    """Simple 2X upsampling, duplicate pixels
    """
    # Adjust the slicing for odd row count
    if out.shape[0] % 2 == 1:
        s0 = numpy.s_[:-1]
    else:
        s0 = numpy.s_[:]
    # Adjust the slicing for odd column count
    if out.shape[1] % 2 == 1:
        s1 = numpy.s_[:-1]
    else:
        s1 = numpy.s_[:]
    # copy in duplicate values for blocks of 2x2 pixels
    out[::2, ::2] = dtm
    out[1::2, ::2] = dtm[s0, :]
    out[::2, 1::2] = dtm[:, s1]
    out[1::2, 1::2] = dtm[s0, s1]