Download OpenAPI specification:Download
This API allows you to search for openly-accessible datafile and experiment metadata for neutron measurements done at the NIST Center for Neutron Research.
Support for this portal is provided by the NSF through the Center for High Resolution Neutron Scattering (CHRNS)
Note that the result must satisfy all search parameters, so the more you specify, the smaller the result set will be. Examples: \
/experiments?id=27585
will return a list of experiments with that id on all instruments, while/experiments?id=nonims2&instrument_id=35
will return only a single resultid | string Example: id=25847 either an IMS id (numeric) or nonims |
instrument_id | integer Example: instrument_id=35 numeric id of the instrument |
participant_name | string Example: participant_name=Krycka match name from list of participants (case insensitive) |
title | string Example: title=morphology match part of experiment title |
participant_orcid | string (ORCID) ^https:\/\/orcid.org\/[0-9]{4}-[0-9]{4}-[0-9]... Example: participant_orcid=https://orcid.org/0000-0002-6105-8789 match ORCID id from list of participants (enter with or without https://orcid.org/ prefix) |
after | string Example: after=November 10 2020 only find experiments active after this date |
before | string Example: before=January 10 2021 only find experiments active before this date |
limit | integer [ 1 .. 250 ] Default: 25 maximum number of returned results (up to 250) |
offset | integer return results starting at offset (defaults to 0) |
{- "id": "27585",
- "description": "",
- "instrument_id": 36,
- "participant_names": [
- "Charles Majkrzak",
- "Ying-Heng Tein",
- "Brian Maranville"
], - "participant_orcid": [
- null,
- null,
- null
], - "local_contact": "Brian Maranville",
- "creation_timestamp": 1578325297.714,
- "title": "Development of Horizontal-Mode reflectometry with slits at MAGIK"
}
get datafile metadata
experiment_id | string |
rxcycle_id | integer |
instrument | string Enum: "bt1" "bt2" "bt4" "bt5" "bt7" "bt8" "bt9" "macs" "ng1" "cg1" "hfbs" "vsans" "dcs" "ng5" "ng7" "ng7sans" "nse" "ngb30sans" "ngbsans" "ngd" "cgd" "phades" "candor" Example: instrument=vsans string alias for the instrument |
instrument_id | integer Example: instrument_id=36 |
before | string Example: before=November 10 2020 only find datafiles started before this date |
after | string Example: after=January 10 2021 only find datafiles started after this date |
object (MetadataQueryConstraint) find by arbitrary metadata | |
limit | integer [ 1 .. 250 ] Default: 25 maximum number of returned results (up to 250) |
offset | integer return results starting at offset (defaults to 0) |
[- {
- "filename": "FeSe_0T_10K_87693.ng0",
- "experiment_id": "20180713",
- "rxcycle_id": 201806,
- "instrument_id": 13,
- "instrument": "bt1",
- "start_date": "2018-07-19T15:11:49-04:00",
- "sha256": "c187680d5a20aff276678c4703184fc31c9935973808960f047d7b2e99ff13c4",
- "metadata": {
- "Ef": {
- "max": 3.7006699999999997,
- "min": 3.7006699999999997,
- "mean": 3.70067
}, - "Ei": {
- "max": 4.45,
- "min": 4.45,
- "mean": 4.45
}, - "PTAI": {
- "max": 12,
- "min": 12,
- "mean": 12
}, - "Temp": {
- "max": 10.037,
- "min": 10.014,
- "mean": 10.028270833333336
}, - "Time": {
- "max": 22.4233,
- "min": 22.1577,
- "mean": 22.28976666666667
}, - "Kidney": {
- "max": 0.5188,
- "min": 0.5188,
- "mean": 0.5188
}, - "Comment": "0 T 10 K E=0.75 meV",
- "Monitor": {
- "max": 240000,
- "min": 240000,
- "mean": 240000
}, - "LiveTime": 534.9544000000001,
- "MagField": {
- "max": 0.002412,
- "min": 0.002412,
- "mean": 0.002412
}, - "ScanType": "ANGLE",
- "TemperatureSetpoint": {
- "max": 10,
- "min": 10,
- "mean": 10
}, - "TemperatureHeaterPower": {
- "max": "NaN",
- "min": "NaN",
- "mean": "NaN"
}, - "TemperatureControlReading": {
- "max": 0,
- "min": 0,
- "mean": 0
}
}
}
]
get instrument info by id or alias
id | integer Example: id=35 numeric instrument_id |
alias | string Example: alias=ng7sans short string alias for instrument |
{- "id": 38,
- "alias": "candor",
- "fullname": "NG-1 -- CANDOR White-Beam Reflectometer",
- "hostname": "candor.ncnr.nist.gov"
}