1
0
Fork 0
Forklet of cbassa's sattools for use with free software giza instead of closed pgplot. https://spacecruft.org/spacecruft/sattools
 
 
 
 
Go to file
Cees Bassa a5a7369d4b
Rename LICENSE.md to LICENSE
2019-11-04 21:53:24 +01:00
data Updated designations and sites 2019-11-02 09:02:20 +01:00
sextractor Minor tweaks 2019-11-02 09:00:23 +01:00
.gitignore Update gitignore 2019-11-02 09:04:36 +01:00
LICENSE Rename LICENSE.md to LICENSE 2019-11-04 21:53:24 +01:00
README.md Update README.md 2019-11-04 21:24:57 +01:00
addwcs.c Major update to WCSLIB-5 and general clean up 2018-02-27 22:36:04 +01:00
allnight.c Added help option 2018-02-27 17:19:34 +01:00
angular.c Major update to WCSLIB-5 and general clean up 2018-02-27 22:36:04 +01:00
calibrate.c Major update to WCSLIB-5 and general clean up 2018-02-27 22:36:04 +01:00
confirm.c Major update to WCSLIB-5 and general clean up 2018-02-27 22:36:04 +01:00
csv2tle.c Major update to WCSLIB-5 and general clean up 2018-02-27 22:36:04 +01:00
dec2sex.c Adding a few more tools 2013-09-09 08:36:40 +02:00
deep.c first commit of code 2013-05-18 18:54:11 +01:00
deproject.c Major update to WCSLIB-5 and general clean up 2018-02-27 22:36:04 +01:00
detect.c Major update to WCSLIB-5 and general clean up 2018-02-27 22:36:04 +01:00
dsmin.c first commit of code 2013-05-18 18:54:11 +01:00
fakeiod.c Major update to WCSLIB-5 and general clean up 2018-02-27 22:36:04 +01:00
faketle.c Fixing git status reports 2018-02-27 21:53:14 +01:00
ferror.c Fixed bug in MJD calculation 2015-04-16 09:30:49 +02:00
fitsheader.c Major update to WCSLIB-5 and general clean up 2018-02-27 22:36:04 +01:00
fitskey.c first commit of code 2013-05-18 18:54:11 +01:00
forward.c wcslib-5 gnomic projection has issues. Reverted to stereographic projections 2018-03-11 22:26:08 +01:00
geolon.c Compute geostationary longitudes 2018-02-27 17:22:16 +01:00
imgstat.c Output for az/el info 2014-05-25 10:52:37 +02:00
jpg2fits.c Added option for tracked or stationary imaging 2016-08-10 09:19:09 +02:00
jpgstack.c Misc changes 2013-10-23 16:41:01 +02:00
launchtle.c Misc changes 2017-04-22 18:39:50 +02:00
makefile Bug in angles expecting degrees, getting arcseconds 2018-03-01 17:15:04 +01:00
measure.c Major update to WCSLIB-5 and general clean up 2018-02-27 22:36:04 +01:00
mvtle.c Major update to WCSLIB-5 and general clean up 2018-02-27 22:36:04 +01:00
normal.c Evaluate at TLE epoch 2019-11-02 08:59:53 +01:00
pass.c Added some more radio functionality 2018-04-10 10:41:04 +02:00
pgm2fits.c Misc changes 2017-04-22 18:39:50 +02:00
planscan.c Misc changes 2016-10-23 10:25:05 +02:00
plotfits.c Fix overflow in dynamic range calculation 2019-07-10 16:27:15 +02:00
pnmenc.patch Patch for ffmpeg/libavcodec/pnmenc.c 2017-11-17 22:14:11 +01:00
posmatch.c Added help option 2018-02-27 17:19:34 +01:00
posvel.c Fixed bug in MJD calculation 2015-04-16 09:30:49 +02:00
propagate.c Carry over designation and bstar drag 2019-02-04 18:22:01 +01:00
pstrack.c Major update to WCSLIB-5 and general clean up 2018-02-27 22:36:04 +01:00
rde2iod.c Major update to WCSLIB-5 and general clean up 2018-02-27 22:36:04 +01:00
reduce.c Fix overflows in reduce 2019-07-07 14:18:34 +02:00
residuals.c Bug in angles expecting degrees, getting arcseconds 2018-03-01 17:15:04 +01:00
reverse.c wcslib-5 gnomic projection has issues. Reverted to stereographic projections 2018-03-11 22:26:08 +01:00
runsched.c Use default INDI port 2019-07-10 16:29:53 +02:00
rv2tle.c Merge branch 'master' of https://github.com/cbassa/sattools 2016-07-30 17:20:46 +02:00
satfit.c Bug in angles expecting degrees, getting arcseconds 2018-03-01 17:15:04 +01:00
satid.c Speedup of satellite identifications 2018-05-05 12:37:01 +02:00
satmap.c Updated 2018-02-27 17:27:25 +01:00
satorbit.c satorbit: Add CLI and interactive help texts 2019-07-04 21:18:36 +02:00
satutl.c Major update 2015-05-25 23:16:03 +02:00
satutl.h first commit of code 2013-05-18 18:54:11 +01:00
sex2dec.c Adding a few more tools 2013-09-09 08:36:40 +02:00
sgdp4.c Minor differences 2013-08-04 08:02:44 +02:00
sgdp4h.h Minor changes 2014-10-07 23:41:49 +02:00
simplex.c first commit of code 2013-05-18 18:54:11 +01:00
skymap.c Added manual site specification, toggling apex 2019-11-03 12:38:40 +01:00
slewto.c Use default INDI port 2019-07-10 16:29:53 +02:00
stviewer.c Major update to WCSLIB-5 and general clean up 2018-02-27 22:36:04 +01:00
tle2ole.c Convert TLE to one line elements and back 2013-09-19 12:06:23 +02:00
tle2rv.c Fixed bug in MJD calculation 2015-04-16 09:30:49 +02:00
tleinfo.c tleinfo: Drop superfluous headers in MODE2 (-f) 2019-07-04 23:03:22 +02:00
tleupdate Check if ST_LOGIN exists 2019-11-02 21:24:57 +01:00
uk2iod.c Major update to WCSLIB-5 and general clean up 2018-02-27 22:36:04 +01:00
vadd.c Fixed bug in MJD calculation 2015-04-16 09:30:49 +02:00
versafit.c first commit of code 2013-05-18 18:54:11 +01:00
waitfor.c Misc changes and new additions 2013-10-01 18:53:57 +02:00
wcsfit.c Floats to doubles 2018-03-11 20:37:59 +01:00
xyz2tle.c Major update to WCSLIB-5 and general clean up 2018-02-27 22:36:04 +01:00

