0

I have a point shapefile which I want to interpolate using IDW interpolation. However, I want to interpolate only those points which satisfies a certain condition. I need to do it in python and I think that I have to use definition query where only values that are not -999 should be used in the interpolation.

This is my code:

outIDW = Idw(fc, zField, cellSize, power, searchRadius)

I need to modify somehow the fc shape to take into account only values that are different from -999.

This is my query:

"P"<>-999

Thanks

2

Use the Select Layer by Attributes tool. Refer to the tool help for code samples.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.