I frequently specify the region of interest using -Rcode where code belongs to the Digital Chart of the World (DCW) database. I am building a plotting script which takes a valid DCW code as input and plots that region. I would like the non-GMT parts of the script to know the actual west/east/south/north associated with that given input region. Is there a way to check the limits of a given DCW code? After reading the documentation I came up with something like this:
gmt coast -M -EIT | gmt info -C
I would think there may be a better way. I am using GMT 6.4.0 (and can’t update to latest version due to lack of admin privileges at work). Thank you!
edit: I chose the code IT (Italy) as an example. I’d like the program to be able to handle any arbitrary code.