Fix swapped latitude and longitude in an earthquake map

Assign latitude and longitude to their named coordinate roles.

Fix swapped latitude and longitude in an earthquake map. Explore the public-data example; methods and data notes are below.
Explore the public-data example; methods and data notes are below.Download chart SVG

The direct answer

Assign latitude and longitude to their named coordinate roles. Swapping them can move points to another continent or produce invalid locations. Use USGS event coordinates in decimal degrees and inspect several known locations before styling.

Prepare the observation table

Keep id, latitude, longitude, mag and depth from the filtered 2023 catalog. In Point map, connect latitude to Latitude and longitude to Longitude. Check the valid ranges: latitude −90 to 90, longitude −180 to 180. Compare the first event with its source record.

Public dataset and a reproducible example

The download is a prepared extract, not a live data connection. The source links below include the original query, observation period and reuse policy. Keep an original copy when you update the data; revised source values can change the result.

USGS Earthquake Catalog, worldwide earthquake events with magnitude ≥ 5, from 2023-01-01T00:00:00Z up to but excluding 2024-01-01T00:00:00Z. Later catalog revisions can alter values. This is an educational extract, not a risk or warning service.

Snapshot retrieved: 2026-10-26. Prepared rows: 1780.

Download the prepared CSVDownload the reference SVG

First five rows from the prepared public-data extract; blank cells remain missing.
idtimelatitudelongitudemagdepth_kmmagType
us7000j1bs2023-01-01T03:16:14.442Z-6.7065155.2325.435mww
us7000j1d22023-01-01T07:03:01.860Z-58.8596-25.64985.244.616mww
us7000j1fq2023-01-01T16:24:27.560Z-25.2057178.50925.1595.724mb
us7000j1g52023-01-01T18:24:32.306Z-2.5533140.80075.530.83mww
us7000j1u62023-01-01T18:26:42.628Z-56.2415-123.53435.810mww

Build it in Datamon

Sign in with Google to create an editable visualization. Public articles and examples can be read without an account. The prepared CSV already contains the joins, filters or aggregations described above; do those steps in a spreadsheet first when using your own data.

  1. Open Data and choose a file, or paste the table with its header row. Check the detected numeric columns, decimal separator and dates. The current importer accepts files below 20 MB; these examples are smaller. Keep blanks distinct from recorded zeros.
  2. In Visualize, select Point map. Connect the roles exactly as listed below. Review the preview against at least two rows in the example table rather than relying only on automatic mapping.
  3. In Refine, add a title that states the question, the unit, observation period and source. Check labels and contrast at the size your reader will see. Keep a table when exact values matter.
  4. Use the export controls for SVG, PNG, PDF or PowerPoint, then inspect the actual file. Save an editable project backup. Publish only after checking the underlying values: a public link makes the published data available to anyone possessing the URL.

Calculation and column mapping

The rule below is pseudocode. The downloadable CSV already contains the prepared values; spreadsheet functions and cell references depend on your sheet layout.

Latitude and Longitude use decimal degrees; points use constant size
Latitude
latitude
Longitude
longitude

Read the result

The preview maps 1,780 source records; unselected countries are not zero values.

Use the preview to check the structure and the CSV to check exact values. Its styling is a reference; your Datamon rendering can look different. Follow the mapping and preparation above to reproduce the analytical meaning.

Mistakes that change the meaning

Valid coordinate ranges alone cannot prove correct order because many pairs fit both ranges. USGS coordinates represent epicenters; depth is a separate measure. A two-dimensional point does not show the underground location of the rupture.

Questions before sharing

Do these calculations require an AI service?

No. The prepared CSV and reference calculation are deterministic. Optional AI can help draft an explanation when configured, but it does not replace checking source values or choosing a valid comparison.

Can I use this example with my own spreadsheet?

Yes. Keep the same observation unit, column types and calculation. Replace the source attribution and time period, recompute derived columns, then compare several output values with your original sheet before sharing.

What is free and what needs an account?

Reading this guide and downloading its CSV and chart images are free. Datamon currently has no paid checkout or subscription plans in this deployment. Creating and saving an editable visualization requires Google sign-in. Provider-backed AI, cloud analysis, publishing and video depend on configured services; this guide does not promise unlimited free connected services.

Sources and further reading

Report a correction or an access barrier: Email the editorial contact.

Open Datamon