AnsweredAssumed Answered

Warp Scripting Tool Degrades Image

Question asked by ryannnnn on Nov 6, 2017
Latest reply on Nov 7, 2017 by xander_bakker

Hi, I am using Arcgic 9.3 and had a question regarding the Warp (Data Management) tool. Whenever I warp an image using the Warp (Data Management) tool, it reduces the contrast of my pixels and reduces the black intensities on my panchromatic image even though I have forced the CellSize. This is my code (takes about 1 min to run):


import arcgisscripting

gp = arcgisscripting.create(9.3)

gp.CellSize = 0.00001

gp.Warp_management(inputImage, sourcePoints, targetPoints, outputImage, "POLYORDER1", "CUBIC")


However, it works fine using Map Algebra but the code takes a lot longer to run (4-5 mins per image).


import arcgisscripting

gp = arcgisscripting.create(9.3)


warp = "warp(inputImage, linkFile, 1, CUBIC, #, 0.00001)"

gp.SingleOutputMapAlgebra_sa(warp, outputImage)


Is there somewhere I can force some environment variables that would prevent Warp (Data Management) from losing pixels/degrading my image? Much help would be appreciated as I have been banging my head a long time on this. Thanks!