Skip to content

Commit 7be7d6a

Browse files
authored
Merge pull request #42 from SciCatProject/configuration_examples
added base and coda configuration examples
2 parents 317ec57 + de30a14 commit 7be7d6a

File tree

2 files changed

+210
-0
lines changed

2 files changed

+210
-0
lines changed
+98
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
{
2+
"instrument" : "coda",
3+
"selector" : "",
4+
"schema" : {
5+
"pid" : {
6+
"field_type" : "high_level",
7+
"machine_name" : "pid",
8+
"source" : "NXS:/entry/experiment_identifier",
9+
"type" : "string"
10+
},
11+
"proposal_id" : {
12+
"field_type" : "high_level",
13+
"machine_name" : "proposalId",
14+
"source" : "NXS:/entry/experiment_identifier",
15+
"type" : "string"
16+
},
17+
"principal_investigator" : {
18+
"field_type" : "high_level",
19+
"machine_name" : "principalInvestigator",
20+
"source" : ["SC:proposals/<proposal_id>:pi_firstname","SC:proposals/<proposal_id>:pi_lastname"],
21+
"type" : "string"
22+
},
23+
"owner" : {
24+
"field_type" : "high_level",
25+
"machine_name" : "owner",
26+
"source" : ["SC:proposals/<proposal_id>:pi_firstname","SC:proposals/<proposal_id>:pi_lastname"],
27+
"type" : "string"
28+
},
29+
"owner_email" : {
30+
"field_type" : "high_level",
31+
"machine_name" : "ownerEmail",
32+
"source" : "SC:proposals/<proposal_id>:pi_email",
33+
"type" : "string"
34+
},
35+
"dataset_name" : {
36+
"field_type" : "high_level",
37+
"machine_name" : "datasetName",
38+
"source" : "NXS:/entry/title",
39+
"type" : "string"
40+
},
41+
"instrument" : {
42+
"machine_name" : "instrument_name",
43+
"source" : "NXS:/entry/instrument/name",
44+
"type" : "string",
45+
"variable" : true
46+
},
47+
"instrument_id" : {
48+
"field_type" : "high_level",
49+
"machine_name" : "instrumentId",
50+
"source" : "SC:instruments?filter=%7B%22where%22%20%3A%20%7B%20%22name%22%20%3A%20%22coda%22%20%7D%20%7D:id",
51+
"type" : "string"
52+
},
53+
"location" : {
54+
"field_type" : "high_level",
55+
"machine_name" : "location",
56+
"source" : "ESS:CODA:<instrument_name>",
57+
"type" : "string"
58+
},
59+
"start_time" : {
60+
"field_type" : "scientific_metadata",
61+
"machine_name" : "start_time",
62+
"human_name" : "Start Time",
63+
"source" : "NXS:/entry/start_time",
64+
"transformation" : "timestamp_to_iso8601",
65+
"type" : "date"
66+
},
67+
"end_time" : {
68+
"field_type" : "scientific_metadata",
69+
"machine_name" : "end_time",
70+
"human_name" : "End Time",
71+
"source" : "NXS:/entry/end_time",
72+
"transformation" : "timestamp_to_iso8601",
73+
"type" : "date"
74+
},
75+
"run_number" : {
76+
"field_type" : "scientific_metadata",
77+
"machine_name" : "run_number",
78+
"human_name" : "Run Number",
79+
"source" : "NXS:/entry/entry_identifier",
80+
"type" : "integer"
81+
},
82+
"job_id" : {
83+
"field_type" : "scientific_metadata",
84+
"machine_name" : "job_id",
85+
"human_name" : "Job Id",
86+
"source" : "NXS:/entry/entry_identifier_uuid",
87+
"type" : "integer"
88+
},
89+
"acquisition_team_members" : {
90+
"field_type" : "scientific_metadata",
91+
"machine_name" : "acquisition_team_members",
92+
"human_name" : "Acquisition Team Members",
93+
"source" : "NXS:/entry/user_*/name",
94+
"separator" : " , ",
95+
"type" : "string"
96+
}
97+
}
98+
}
+112
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
{
2+
"instrument": "coda",
3+
"selector": "file:starts_with:/ess/data/coda",
4+
"schema": {
5+
"pid": {
6+
"field_type": "high_level",
7+
"machine_name": "pid",
8+
"source": "NXS:/entry/entry_identifier_uuid",
9+
"type": "string"
10+
},
11+
"type" : {
12+
"field_type": "high_level",
13+
"machine_name": "type",
14+
"value": "raw",
15+
"type": "string"
16+
},
17+
"proposal_id": {
18+
"field_type": "high_level",
19+
"machine_name": "proposalId",
20+
"source": "NXS:/entry/experiment_identifier",
21+
"type": "string",
22+
"variable": true
23+
},
24+
"principal_investigator": {
25+
"field_type": "high_level",
26+
"machine_name": "principalInvestigator",
27+
"source": [
28+
"SC:proposals/<proposal_id>:pi_firstname",
29+
"SC:proposals/<proposal_id>:pi_lastname"
30+
],
31+
"separator" : " ",
32+
"type": "string"
33+
},
34+
"owner": {
35+
"field_type": "high_level",
36+
"machine_name": "owner",
37+
"source": [
38+
"SC:proposals/<proposal_id>:pi_firstname",
39+
"SC:proposals/<proposal_id>:pi_lastname"
40+
],
41+
"type": "string"
42+
},
43+
"owner_email": {
44+
"field_type": "high_level",
45+
"machine_name": "ownerEmail",
46+
"source": "SC:proposals/<proposal_id>:pi_email",
47+
"type": "string"
48+
},
49+
"dataset_name": {
50+
"field_type": "high_level",
51+
"machine_name": "datasetName",
52+
"source": "NXS:/entry/title",
53+
"type": "string"
54+
},
55+
"instrument": {
56+
"machine_name": "instrument_name",
57+
"source": "NXS:/entry/instrument/name",
58+
"type": "string",
59+
"variable": true
60+
},
61+
"instrument_id": {
62+
"field_type": "high_level",
63+
"machine_name": "instrumentId",
64+
"source": "SC:instruments?filter=%7B%22where%22%20%3A%20%7B%20%22name%22%20%3A%20%22coda%22%20%7D%20%7D:id",
65+
"type": "string"
66+
},
67+
"location": {
68+
"field_type": "high_level",
69+
"machine_name": "location",
70+
"source": "ESS:CODA:<instrument_name>",
71+
"type": "string"
72+
},
73+
"start_time": {
74+
"field_type": "scientific_metadata",
75+
"machine_name": "start_time",
76+
"human_name": "Start Time",
77+
"source": "NXS:/entry/start_time",
78+
"transformation": "timestamp_to_iso8601",
79+
"type": "date"
80+
},
81+
"end_time": {
82+
"field_type": "scientific_metadata",
83+
"machine_name": "end_time",
84+
"human_name": "End Time",
85+
"source": "NXS:/entry/end_time",
86+
"transformation": "timestamp_to_iso8601",
87+
"type": "date"
88+
},
89+
"run_number": {
90+
"field_type": "scientific_metadata",
91+
"machine_name": "run_number",
92+
"human_name": "Run Number",
93+
"source": "NXS:/entry/entry_identifier",
94+
"type": "integer"
95+
},
96+
"job_id": {
97+
"field_type": "scientific_metadata",
98+
"machine_name": "job_id",
99+
"human_name": "Job Id",
100+
"source": "NXS:/entry/entry_identifier_uuid",
101+
"type": "integer"
102+
},
103+
"acquisition_team_members": {
104+
"field_type": "scientific_metadata",
105+
"machine_name": "acquisition_team_members",
106+
"human_name": "Acquisition Team Members",
107+
"source": "NXS:/entry/user_*/name",
108+
"separator": " , ",
109+
"type": "string"
110+
}
111+
}
112+
}

0 commit comments

Comments
 (0)