How to automate selecting specific xyz map data from an existing xyz data set?
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
BlkHoleSun
am 13 Jan. 2019
Beantwortet: BlkHoleSun
am 18 Jan. 2019
I have a bathymetry map that provides a 1 meter resolution. However, I don't want all of the map data. I want a 1024X1024 meter section of the map so that I can run comparrisons. The xyz map data I have is lat/long/alt and I'd like to automate the process and be able to populate a 1024X1024 matrix with z data.
I have attached a link to the xyz file since it is too large and a .jpg file so that you can see what the map looks like. I've also drawn a blue box around the desired location.
![website.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/200645/website.jpeg)
This is a painful process to go cell by cell so I appriciate all help.
![InkedShalebeds_1m10clr_LI.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/200646/InkedShalebeds_1m10clr_LI.jpeg)
7 Kommentare
Walter Roberson
am 15 Jan. 2019
A question would be how accurate the boundaries have to be. The map spacing is in physical meters, but imposing lat/long boundaries implies boundaries that are rectilear in physical meters. Your source about 7.3 km by about 6.9 km, which I figure is large enough that the curvature of the Earth would several few meters off of the upper left and upper right if the lat/long boundaries need to be strict.
I would tend to suggest that you just translate the lat/long boundaries at the southern edge and use those to select a rectangular portion of the data instead of worry about the curvature.
Akzeptierte Antwort
Weitere Antworten (1)
KSSV
am 15 Jan. 2019
Read about inpolygon. If you have the vertices of closed region/ polygon; ou can get the points lying inside the region.
5 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!