README.md

Satellite Tracking Toolkit

sattools is a collection of tools to facilitate photographic and video satellite tracking.

Installation

Requirements

The following software and libraries are required to compile sattools:

  • gfortran
  • gcc
  • make
  • git
  • wcslib-dev
  • libgsl-dev
  • pgplot5
  • libpng-dev
  • libx11-dev
  • libjpeg-dev
  • libexif-dev
  • dos2unix
  • sextractor

On Debian/Ubuntu, these can be installed with sudo apt install git make dos2unix sextractor wcslib-dev pgplot5 libgsl-dev gfortran libpng-dev libx11-dev libjpeg-dev libexif-dev.

Build and install qfits

wget -c ftp://ftp.eso.org/pub/qfits/qfits-5.2.0.tar.gz
gunzip -c qfits-5.2.0.tar.gz | tar xvf -
qfits-5.2.0
chmod +w src/xmemory.c
sed -i -e "s/swapfd = open(fname, O_RDWR | O_CREAT);/swapfd = open(fname, O_RDWR | O_CREAT, 0644);/g" src/xmemory.c
./configure
make
sudo make install

Clone and install sattools

git clone https://github.com/cbassa/sattools.git
cd sattools
make

Setup environment variables

You will need to set the following environment variables to run sattools. Add these to a login file such as .bashrc.

  • ST_COSPAR COSPAR observing site number,use 9990 if you do not have one. Add your site information to $ST_DATADIR/data/sites.txt.
  • ST_DATADIR path to sattools directory (e.g. $HOME/software/sattools)
  • ST_TLEDIR path to TLE directory (e.g. $HOME/tle)
  • ST_OBSDIR path to observations directory (e.g. $HOME/satobs)
  • ST_LOGIN optional space-track.org login info for TLE download (of the form ST_LOGIN="identity=username&password=password")

