X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 15 Apr 2019 04:57 PM by  Ben Castellani
How to remove all data having more than one elevation for the same distance
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Aswinraj K T



New Member


Posts:
New Member


--
08 Mar 2019 11:28 AM
    I have 2 array elevation and distance. Both have same dimension(32897). How can i remove all data having more than one elevation for the same distance.
    Then plot elevation vs distance

    Ben Castellani



    Basic Member


    Posts:130
    Basic Member


    --
    15 Apr 2019 04:57 PM
    You will want to use the UNIQ function in IDL to locate all of the unique elevations --> https://www.harrisgeospatial.com/docs/UNIQ.html

    An example code for this would be....

    ======
    unique_elevations = elevations[UNIQ(elevations)]
    unique_distances = distances[UNIQ(elevations)]
    p = plot(unique_elevations,unique_distances)
    You are not authorized to post a reply.