How do I convert latitude and longitude to rows and columns on a geotiff?
Show older comments
I am trying to analyze a specific region of interest (ROI) on a very large geotiff. The image is from landsat 7. I want to input the latitude and longitudes of the top left and bottom right corners of the region I am interested in. I want to then use that data to find the rows and columns that I will be averaging.
I have tried to use functions such as latlon2pix. The pixel locations did not help me (the values I received didn't make sense). The setpostn function gives me errors.
Any help would be greatly appreciated!
Answers (2)
Chad Greene
on 16 Mar 2015
0 votes
If latlon2pix returned funny numbers, I'd guess there's something wrong with your georeferencing matrix.
Calvin Kielas-Jensen
on 20 Mar 2015
0 votes
Categories
Find more on Coordinate Reference Systems in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!