Full Example

  1{
  2  "file": {
  3    "name": "Full example scenario",
  4    "description": "Tetrahedron in a rigid frame.",
  5
  6    "contact": "Jane Doe",
  7    "date_created": "2020-04-23",
  8    "date_changed": "2023-02-12",
  9    "version": {"major": 1, "minor": 10},
 10
 11    "file_type": "CTSimU Scenario",
 12    "file_format_version": {"major": 1, "minor": 2}
 13  },
 14
 15  "environment": {
 16    "material_id": "Air",
 17    "temperature": {
 18      "value": 20, "unit": "C",
 19      "uncertainty": {"value": 0.5, "unit": "C"}
 20    }
 21  },
 22
 23  "geometry": {
 24    "detector": {
 25      "center": {
 26        "x": {"value": 400, "unit": "mm"},
 27        "y": {"value":   0, "unit": "mm"},
 28        "z": {"value":   0, "unit": "mm"}
 29      },
 30
 31      "vector_u": {
 32        "x": {"value":  0},
 33        "y": {"value": -1},
 34        "z": {"value":  0}
 35      },
 36      "vector_w": {
 37        "x": {"value":  1},
 38        "y": {"value":  0},
 39        "z": {"value":  0}
 40      },
 41
 42      "deviations": [
 43        {
 44          "type": "translation",
 45          "axis": "x",
 46          "amount": {"value": 0.5, "unit": "mm"},
 47          "known_to_reconstruction": false
 48        },
 49        {
 50          "type": "rotation",
 51          "axis": "w",
 52          "amount": {"value": 2.3e-2, "unit": "rad"},
 53          "known_to_reconstruction": true
 54        },
 55        {
 56          "type": "rotation",
 57          "axis": {
 58            "x": {"value":  2.0},
 59            "y": {"value": -3.0},
 60            "z": {"value":  5.3}
 61          },
 62          "pivot": {
 63            "u": {"value":  1.0, "unit": "mm"},
 64            "v": {"value": -2.0, "unit": "mm"},
 65            "w": {"value":  2.5, "unit": "mm"}
 66          },
 67          "amount": {"value": 1.3, "unit": "deg"},
 68          "known_to_reconstruction": true
 69        }
 70      ]
 71    },
 72
 73    "source": {
 74      "type": "cone",
 75      "beam_divergence": {
 76        "u": {"value": 0, "unit": "deg"},
 77        "v": {"value": 0, "unit": "deg"}
 78      },
 79
 80      "center": {
 81        "x": {"value": 0, "unit": "mm"},
 82        "y": {"value": 0, "unit": "mm"},
 83        "z": {"value": 0, "unit": "mm"}
 84      },
 85
 86      "vector_u": {
 87        "x": {"value":  0},
 88        "y": {"value": -1},
 89        "z": {"value":  0}
 90      },
 91      "vector_w": {
 92        "x": {"value":  1},
 93        "y": {"value":  0},
 94        "z": {"value":  0}
 95      },
 96
 97      "deviations": []
 98    },
 99
100    "stage": {
101      "center": {
102        "x": {"value": 275, "unit": "mm"},
103        "y": {"value":   0, "unit": "mm"},
104        "z": {"value":   0, "unit": "mm"}
105      },
106
107      "vector_u": {
108        "x": {"value":  1},
109        "y": {"value":  0},
110        "z": {"value":  0}
111      },
112      "vector_w": {
113        "x": {"value":  0},
114        "y": {"value":  0},
115        "z": {"value":  1}
116      },
117
118      "deviations": [
119        {
120          "comment": "axis wobble",
121          "type": "rotation",
122          "axis": {
123            "u": {"value": 1},
124            "v": {"value": 1},
125            "w": {"value": 0}
126          },
127          "amount": {"value": 4, "unit": "deg"},
128          "known_to_reconstruction": false
129        }
130      ]
131    }
132  },
133
134  "detector": {
135    "model":        "DT-1",
136    "manufacturer": "Detector Company",
137    "type":         "real",
138    "columns":      {"value": 200, "unit": "px"},
139    "rows":         {"value": 150, "unit": "px"},
140    "pixel_pitch": {
141      "u": {"value": 1.3, "unit": "mm"},
142      "v": {"value": 1.3, "unit": "mm"}
143    },
144    "bit_depth":  {"value": 16},
145    "integration_time": {"value": 0.5, "unit": "s"},
146    "dead_time":  {"value": 50,   "unit": "ms"},
147    "image_lag":  {"value": 0.05, "unit": null},
148    "gray_value": {
149      "imax":   {"value": 45000},
150      "imin":   {"value":   180},
151
152      "factor": {"value": 1.8e13, "unit": "1/J"},
153      "offset": {"value":    180, "unit": null},
154
155      "intensity_characteristics_file": {"value": "detector_gray_values.tsv"},
156      "efficiency_characteristics_file": {"value": "detector_efficiency.tsv"}
157    },
158    "noise": {
159      "snr_at_imax": {"value": 205.3},
160      "noise_characteristics_file": {"value": "detector_noise.tsv"}
161    },
162    "gain": {"value": 3},
163    "unsharpness": {
164      "basic_spatial_resolution": {"value": 0.1, "unit": "mm"},
165      "mtf": {"value": "detector_mtf.tsv"}
166    },
167    "bad_pixel_map": {
168      "file": {"value": "badpixels.raw", "drifts": null},
169      "type": "int16",
170      "endian": "little",
171      "headersize": 0
172    },
173    "scintillator": {
174      "material_id": "CsI",
175      "thickness": {"value": 0.15, "unit": "mm"}
176    },
177    "window": {
178      "front": [
179        {
180          "material_id": "Kapton",
181          "thickness": {"value": 0.13, "unit": "mm"}
182        }
183      ],
184      "rear": []
185    },
186    "filters": {
187      "front": [
188        {
189          "material_id": "Al",
190          "thickness": {"value": 0.2, "unit": "mm"}
191        },
192        {
193          "material_id": "Cu",
194          "thickness": {"value": 0.1, "unit": "mm"}
195        }
196      ],
197      "rear": [
198        {
199          "material_id": "Al",
200          "thickness": {"value": 2.0, "unit": "mm"}
201        }
202      ]
203    }
204  },
205
206  "source": {
207    "model":        "XS-1",
208    "manufacturer": "X-ray Tube Company",
209    "voltage": {"value": 130, "unit": "kV"},
210    "current": {"value": 143, "unit": "uA"},
211    "target": {
212      "material_id": "W",
213      "type": "reflection",
214      "thickness": null,
215      "angle": {
216        "incidence": {"value": 45, "unit": "deg"},
217        "emission":  {"value": 45, "unit": "deg"}
218      }
219    },
220    "spot": {
221      "size": {
222        "u": {"value": 100.0, "unit": "um"},
223        "v": {"value": 100.0, "unit": "um"},
224        "w": {"value":   0.0, "unit": "um"}
225      },
226      "sigma": {
227        "u": {"value":  50.0, "unit": "um"},
228        "v": {"value":  50.0, "unit": "um"},
229        "w": {"value":   0.0, "unit": "um"}
230      },
231      "intensity_map": {
232        "file": {"value": "spot_profile.raw", "drifts": null},
233        "type": "float32",
234        "dim_x": 301,
235        "dim_y": 301,
236        "dim_z": null,
237        "endian": "little",
238        "headersize": 0
239      }
240    },
241    "spectrum": {
242      "monochromatic": false,
243      "file": {"value": "tube_spectrum_130kV.tsv", "drifts": null}
244    },
245    "window": [
246      {
247        "material_id": "Al",
248        "thickness": {"value": 4.0, "unit": "mm"}
249      }
250    ],
251    "filters": [
252      {
253        "material_id": "Brass",
254        "thickness": {"value": 0.2, "unit": "mm"}
255      },
256      {
257        "material_id": "Cu",
258        "thickness": {"value": 0.17, "unit": "mm"}
259      }
260    ]
261  },
262
263  "samples": [
264    {
265      "name": "Tetrahedron",
266      "file": {"value": "tetra.stl", "drifts": null},
267      "unit": "mm",
268      "scaling_factor": {
269        "r": {"value": 0.75, "drifts": null},
270        "s": {"value": 0.75, "drifts": null},
271        "t": {"value": 0.75, "drifts": null}
272      },
273      "material_id": "Glass Ceramic",
274      "position": {
275        "center": {
276          "u": {"value":  0, "unit": "mm"},
277          "v": {"value": 20, "unit": "mm"},
278          "w": {"value":  0, "unit": "mm"}
279        },
280
281        "vector_r": {
282          "u": {"value":  1},
283          "v": {"value":  0},
284          "w": {"value":  0}
285        },
286        "vector_t": {
287          "u": {"value":  0},
288          "v": {"value": -0.2},
289          "w": {"value":  1}
290        },
291
292        "deviations": []
293      }
294    },
295    {
296      "name": "Attachment Frame",
297      "file": {"value": "frame.stl", "drifts": null},
298      "unit": "mm",
299      "scaling_factor": {
300        "r": {"value": 1.0, "drifts": null},
301        "s": {"value": 1.0, "drifts": null},
302        "t": {"value": 1.0, "drifts": null}
303      },
304      "material_id": "Al",
305      "position": {
306        "center": {
307          "x": {"value": 275, "unit": "mm"},
308          "y": {"value":   0, "unit": "mm"},
309          "z": {"value":   0, "unit": "mm"}
310        },
311
312        "vector_r": {
313          "x": {"value":  1},
314          "y": {"value":  0},
315          "z": {"value":  0}
316        },
317        "vector_t": {
318          "x": {"value":  0},
319          "y": {"value":  1},
320          "z": {"value":  0}
321        },
322
323        "deviations": []
324      }
325    }
326  ],
327
328  "acquisition": {
329    "start_angle": {"value":   0, "unit": "deg"},
330    "stop_angle":  {"value": 320, "unit": "deg"},
331    "direction": "CCW",
332    "scan_mode": "stop+go",
333    "scan_speed": null,
334    "number_of_projections": 21,
335    "include_final_angle": true,
336    "frame_average": 3,
337    "dark_field": {
338      "number": 1,
339      "frame_average": 1,
340      "ideal": true,
341      "correction": false
342    },
343    "flat_field": {
344      "number": 3,
345      "frame_average": 20,
346      "ideal": false,
347      "correction": false
348    },
349    "pixel_binning": {"u": 1, "v": 1},
350    "scattering": false
351  },
352
353  "materials": [
354    {
355      "id":   "Air",
356      "name": "Air",
357      "density": {"value": 1.293, "unit": "kg/m^3"},
358      "composition": [
359        {
360          "formula": {"value": "N2"},
361          "mass_fraction": {"value": 0.7552}
362        },
363        {
364          "formula": {"value": "O2"},
365          "mass_fraction": {"value": 0.2314}
366        },
367        {
368          "formula": {"value": "Ar"},
369          "mass_fraction": {"value": 0.0128}
370        },
371        {
372          "formula": {"value": "CO2"},
373          "mass_fraction": {"value": 0.0006}
374        }
375      ]
376    },
377    {
378      "id":   "Al",
379      "name": "Aluminium",
380      "density": {"value": 2.6989, "unit": "g/cm^3"},
381      "composition": [
382        {
383          "formula": {"value": "Al"},
384          "mass_fraction": {"value": 1}
385        }
386      ]
387    },
388    {
389      "id":   "W",
390      "name": "Tungsten",
391      "density": {"value": 19.25, "unit": "g/cm^3"},
392      "composition": [
393        {
394          "formula": {"value": "W"},
395          "mass_fraction": {"value": 1}
396        }
397      ]
398    },
399    {
400      "id":   "CsI",
401      "name": "Caesium Iodide",
402      "density": {"value": 4.51, "unit": "g/cm^3"},
403      "composition": [
404        {
405          "formula": {"value": "CsI"},
406          "mass_fraction": {"value": 1}
407        }
408      ]
409    },
410    {
411      "id":   "Brass",
412      "name": "Brass",
413      "density": {"value": 8860, "unit": "kg/m^3"},
414      "composition": [
415        {
416          "formula": {"value": "CuZn5"},
417          "mass_fraction": {"value": 1}
418        }
419      ]
420    },
421    {
422      "id":   "Cu",
423      "name": "Copper",
424      "density": {"value": 8.92, "unit": "g/cm^3"},
425      "composition": [
426        {
427          "formula": {"value": "Cu"},
428          "mass_fraction": {"value": 1}
429        }
430      ]
431    },
432    {
433      "id":   "Kapton",
434      "name": "Kapton 50HN (Polyimide film)",
435      "density": {"value": 1.42, "unit": "g/cm^3"},
436      "composition": [
437        {
438          "formula": {"value": "C16H14N4O4"},
439          "mass_fraction": {"value": 1}
440        }
441      ]
442    },
443    {
444      "id":   "Glass Ceramic",
445      "name": "Glass Ceramic",
446      "density": {"value": 2.53, "unit": "g/cm^3", "drifts": null},
447      "composition": [
448        {
449          "formula": {"value": "Al2O3", "drifts": null},
450          "mass_fraction": {"value": 0.4, "drifts": null}
451        },
452        {
453          "formula": {"value": "SiO2", "drifts": null},
454          "mass_fraction": {"value": 0.6, "drifts": null}
455        }
456      ]
457    }
458  ],
459
460  "simulation": {
461    "aRTist": {
462      "multisampling_detector": {"value": "3x3"},
463      "multisampling_spot": {"value": "30"},
464      "spectral_resolution": {"value": 1, "unit": "keV"},
465      "scattering_mcray_photons": {"value": 5e7},
466      "scattering_image_interval": {"value": 5},
467      "long_range_unsharpness": {
468        "extension": {"value": 2, "unit":  "mm"},
469        "ratio":     {"value": 10, "unit": "%"}
470      },
471      "primary_energies": false,
472      "primary_intensities": false
473    }
474  }
475}