skytwin-cli
Synthetic star-field images with satellite streaks, instrument defects and an exact answer key for every frame.
The skytwin-cli crate provides the skytwin command for the
Skytwin simulator. You provide a scene file that
describes the camera, the stars and the targets. The command writes a FITS image and a truth
file that lists every star, streak and target with its position, flux and signal-to-noise
ratio.
Install the command
You need Rust 1.85 or later to build the command. In a terminal, build and install it with Cargo:
Use the command
To render a frame, pass the scene file and the output path to skytwin:
Replace the following:
SCENE: The path to the scene file, for exampletwo-streaks.jsonOUTPUT: The path to the FITS image to write, for exampletwo-streaks.fits
The command also writes the truth file, for example two-streaks.truth.json. To list the
options, such as --seed and --frames, run skytwin --help.
For more information, see the following pages:
- Example scenes:
examples/ - Scene files and the truth file: Scene format
- Instrument profiles: Override a profile
- The Python package and training sets: Skytwin README
- Versioning: Versioning
All Skytwin crates share one release version. Each crate requires exactly that version of the other Skytwin crates.
For more information about the models, see the references.
Licence
Skytwin uses the GNU General Public License, version 3 or later. For the licence terms, see
LICENSE; for third-party data and
code notices, see
THIRD-PARTY-LICENSES.md.
If you use Skytwin in a publication, cite it as described in
CITATION.cff.