1

I'm using ArcGIS Raster Calculator (Spatial Analyst Tools > Map Algebra > Raster Calculator). I've got the correct extension licences and have run basic Con(,,) successfully.

I would like to reference XY coordinates in my calculations but don't know how. Any suggestions?

My use case is to check 2 partially overlapping rasters and create a new one, with interpolation in the overlap region based on X coordinate.

Pseudo code below showing what I want to achieve.

  • [x] is where I want to reference the X coordinate of the cell being calculated
  • the numbers 7000 and 7500 are X coordinates relating to my raster overlap, leading to an interpolation function being defined

    con ( IsNull("raster1") , "raster2" , con (IsNull("raster2"),"raster1", "raster1" + "raster2"*([x]-7000)/7500-7000 ))
    

I've got zero skill with Python, but am familiar with ModelBuilder and the old VB calculators etc. I'd prefer a solution that uses the GUI. If Python is the only way then I'll need a bit of hand holding to work out how to apply it and make it work.

1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.