Find 2D intersection in lat lon between curve (rivers) and satellite traces (2D polygon) on a map
조회 수: 6 (최근 30일)
이전 댓글 표시
Hello, this is an expanded question to the original 1D problem in https://es.mathworks.com/matlabcentral/answers/1740820-find-curve-intersection-points-in-lat-lon-between-rivers-and-satellite-traces-on-a-map
I have a set of (lon,lat) points defining the course of a river. Then I also have a set of (lon, lat) points defining the traces of satellite measurements on-ground. The trace is not 1D, there is a 'left' point and a 'right' point, denoting what woud be in reality a continuous 2D band. In fact both the river and the trace are continuous. I want to find the intersections between the river (a curve) and also the 2D trace. I managed in 1D with the answer of the link above, but not evident in 2D at all. Thank you
PS: I include now included exemplary mat data, with the [lon lat] values of the river, and the [lon lat] values of the satellite trace, defined by the left and right points that define the band/belt extremes. On of the problems I see as well is that close to the poles the bands mix because of the projection effect...
댓글 수: 6
Jeffrey Clark
2022년 6월 17일
@Albert Zurita, yes the closer to the poles the more problematic lat-lon. Before realizing you created the case where all riv points were in the trace_1/2 I included a step in my proposed solution to convert lat-lon to a cartesian coordinate system in three dimensions, in this case Earth-Centered Rotated (right) as compared to the lon-lat data (I augmented and reversed columns of the lon-lat of all three files with altitude of zero to do the transform from Lat-Lon-Alt to ECR in the figure on the right):
답변 (1개)
Bjorn Gustavsson
2022년 6월 17일
If you have a single-pass of the satellite you could check what "river-points" are inside the ground-track with the inpolygon function. Check the help and documentation for illustrating examples. My approach would be to split up the satellite-track into single-pass-segments and search for points inside the ground-track pass-by-pass and collect what I need from each.
HTH
댓글 수: 4
Bjorn Gustavsson
2022년 6월 17일
Oh, yes, by orbit first. The idea to work with unwrap and ecef would be if you have rivers close to your +180/-180 (or 0-360) cuts. For ecef you could possibly work with the x-y coordinates if you are safely on the northern or southern hemisphere - I guess there the cut-problem would be the equator. But now I'm mainly throwing completely unbaked ideas at you for the possibility that I by stupid luck manage to randomly combine a couple of phrases in the right order...
참고 항목
카테고리
Help Center 및 File Exchange에서 Satellite Mission Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!