Magnetics Information Consortium -- MagIC
Public Web Services
In an effort to constantly improve the availability of the archived data to the scientific and educational community, MagIC is providing several public Web Services. The two output formats currently supported are
XML and tab-delimited plain text. The following links provide live examples of these services and insight into the data publically available through this convenient method.
XML Data
XML Search for a Location of "McMurdo"
Documentation
Both scripts take the same search arguments passed on the URL query string:
http://earthref.org/cgi-bin/w-pmag-xml.cgi?term_type=location&term=Antarctica&conjunction=AND&term_type=location_name&term=Admiralty
term_type
argument can be "location_name
", "region_name
", "location
" (which is functionally equivalent to "location_name
" or
"region_name
"), or "er_citation_names
". The conjunction
can be "AND
" or "AND NOT
" spelled "AND%20NOT
" in the URL-escaped argument.
"OR
" will be supported shortly after restructuring the server SQL calls.http://earthref.org/cgi-bin/w-pmag-tab.cgi?lat1=0&lat2=10&nshemi1=N&nshemi2=N&lon1=0&lon2=10&ewhemi1=E&ewhemi2=E
lat1
" and "lat2
" can be "0.0
" to "90.0
", "nshemi1
" and "nshemi2
" can be "N
" or "S
", "lon1
" and
"lon2
" can be "0.0
" to "180.0
", and "ewhemi1
" and "ewhemi2
" can be "E
" or "W
".http://earthref.org/cgi-bin/w-pmag-xml.cgi?myrs1=350&myrs2=340
myrs1
" argument is the upper age limit in Ma and "myrs2
" is the lower age limit in Ma.http://earthref.org/cgi-bin/w-pmag-tab.cgi?data_type=LT-CHEM&data_type=AE-H
data_type
" case-sensitive argument can be any one of the Method Codes defined by MagIC. Multiple "data_type
" arguments are evaluated with a logical
"OR
".The following arguments are used specifically for "drilling down" to more detailed data:
http://earthref.org/cgi-bin/w-pmag-tab.cgi?dl=site&loc_id=9301
dl
" argument can be "location
" (default), "site
", "sample
", "specimen
", or "measurement
". If a drill level is provided, one or more IDs
must also be provided to return any results. If the drill level is not specified, it is assumed to be "location
".http://earthref.org/cgi-bin/w-pmag-xml.cgi?dl=specimen&sample_id=2074
loc_id
", "site_id
", "sample_id
", "specimen_id
", or "meas_id
" based on which level the record ID belongs. Searching by a
"site_id
" with a "dl
" set to "specimen
" will provide all specimen data associated with the provided sample. Searching by an ID of a child, for example
"specimen_id
", on a parent level, for example, "sample
" will currently return no results.ERROR
" will appear as an XML tag or line of plain text.