I’m new to pyGMT here, but as an experienced Python developer, I’m struggling with the plethora of awesome features available. I’ve created a map of ~60 points along a mountain range. These points represent known locations on journey by foot. I’m trying to connect them with the optimal path and would like to implement A* or similar which would penalize paths taken over long distances and high elevation deltas while also going around obstacles which travelers would reasonably go around.
- Does pyGMT offer something like this out of the box?
- can pyGMT generate a transect along the “optimal” line instead of a straight line between A&B (as in the below example)?
I’ve based my code off of this example: Cross-section along a transect — PyGMT
my data frame of points is very simple and looks like: df[['name', 'latitude', 'longitude']]
I’ve only added this snippet below to map each location on the map
fig.text(
text=" "+df['name'],
x=df['longitude'],
y=df['latitude'],
font="2p,Helvetica-Bold",
justify="lm"
)