appropriately set the ras_coord variable in rigid transform