Single-beam bathymetry of the Caribbean

This dataset is a compilation of several public domain single-beam bathymetry surveys of the ocean in the Caribbean. The data display a wide range of tectonic activity, uneven distribution, and even clear systematic errors in some of the survey lines.

Original source: NOAA NCEI

import pandas as pd
import pygmt

import ensaio.v1 as ensaio

Download and cache the data and return the path to it on disk

Out:

/home/runner/work/_temp/cache/ensaio/v1/caribbean-bathymetry.csv.xz

Load the CSV formatted data with pandas

survey_id latitude longitude depth_m
0 FM0501 23.13070 -87.99680 75
1 FM0501 23.11940 -87.98640 75
2 FM0501 23.10810 -87.97610 73
3 FM0501 23.09670 -87.96580 73
4 FM0501 23.08540 -87.95540 73
... ... ... ... ...
1938090 EW0003 9.92284 -84.72557 20
1938091 EW0003 9.92282 -84.72565 20
1938092 EW0003 9.92283 -84.72570 20
1938093 EW0003 9.92284 -84.72574 21
1938094 EW0003 9.92286 -84.72576 20

1938095 rows × 4 columns



Make a PyGMT map with the data points colored by the depth.

fig = pygmt.Figure()
fig.basemap(
    region=[
        data.longitude.min(),
        data.longitude.max(),
        data.latitude.min(),
        data.latitude.max(),
    ],
    projection="M15c",
    frame=True,
)
pygmt.makecpt(cmap="viridis", series=[data.depth_m.min(), data.depth_m.max()])
fig.plot(
    x=data.longitude, y=data.latitude, color=data.depth_m, cmap=True, style="c0.02c"
)
fig.colorbar(frame='af+l"bathymetric depth [m]"')
fig.coast(land="#666666")
fig.show()
caribbean bathymetry

Out:

<IPython.core.display.Image object>

Total running time of the script: ( 0 minutes 44.660 seconds)

Gallery generated by Sphinx-Gallery