|
7 | 7 | import shutil
|
8 | 8 |
|
9 | 9 | import xarray as xr
|
| 10 | +import pandas as pd |
10 | 11 | import pooch
|
11 | 12 |
|
12 | 13 | from ..version import full_version
|
@@ -72,6 +73,41 @@ def fetch_topography_earth():
|
72 | 73 | return data
|
73 | 74 |
|
74 | 75 |
|
| 76 | +def fetch_rio_magnetic(): |
| 77 | + """ |
| 78 | + Fetch total-field magnetic anomaly data from Rio de Janeiro, Brazil. |
| 79 | +
|
| 80 | + These data are a subsection of an airborne survey of the state of Rio de Janeiro, |
| 81 | + Brazil, conducted in 1978. The data are made available by the Geological Survey of |
| 82 | + Brazil (CPRM) through their `GEOSGB portal <http://geosgb.cprm.gov.br/>`__. |
| 83 | +
|
| 84 | + The columns of the data table are longitude, latitude, total-field magnetic anomaly |
| 85 | + (nanoTesla), observation height above the WGS84 ellipsoid (in meters), flight line |
| 86 | + type (LINE or TIE), and flight line number for each data point. |
| 87 | +
|
| 88 | + The anomaly is calculated with respect to the IGRF field parameters listed on the |
| 89 | + table below. See the original data for more processing information. |
| 90 | +
|
| 91 | + +----------+-----------+----------------+-------------+-------------+ |
| 92 | + | IGRF for year 1978.3 at 500 m height | |
| 93 | + +----------+-----------+----------------+-------------+-------------+ |
| 94 | + | Latitude | Longitude | Intensity (nT) | Declination | Inclination | |
| 95 | + +==========+===========+================+=============+=============+ |
| 96 | + | -22º15' | -42º15' | 23834 | -19º19' | -27º33' | |
| 97 | + +----------+-----------+----------------+-------------+-------------+ |
| 98 | +
|
| 99 | + If the file isn't already in your data directory, it will be downloaded |
| 100 | + automatically. |
| 101 | +
|
| 102 | + Returns |
| 103 | + ------- |
| 104 | + data : :class:`pandas.DataFrame` |
| 105 | + The magnetic anomaly data. |
| 106 | +
|
| 107 | + """ |
| 108 | + return pd.read_csv(POOCH.fetch("rio-magnetic.csv.xz"), compression="xz") |
| 109 | + |
| 110 | + |
75 | 111 | def _load_xz_compressed_grid(fname, **kwargs):
|
76 | 112 | """
|
77 | 113 | Load a netCDF grid that has been xz compressed. Keyword arguments are passed to
|
|
0 commit comments