You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
UTM example: go on to add metric basemap too #7541
Universal Transverse Mercator [conformal]¶
To use this projection you must know the UTM zone number, which defines the central meridian. A UTM basemap for Indo-China can be plotted as
Well that is just great, except many users would also like to know how to make the familiar meters also appear on the basemap. So please add an additional example.
Are you willing to help implement and maintain this feature? Yes/No
Sure, if I only had an inkling of how to accomplish it!!
Cannot be done in a one-liner since we are not going to add more complications to -B. So it remains a more elaborate thing. You could get those meter bounds via
gmt begin utm
gmt basemap --MAP_FRAME_AXES=SE -R95/5/108/20+r -Ju46/1:10000000 -B
gmt coast -W -Na
gmt basemap --MAP_FRAME_AXES=NW -R721387.055456/2080949.09788/552077.474203/2279563.58956 -Jx1:10000000 -B
gmt end show
Note we don't goop it up with color or anything.
We are just trying to get an example for the Average Joe.
We need to simplify the method more.
That's where I'm thinking making a grid file with 0 points in it,
would be one way of porting the region between commands...
Yes, we will note in the comments that we can goop the coast and basemap calls together and save a step.
But it is best to have each step separate so new users can easily turn them off and on with just a "#" in front,
without injuring the rest.
FYI, The GMT team is busy working on podcasts for the UNAVCO GMT for Geodesy workshops so we wont really have time to implement new features right now.
Activity
joa-quim commentedon Jun 13, 2023
-BWS -Baand the other with the projected limits and-BEN -BaPaulWessel commentedon Jun 13, 2023
Cannot be done in a one-liner since we are not going to add more complications to -B. So it remains a more elaborate thing. You could get those meter bounds via
gmt mapproject -R95/5/108/20+r -Ju46/1:10000000 /dev/null -V -F -Cand then parse out the max/xmin/ymin/ymax, here 721387.055456/2080949.09788/552077.474203/2279563.58956.
Then
Unless @joa-quim has a better idea, one thing we could consider is a way to get that -R string out via mapproject.
PaulWessel commentedon Jun 13, 2023
Sorry, now see @joa-quim basically said the same thing.
PaulWessel commentedon Jun 13, 2023
Could image a new option -M[r|s] where
gmt mapproject -R95/5/108/20+r -Ju46/1:10000000 /dev/null -V -F -C -Mwould either change the region in gmt.history (-Ms) or just output the -Rstring (-Mr). If that was available then the above script would be
jidanni commentedon Jun 13, 2023
(Yeah, parsing out the data from a -V call doesn't sound very dignified.)
joa-quim commentedon Jun 13, 2023
Don't particularly like this. Too convoluted.
jidanni commentedon Jun 13, 2023
Here's what a revised example should look like.
And here's the ugly way to get it:
Note we don't goop it up with color or anything.
We are just trying to get an example for the Average Joe.
We need to simplify the method more.
That's where I'm thinking making a grid file with 0 points in it,
would be one way of porting the region between commands...
joa-quim commentedon Jun 13, 2023
You can't. A grid is a matrix
A bit better.
jidanni commentedon Jun 13, 2023
Yes, we will note in the comments that we can goop the coast and basemap calls together and save a step.
But it is best to have each step separate so new users can easily turn them off and on with just a "#" in front,
without injuring the rest.
PaulWessel commentedon Jun 13, 2023
FYI, The GMT team is busy working on podcasts for the UNAVCO GMT for Geodesy workshops so we wont really have time to implement new features right now.
WIP Add -Wm|M to mapprojects's reportoire
Add -Wm|M to mapprojects's reportoire (#7611)