skytwin-cli 0.1.0

Synthetic star-field images with satellite streaks, instrument defects and an exact answer key for every frame
skytwin-cli-0.1.0 is not a library.

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:

cargo install --locked skytwin-cli

Use the command

To render a frame, pass the scene file and the output path to skytwin:

skytwin SCENE OUTPUT

Replace the following:

  • SCENE: The path to the scene file, for example two-streaks.json
  • OUTPUT: The path to the FITS image to write, for example two-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:

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.