Closed Esteban82 closed 1 year ago
Yes. The events -Ar100c
is to be used when you wish to animate the line with variable thickness or color: That means converting the line to a point cloud. Since your line remains constant thickness and color then plotting the line with events -Ar as you do is the way to do it. So you can remove that superfluous events call in pre.sh.
Looking at the psevents code, I am doing a linear interpolation to find the end of the line at the new current time. So that is why the resampling via sample1d is necessary to get the great circles. However, I realise we had a bug (or unimplemented feature!) in sample1d. Documentation correctly says that if you use modifier +a to -T then it will write out the geospatial distances as last column. But it did not. So, via https://github.com/GenericMappingTools/gmt/pull/7382 I have implemented that. Once it is merged you can remove the mapproject command entirely, so that makes it simpler.
Other things you still need to change in the script (I think):
Thanks Paul. I approved those modifications and add a few more.
In the script I have these two lines:
I see now that I am NOT using the the second command. I've been reading the documentation (events -A) but I don't.
Should I use
gmt events
to interpolate the between cities? Or is it ok to usesample1d
andmapproject
for this animation?