Introduction to Generic Mapping Tools (GMT) for Geophysics self-paced course now open

Introduction to Generic Mapping Tools (GMT) for Geophysics self-paced course now open

Learn how to create publication-quality maps and visualize geophysical data with the new Introduction to Generic Mapping Tools (GMT) for Geophysics self-paced course.

The course introduces Unix/Linux fundamentals and builds from basic GMT commands, mapping, and plotting to more advanced visualization techniques. The course is structured to meet you where you are, whether you are new to command-line tools or already have some experience in scientific computing. Across six modules, you’ll work with examples from seismology and geodesy while developing skills you can apply to your own scientific workflows.

The course also includes advanced GMT topics, animation, and integration with Python. All course tutorials run in GeoLab, the NSF NGF cloud-based scientific computing environment, so you can focus on learning and applying GMT without setting up the software locally.

Ready to get started? Enroll in Introduction to GMT for Geophysics today!


Sorry the nitty-picky, but what are those arc circles around the circles?

Looks strange and wrong; also this one:

image

Is there any code and data available which can be posted to repoduce this.

I’ll check with the source of the announcement and let them know the screenshot image generated some questions.

I made the map for our marketing release. The intent was to demonstrate how GMT represents Focal Mechanisms. If you’re interested I will paste my code below.

gmt begin 3_Japan png
gmt grdimage @earth_relief -R125/150/30/45 -JM15c -I -B
gmt makecpt -Cjet -T0/600
gmt meca GCMT.dat -Sa0.3c+m+f0 -C
gmt colorbar
gmt end

Hi @Austin_EarthScope,

Welcome to the GMT forum :slightly_smiling_face:! Thanks for reaching out and sharing the code related to this map. Would it be possible to also share the data GCMT.dat?

GCMT.dat (63.6 KB)

Thank you! I look forward to learning from you all as I support our academy students. Attached is the data I used for the map.

Thanks for sharing the data!

The code example shows -Sa, which is used for the Aki and Richards convention.
From the file name and the header given in the file it seems like the focal mechanisms are given in the Global CMT convention (-Sc). But actually the focal mechanisms are given in the seismic moment tensor convention (-Sm), as visible from the column names. For details please see xref: meca — GMT 6.7.0 documentation.

Plotting the data using -Sm:

gmt begin 3_Japan_m png
gmt basemap -R125/150/30/45 -JM15c -B
gmt makecpt -Cjet -T0/600
gmt meca GCMT.dat -Sm0.3c+m+f0 -C
gmt end

I get this map:

which looks more reliable.

Thank you Yvonne,

I am still very much learning the tool and really appreciate the insight. I will revise my map and reconnect with our communications team.

Please note, I think in GMT 6.7.0 there is an issue with color-coding the beachballs based on the quantity in the third column, here the epicentral distance. It works correctly in GMT 6.6.0. xref: meca ignors colormap created via makecpt · Issue #9176 · GenericMappingTools/gmt · GitHub

Attached is the updated map that our science communications team will use in future marketing. I really appreciate the support you have already shown. I plan on doing some extensive GMT up-skilling to avoid missing these mistakes in my future maps.

Yvonne, according to Frederico’s recent finding this was recent regression.

Austin, the map look good now. I guess we got curious on what might have caused the previous anomalies.

Thanks Frederico for looking into the color-coding issue in detail and providing a PR for fixing it.


I am still very much learning the tool and really appreciate the insight. I will revise my map and reconnect with our communications team.

Thanks @Austin_EarthScope for updating the map. And welcome to the GMT world :slightly_smiling_face:.