1
0
Fork 0
sattools/README.md

174 lines
4.1 KiB
Markdown
Raw Permalink Normal View History

2022-08-06 21:52:38 -06:00
# Libre Sattools
2022-08-06 22:08:41 -06:00
Libre Sattools is a free software fork of parts of Cees Bassa's `sattools`.
2022-08-06 19:45:03 -06:00
2022-08-06 22:13:00 -06:00
Current state: `skymap`, `satmap`, and `satorbit` have been ported to
libre giza. Additional features have been added to `skymap`.
2022-07-30 23:26:37 -06:00
2022-08-06 23:02:16 -06:00
![skymap-giza rev 21](img/skymap-giza-21.png)
2022-07-30 23:26:37 -06:00
2022-07-31 17:34:30 -06:00
See above screenshot from port of `skymap`.
![satmap-giza rev 3](img/satmap-giza-3.png)
See above screenshot from port of `satmap`.
![satorbit-giza rev 3](img/satorbit-giza-3.png)
See above screenshot from port of `satorbit`.
2022-07-30 23:26:37 -06:00
![satid-giza rev 3](img/satid-giza-3.png)
2022-08-11 14:11:52 -06:00
See above screenshot from port of `satid`.
2022-08-20 17:16:31 -06:00
![stvid-example](examples/stvid-sample.png)
PNG of FITS image from `stvid`, used in example below.
2022-08-20 17:10:26 -06:00
![satid-example](examples/satid-sample.png)
Above, screenshot of this command:
```
satid examples/satid-sample.fits
mv satid.png examples/satid-sample.png
```
2022-08-20 17:18:31 -06:00
Note: R.A. and Decl. issue.
Values are read from FITS (?).
2022-08-20 17:10:26 -06:00
2022-07-30 23:26:37 -06:00
2022-08-06 16:15:38 -06:00
# Features
The `giza` branch is mostly similar to upstream, but with
`giza` instead of `pgplot`.
2022-08-06 17:07:35 -06:00
The following (mis?)-features have been added to `skymap` in the active
2022-08-06 16:15:38 -06:00
`spacecruft` branch:
* Optionally resize window on command line with `--width` and `--height`.
(Probably best to just get width and calculate a good height.)
* Optionally change resolution of drawing lines with `--nmax`.
(Probably best to calculate nmax depending on window size.)
2022-08-06 17:09:34 -06:00
* Add SatNOGS (now default), last 30 days, Space Stations, Active Satellites,
GNSS, and visual TLEs.
2022-08-06 16:15:38 -06:00
2022-08-06 19:45:03 -06:00
* Update SGP4 files to latest upstream.
2022-08-06 16:15:38 -06:00
* Add long options (e.g. `--help`) on the command line.
2022-08-06 21:44:55 -06:00
* A local version of bits of qfits is included, so no
2022-08-06 21:27:53 -06:00
upstream install is required to build.
2022-08-06 21:44:55 -06:00
(Are the binary apps needed elsewhere?)
2022-08-06 21:27:53 -06:00
2022-08-06 16:15:38 -06:00
2022-08-06 23:11:01 -06:00
# Build
Development is done in Debian Bookworm (testing).
2022-08-07 00:07:22 -06:00
Tested and working with Debian Bullseye (11/stable)
Doesn't require any dependencies outside of Debian.
2022-08-06 23:11:01 -06:00
```
sudo apt install giza-dev git make dos2unix source-extractor wcslib-dev \
libgsl-dev gfortran libpng-dev libx11-dev libjpeg-dev libexif-dev
git clone https://spacecruft.org/spacecruft/sattools
cd sattools/
make
2022-08-11 15:00:29 -06:00
sudo make install
2022-08-11 15:08:04 -06:00
# To clean
make clean
# To rebuild
make clean
make
2022-08-11 15:00:29 -06:00
# To uninstall
sudo make uninstall
2022-08-06 23:11:01 -06:00
```
Built files get put in the `bin/` directory.
2022-07-27 00:14:26 -06:00
2022-08-06 19:45:03 -06:00
# Usage
```
2022-08-06 23:11:01 -06:00
cd bin/
2022-08-07 00:07:22 -06:00
./tleupdate
# set config in ~/.bashrc XXX
2022-08-06 23:11:01 -06:00
./skymap --help
2022-08-06 19:45:03 -06:00
Usage: skymap [OPTION]
Visualize satellites on a map of the sky.
-t, --time Date/time (yyyy-mm-ddThh:mm:ss.sss) [default: now]
-c, --catalog TLE catalog file [default: satnogs.tle]
-i, --id Satellite ID (NORAD) [default: all]
-R, --ra R.A. [hh:mm:ss.sss]
-D, --decl Decl. [+dd:mm:ss.ss]
-A, --azimuth Azimuth (deg)
-E, --elevation Elevation (deg)
2022-08-06 23:11:01 -06:00
-w, --width Screen width (default: 1024). Set height too.
-g, --height Screen height (default: 768). Set width too.
2022-08-06 19:45:03 -06:00
-n, --nmax nmax line resolution/speed (default 128)
-S, --all-night All night
-Q, --no-stars No stars
-a, --all-objects Show all objects from catalog (default: LEO)
-h, --help This help
-s, --site Site (COSPAR)
-d, --iod IOD observations
-l, --length Trail length [default: 60s]
-P, --planar-id planar search satellite ID
-r, --planar-alt planar search altitude
-V, --visibility-alt altitude for visibility contours
-p, --positions-file File with xyz positions
-L, --longitude manual site longitude (deg)
-B, --latitude manual site latitude (deg)
-H, --elevation manual site elevation (m)
```
2022-07-31 12:39:48 -06:00
2022-08-06 21:52:38 -06:00
# Port
Info about the port to free software `giza` instead of
proprietary and unmaintained `pgplot` can be seen in the `PORT.md` file.
2022-07-31 12:39:48 -06:00
2022-07-31 12:31:13 -06:00
2022-07-26 23:57:50 -06:00
# Upstream
See `README-upstream.md`.
2022-07-27 02:19:54 -06:00
2022-08-06 19:56:48 -06:00
Sattools, GPLv3.
2022-07-31 11:58:26 -06:00
* https://github.com/cbassa/sattools
2022-08-06 22:08:41 -06:00
Upstream has ported many of the tools to Python.
See also:
* https://github.com/cbassa/strf
* https://github.com/cbassa/stvid
* https://github.com/cbassa/asm
* https://github.com/cbassa/stphot
2022-08-06 19:56:48 -06:00
Giza, GPLv2.
2022-07-31 11:58:26 -06:00
* https://danieljprice.github.io/giza
2022-07-27 02:19:54 -06:00
2022-08-06 19:56:48 -06:00
SGP4, LGPLv3:
2022-08-06 12:23:37 -06:00
* https://gitlab.com/pscrawford/dundee_sgp4/
2022-08-06 21:56:16 -06:00
qfits, libre permissive:
* ftp://ftp.eso.org/pub/qfits
2022-08-06 19:56:48 -06:00
2022-07-27 02:19:54 -06:00
# License
2022-08-06 19:56:48 -06:00
Same as upstream `sattools`, GPLv3.
2022-07-27 02:19:54 -06:00
*Copyright (C) 2022, Jeff Moe*