Magnetic Picks
Magnetic Picks
Description:
Query the GSFML magnetic anomaly identification picks. The picks are returned as GeoJSON and can be filtered by ocean region and by age. You need to setup the database properly to use this API. See On-Prem Hosting.
Endpoint:
https://gws.gplates.org/earth/get_magnetic_picks
Parameters:
-
region : one of
,atlantic
,indian
orpacific
. Omit the parameter (or usemarginal_backarc_basins
) to query every region. The GSFML file names are also accepted, soall
works as well asAtlanticOcean
.atlantic -
start_index : the index of the first pick to return, counting from 0. Default 0.
-
end_index : the index just past the last pick to return. The range is half-open, so
returns 100 picks. Defaults tostart_index=0&end_index=100
+ 10000. A single request returns at most 50000 picks.start_index -
min_age : only return picks which are at least this old, in million years (Ma)
-
max_age : only return picks which are at most this old, in million years (Ma)
The indices count through the picks which match the
and age filters, in order of the pick'sregion
. That order is stable across requests, so you can page through a query withpick_index
andstart_index
without picks being skipped or repeated.end_index
andmin_age
filter on themax_age
column — the age in Ma on the Gee & Kent (2007) timescale.GeeK2007
Return:
A GeoJSON
. Each feature is aFeatureCollection
whose properties are the pick's attributes from the GSFML data set:Point
- pick_index : the pick's index in the whole data set. It follows the row order of
and does not change between requests, so it is a stable way to refer to a pick.GSFML.global.picks.shp - region : the ocean region the pick belongs to
- chron : the magnetic chron, for example C13n
- anomaly_end :
(young),y
(old) oro
(centre)c - anom_end_quality : the quality of the anomaly end, 1, 2 or 3
- cruise_name : the cruise the pick comes from, or
when unknownnull - reference : the publication the pick comes from, for example Cande++_1988_JGR
- doi : the DOI of that publication, or
when unknownnull - geek2007 : the age of the pick in Ma, on the Gee & Kent (2007) timescale
- id_method : how the pick was identified, for example Magnetic Anomaly
Alongside
andtype
, the collection carries the numbers you need to page through a query:features
- total_matched : how many picks match the filters in total
- returned : how many picks are in this response
- start_index and end_index : the range this response covers
- region : the region which was queried, or all
Examples:
👉 E1: the first 10 picks
Click this link to try this example in a web browser.
curl "https://gws.gplates.org/earth/get_magnetic_picks?start_index=0&end_index=10"
👉 E2: picks in the Pacific Ocean
curl "https://gws.gplates.org/earth/get_magnetic_picks?region=pacific&start_index=0&end_index=100"
👉 E3: picks in the Indian Ocean which are between 10 and 20 Ma old
curl "https://gws.gplates.org/earth/get_magnetic_picks?region=indian&min_age=10&max_age=20"
👉 E4: how many picks are there in the Atlantic Ocean?
Ask for a single pick and read
from the response.total_matched
curl "https://gws.gplates.org/earth/get_magnetic_picks?region=atlantic&start_index=0&end_index=1"
👉 E5: page through all the picks in a region
curl "https://gws.gplates.org/earth/get_magnetic_picks?region=pacific&start_index=0&end_index=10000"curl "https://gws.gplates.org/earth/get_magnetic_picks?region=pacific&start_index=10000&end_index=20000"curl "https://gws.gplates.org/earth/get_magnetic_picks?region=pacific&start_index=20000&end_index=30000"
Loading the data:
The picks are not part of this repository. They are downloaded from gsfml.earthbyte.org and loaded into the
table by a management command:magnetic.picks
cd django/GWS && python manage.py load_magnetic_picks
Use
to drop the table and load the data again, for example after GSFML publishes a new release. Use--recreate
to load from zip files which have already been downloaded.--data-dir
Data citation:
The picks are from the Global Seafloor Fabric and Magnetic Lineation Data Base Project (GSFML). Please cite the GSFML project and the original publication of each pick — the
andreference
properties of every feature say where that pick came from.doi