Final configuration steps

Add the sattools directory with executables to your PATH variable. On Ubuntu this is .profile and should be of the form PATH=<path_to_sattools>:$PATH.

Then reload the .profile file with source $HOME/.profile.

Try to download TLEs using tleupdate, which should now exist in your PATH variable.

Miscellaneous setup notes

  • If you have multiple capture devices you will need to add a /etc/udev/rules.d/99-server.rules file to add symlinks and use them to address a particular camera. sattools will automatically select the camera that is scheduled for each observation. You may use a command such as udevadm info -a -n /dev/video0 to get your capture device attributes and use that to create the rules file. A sample rules file is available as guide in data/. Note that symlinks to the rules file do not work, the rules file must be modified to suit your needs and copied to /etc/udev/rules.d/
  • You should install NTP support on the system and configure time/date to automatically synchronize to time servers.

Tools

  • tleinfo: Display information about a set of TLEs. Example usage:

    • List values (SATNO, YEAR DOY, INCL, ASCN, ARGP, MA, ECC, MM) of the TLEs in the file bulk.tle: tleinfo -H -1
    • List orbital parameters (SEMI, PERIGEE, APOGEE, PERIOD, ECC) of the TLEs in the file bulk.tle: tleinfo -H -1 -a
    • Show human-readable info of the TLE for object 74001: tleinfo -i 74001 -f
  • faketle: Calculate a TLE based on given orbit/launch parameters. Example usage:

    • Assuming a standard GTO launch from Cape Canaveral (latitude 28.5°N), GTO insertion burn (10° E, 0° N) at south-bound equator crossing +1655 seconds after launch, launch at 2019-02-22T01:45:00, perigee/apogee heights 258/59998 km, the pre-launch TLE can be generated with
      faketle -t 2019-02-22T01:45:00 -d 1655 -q 258 -Q 59998 -I 28.5 -m 0 -w 180 -n 10
      
  • pass : Calculate the next passes above a given COSPAR site. Example usage:

    • List all ISS passes (NORAD ID 25544) at Dwingeloo Telescope (COSPAR site ID 9998) for the next 10 hours (3600 seconds) based on the TLE in catalog.tle (drop -a to only show the visible passes)
      pass -i 25544 -s 9998 -l 36000 -c $ST_TLEDIR/catalog.tle -a
      
    • Append -P in order to invoke skymap to plot a skymap and the sky track for each predicted pass
  • satorbit: Show a 3D representation of the earth, the current position, footprint and orbit of the selected object Example usage:

    • Show ISS position, footprint and orbit
      satorbit -i 25544 -c $ST_TLEDIR/catalog.tle
      
  • launchtle: This tool takes an input TLE and launchtime and then corrects the epoch of the TLE for the new launch time, and adjusts the right ascension of the ascending node for how much it would have changed between the old and new launch time. Example usage:

    • Use the given pre-launch TLE of object 70002 (stored in prelaunch.tle) associated with the original launch time of 2018-11-11T03:00:00Z to correct for the new launch time at 2018-11-11T05:00:00Z and store it with a new identifier (70003 here):
      launchtle -c prelaunch.tle -i 70002 -t 2018-11-11T03:00:00 -T 2018-11-11T05:00:00 -I 70003
      
  • tleupdate: Update the local database of TLEs from various sources (Space-Track, inttles and classfd.zip). Usage:

    tleupdate