| Crates.io | astrograph-bin |
| lib.rs | astrograph-bin |
| version | 0.1.0 |
| created_at | 2025-02-02 02:11:59.095968+00 |
| updated_at | 2025-02-02 02:11:59.095968+00 |
| description | A library dedicated to provinding astronomical predictions of non-chaotic and deterministic bodies. |
| homepage | |
| repository | https://github.com/2sugarcubes/astrograph |
| max_upload_size | |
| id | 1539184 |
| size | 46,324 |
A binary that assists with generating star-charts for arbitrary universes or solar systems.
You can either compile this binary yourself or use a pre-compiled binary
Ensure you have cargo installed
If you want to run the binary through cargo run cargo run -- {your arguments}
otherwise run cargo build --release or cargo install
You will see some warnings like this warning: astrograph-bin@{version}: Completion file for {shell} has been generated at: "/path/to/astrograph/ target/release/build/astrograph-bin-{hash}/..."
If you want completions for your shell append the appropriate file to your completions file.
cat target/release/build/astrograph-bin-*/astrograph.bash >> ~/.bash_completioncp target/release/build/astrograph-bin-*/_astrograph ~/.local/lib/oh-my-zsh/cache/completions/type target\release\build\astrograph-bin-*\_astrograph.ps1 >> $profileYou can also install the man page by running
sudo cp target/release/build/astrograph-bin-*/out/astrograph.1 /usr/local/share/man/man1/
if you ran cargo cargo build copy the compiled binary where you would like it
(e.g. into your $path, which is what cargo install does)
target/release/astrographNow that the binary is installed you can run
astrograph --output universe.json build --star-count 1000 to generate a
thousand stars. You can then download this file
since we do not automatically generate observatories yet.
Then you can generate observations with this command astrograph simulate -end-time 5 --universe universe.json --observatories observatories.json
to generate observations from all observatories for times 0, 1, 2, 3, and 4