def convertWCS(inwcs,drizwcs):
    """ Copy WCSObject WCS into Drizzle compatible array."""
    drizwcs[0] = inwcs.crpix[0]
    drizwcs[1] = inwcs.crval[0]
    drizwcs[2] = inwcs.crpix[1]
    drizwcs[3] = inwcs.crval[1]
    drizwcs[4] = inwcs.cd[0][0]
    drizwcs[5] = inwcs.cd[1][0]
    drizwcs[6] = inwcs.cd[0][1]
    drizwcs[7] = inwcs.cd[1][1]

    return drizwcs
def convertWCS ( inwcs , drizwcs ) : drizwcs [ 0 ] = inwcs . crpix [ 0 ] drizwcs [ 1 ] = inwcs . crval [ 0 ] drizwcs [ 2 ] = inwcs . crpix [ 1 ] drizwcs [ 3 ] = inwcs . crval [ 1 ] drizwcs [ 4 ] = inwcs . cd [ 0 ] [ 0 ] drizwcs [ 5 ] = inwcs . cd [ 1 ] [ 0 ] drizwcs [ 6 ] = inwcs . cd [ 0 ] [ 1 ] drizwcs [ 7 ] = inwcs . cd [ 1 ] [ 1 ] return drizwcs
Copy WCSObject WCS into Drizzle compatible array.