Exporting
SpectroForge can produce several types of output files.
Table of contents
Instrument TOML
A complete snapshot of the instrument configuration — every parameter, slit, window, and feature — saved as a human-readable TOML file.
Save: ≡ → Instrument Load / Store → Export
Load: ≡ → Instrument Load / Store → Load
TOML files are the recommended way to version-control instrument configurations and share designs between collaborators.
PDF Figure
A publication-quality PDF of the focal-plane layout plot.
Open: ≡ → Export PDF
PDF Options
| Option | Range | Default | Description |
|---|---|---|---|
| Width | 1 – 30 in | 6.4 in | Page / figure width |
| Height | 1 – 30 in | 4.8 in | Page / figure height |
| DPI | 72 – 600 | 300 | Raster resolution |
| Label font size | 4 – 24 pt | 8 pt | Font size for axis labels and annotations |
| Line width | 0.1 – 10 | 0.9 | Stroke width for spectral line segments |
| Show windows | checkbox | on | Include mosaic window outlines |
| Show lines | checkbox | on | Include computed spectral segments |
Click Export PDF to download the file.
Mosaic SVG
A scaled vector drawing of the mosaic layout, suitable for machining drawings.
Export: Open the Windows editor → click Download Mosaic SVG
The SVG contains each window as a labelled rectangle with accurate physical dimensions in mm.
Straightener Blob
The straightening curve map computed in the Straighten view can be saved for later reuse.
Export: Straighten view → Export Straightener → saves a .bin file
Load: Straighten view → Load Straightener
Loading a previously saved archive applies the same straightening to a new image without re-running the calibration.
Straightener Pipeline
The straightener blob can be used in the prism-imageproc package to apply the same straightening to images. prism-imageproc is an open-source Python library that can be integrated into user’s custom data reduction pipelines.
3-D PNG Snapshot
A raster snapshot of the current 3-D view.
Export: 3-D Layout view toolbar → Save PNG
The image is downloaded at the current canvas resolution.
Quick-reference Table
| Output | Format | Where |
|---|---|---|
| Instrument config | .toml | ≡ → Export |
| Focal-plane figure | .pdf | ≡ → Export PDF |
| Detector window layout | .svg | Windows editor → Download Mosaic SVG |
| Straightening map | .bin | Straighten view → Export Straightener |
| 3-D view | .png | 3-D Layout toolbar → Save PNG |