.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/osborne-magnetic.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_gallery_osborne-magnetic.py: Magnetic airborne survey of the Osborne Mine, Australia ------------------------------------------------------- This is a section of a survey acquired in 1990 by the Queensland Government, Australia. The line data have approximately 80 m terrain clearance and 200 m line spacing. The section contains the total field magnetic anomalies associated with the Osborne Mine, Lightning Creek sill complex, and the Brumby prospect. **Original source:** `Geophysical Acquisition & Processing Section 2019. MIM Data from Mt Isa Inlier, QLD (P1029), magnetic line data, AWAGS levelled. Geoscience Australia, Canberra `__ **Pre-processing:** `Source code for preparation of the original dataset for redistribution in Ensaio `__ .. GENERATED FROM PYTHON SOURCE LINES 25-30 .. code-block:: default import pandas as pd import pygmt import ensaio .. GENERATED FROM PYTHON SOURCE LINES 31-32 Download and cache the data and return the path to it on disk .. GENERATED FROM PYTHON SOURCE LINES 32-35 .. code-block:: default fname = ensaio.fetch_osborne_magnetic(version=1) print(fname) .. rst-class:: sphx-glr-script-out Out: .. code-block:: none /home/runner/work/_temp/cache/ensaio/v1/osborne-magnetic.csv.xz .. GENERATED FROM PYTHON SOURCE LINES 36-37 Load the CSV formatted data with pandas .. GENERATED FROM PYTHON SOURCE LINES 37-40 .. code-block:: default data = pd.read_csv(fname) data .. raw:: html
flight_line longitude latitude height_orthometric_m total_field_anomaly_nt
0 5576 140.66411 -21.86833 367 -124
1 5576 140.66403 -21.86832 367 -124
2 5576 140.66394 -21.86832 367 -124
3 5576 140.66385 -21.86832 366 -124
4 5576 140.66377 -21.86832 366 -124
... ... ... ... ... ...
990982 10166 140.50757 -21.87023 382 -67
990983 10166 140.50757 -21.87029 382 -66
990984 10166 140.50758 -21.87034 383 -66
990985 10166 140.50758 -21.87040 383 -66
990986 10166 140.50758 -21.87046 382 -65

990987 rows × 5 columns



.. GENERATED FROM PYTHON SOURCE LINES 41-43 Make a PyGMT map with the data points colored by the total field magnetic anomaly. .. GENERATED FROM PYTHON SOURCE LINES 43-69 .. code-block:: default fig = pygmt.Figure() fig.basemap( projection="M15c", region=[ data.longitude.min(), data.longitude.max(), data.latitude.min(), data.latitude.max(), ], frame="af", ) scale = 1500 pygmt.makecpt(cmap="polar+h", series=[-scale, scale], background=True) fig.plot( x=data.longitude, y=data.latitude, color=data.total_field_anomaly_nt, style="c0.075c", cmap=True, ) fig.colorbar( frame='af+l"total field magnetic anomaly [nT]"', position="JBC+h+o0/1c+e", ) fig.show() .. image-sg:: /gallery/images/sphx_glr_osborne-magnetic_001.png :alt: osborne magnetic :srcset: /gallery/images/sphx_glr_osborne-magnetic_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out Out: .. code-block:: none .. GENERATED FROM PYTHON SOURCE LINES 70-73 The anomaly at the bottom left is the Osborne Mine. The ones on the top right are the Lightning Creek sill complex (the largest) and the Brumby prospect (one of the smaller anomalies). .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 39.204 seconds) .. _sphx_glr_download_gallery_osborne-magnetic.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: osborne-magnetic.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: osborne-magnetic.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_