# How to get value and matrix index at a given (x;y) point?

**URL:** https://discourse.julialang.org/t/how-to-get-value-and-matrix-index-at-a-given-x-y-point/129692
**Category:** Geo
**Tags:** question, rasters
**Created:** [June 6, 2025, 9:24am UTC](https://discourse.julialang.org/t/how-to-get-value-and-matrix-index-at-a-given-x-y-point/129692 "2025-06-06T09:24:18Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)
#### Post date: [June 6, 2025, 11:10am UTC](https://discourse.julialang.org/t/how-to-get-value-and-matrix-index-at-a-given-x-y-point/129692/9 "2025-06-06T11:10:08Z")

</div>

but in this case (as you can see from the screenshot) the coordinate to lookup is very close to the center of (what I thought was ) a pixel…

---

_[View the full topic](https://discourse.julialang.org/t/how-to-get-value-and-matrix-index-at-a-given-x-y-point/129692)._
