Arcpy clip file tiff

1934
12
09-21-2016 02:03 PM
DEVAPP
by
New Contributor III

Hi guys,

i have a tiff image that into Arcmap i clip with Data Frame Clip using a shp file into data frame as mask to clip and i have the result that you can see into this image

instead when i create a python script i can't use clip data frame so i use clip_managment or extract by mask with the same shp file but the result is different, you can see in this second image

You can see that the bouds of clip are not smooth as first clip resulted by clip data frame.

How i can resolve this problem and have the same result with bounds smooth?

Thanks

0 Kudos
12 Replies
DEVAPP
by
New Contributor III

Yes i have set 0.5 cellsize but the result is always the same. I have try to set into env cellsize value 0.5 and run replace with this value as cell size but result is always the same

The bounds are not smooth

0 Kudos
DanPatterson_Retired
MVP Emeritus

skip the script for now... do the process manually using the tools in arctoolbox, when it works, go to Customize, Results and copy and paste the results of the process and export to a python code snippet so that we can see what was a 'successful' run to narrow down what your code situation problem is.

DEVAPP
by
New Contributor III

Hi Dan,

thank for your help.

I have change the workflow into script and now works fine. Problem was the first clip of raster before resample.

I have try to clip the raster with a big polygon and after run the resample but with cell size 0,5 and. After i have execute other clip on resample result with a smal shp and the ruslt is good.

Now i have see other some strange but i will post it in other question

0 Kudos