How to plot earthquakes data only between concentric circles of 70, 140 degrees as shown in blue colour on plotted map considering (centerN, centerE) values?
Use mapproject -G<lon/lat>+ud to compute distance in degrees from your center, then use gmtselect -Z to only pass those in your 70-140 range to plot.
Lay down a clip path so that you only see the ones you want in that donut. This means making a polygon in geographical coordinates or work with Cartesian circles given you map size.
Thanks for help. I have plotted map using option 1, which you mentioned. The commands which I used are below, have a look on these commands to see these are correct.
commands:
calculate distance in degrees from center
gmt mapproject earthquakes(lon,lat) -G$centerE/$centerN+ud > earthquakes_distance_degrees
plot earthquakes only between 70-140 degrees
gmt select earthquakes_distance_degrees -Z70/140 | gmt psxy -Rg -JE -Sc0.16c -Gbrown > Map
Apart from this, I want to label my map as in attached image.
My query is how to draw lines from center to outer frame circle (black lines) and label these lines at outer frame with values (0,60,120…) degrees. What way/commands can be use to do this task. Kindly help.
Hi, I have plotted the map with labels of outer circle using (JP) projection. Following way used to get it;
gmt psbasemap -Rg -JP5i+a -B30g30 --FORMAT_GEO_MAP=+ddd
map: