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
Jeff Moe eb09dee8c3 GNU style indent 2022-08-06 10:35:56 -06:00
data desig.txt no track 2022-08-06 10:32:44 -06:00
examples Add launchtle.py 2019-12-04 17:15:48 +01:00
img satorbit with lines pic 2022-07-31 17:21:55 -06:00
python Add launchtle.py 2019-12-04 17:15:48 +01:00
sextractor Updated config files 2020-03-15 11:32:55 +01:00
.gitignore Add sample site 2022-08-04 23:44:00 -06:00
DOCKER.md Update DOCKER.md 2019-11-27 13:36:23 -08:00
Dockerfile Initial sattools Dockerfile 2019-11-11 21:35:28 -08:00
LICENSE Rename LICENSE.md to LICENSE 2019-11-04 21:53:24 +01:00
README-upstream.md mv upstream README 2022-07-26 23:56:37 -06:00
README.md TODO: lines, window, font done 2022-08-03 17:09:39 -06:00
ROADMAP.md Update ROADMAP.md 2019-11-04 22:19:31 +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 have giza use pgplot colors 2022-07-27 02:12:47 -06:00
measure.c Fixed longstanding time formatting bug 2020-03-15 11:30:46 +01:00
mvtle.c mvtle: Add CLI help / usage info 2021-09-02 13:04:15 +02: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 Log bad FITS files 2022-04-14 17:19:41 +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 Adjust for iOptron mount 2022-04-14 17:20:21 +02:00
rv2tle.c rv2tle: Add CLI help / usage info 2021-09-02 13:03:35 +02:00
satfit.c Bug in angles expecting degrees, getting arcseconds 2018-03-01 17:15:04 +01:00
satid.c Skip extremely high TLEs, output more info 2022-04-14 17:21:04 +02:00
satmap.c Proper lines not dots in satmap 2022-07-31 17:11:49 -06:00
satorbit.c satorbit with lines not dots. 2022-07-31 17:20:44 -06: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 GNU style indent 2022-08-06 10:35:56 -06:00
slewto.c Adjust for iOptron mount 2022-04-14 17:21:22 +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 Add searching by international designator 2020-03-25 13:47:30 +01:00
tleupdate Get visible TLE 2022-08-04 23:39:49 -06: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

Giza Sattools

Current state: it works.

skymap-giza rev 19

See above screenshot from port of skymap.

satmap-giza rev 3

See above screenshot from port of satmap.

satorbit-giza rev 3

See above screenshot from port of satorbit.

sattools

This is a fork of cbassa's sattools to try to get it to work with free software giza instead of proprietary and unmaintained pgplot.

Install

In Debian: libgiza0 giza-dev etc.

Giza

Here are two examples of how skymap should render, in this case using pgplot (thx Pierros and Cees):

skymap-pgplot-pierros

skymap-pgplot-cees

This is how skymap renders "out-of-the-box" using giza as a drop-in replacement for pgplot:

skymap-giza rev 0

Stars fix:

skymap-giza rev 1

Text fix:

skymap-giza rev 2

Rectangle fix, and grey:

skymap-giza rev 4

More pgplot colors.

skymap-giza rev 5

Giza sizing needs fixing...

skymap-giza rev 6

SatNOGS TLE loads and renders.

skymap-giza rev 7

There is an error that spams out to the console:

%giza - Warning - giza_set_character_height: Invalid character height, character height not set

The character heights are set to various values, typically 0.6, 0.8, and 1.0. Only 1.0 doesn't produce the error. But it renders much larger... This has no errors, but looks bad. Overall need new font.

skymap-giza rev 8

Satellite orbit lines rendering.

skymap-giza rev 9

More, but not rendering so great...

skymap-giza rev 11

Grid, but rendering with dots, not lines...

skymap-giza rev 12

Rest of grid (blue background during day).

skymap-giza rev 13

Equatorial. Hit o when skymap first launches, then it will re-render with a faint equatorial "dot line circle"...

skymap-giza rev 14

Remove broken constellations looks better for now.

skymap-giza rev 15

fix orbit lines, maybe correct. need to confirm against main version.

skymap-giza rev 16

Revert back to original size. Full size now, see top of page.

skymap-giza rev 17

Works

Testing/dev in Debian Bookworm (testing), with giza version 1.3.2.

Out of box, this works:

  • Sun.
  • Moon.
  • Besides the display, all the other functionality works. Can load a satnogs.tle, get satellite info, schedule, etc.

Fixed

skymap, satmap, and satorbit have been ported.

  • Stars.
  • Text header with date, observer, lat/lon/elevation.
  • Footer with R, D etc.
  • Rectangle.
  • Apex renders.
  • Grid renders.
  • Satellites' colors.
  • Orbit lines.
  • FOV (but disabled by default upstream).
  • Lines are dots not lines.
  • Small window size with giza in skymap and satmap.
  • Small window size with giza in satorbit.
  • Font. OK now.

TODO

  • Constellations only partially rendered in skymap. Disabled.
  • Check license status of sgdp4.c and sgdp4h.h.
  • Slow.

Functions

These are pgplot functions used by skymap.

cpgbox
cpgcirc
cpgconl
cpgcont
cpgcurs
cpgdraw
cpgend
cpgeras
cpgmove
cpgmtxt
cpgopen
cpgpap
cpgpt1
cpgqch
cpgqci
cpgqls
cpgrect
cpgsch
cpgsci
cpgscr
cpgsfs
cpgsls
cpgslw
cpgsvp
cpgtext
cpgwnad

Color

Colors 1-15 are used in the color index, documented here:

Colors are off because giza uses it's own palette by default. What is needed is to add giza.h and set this to use pgplot colors:

giza_set_colour_palette(1);

Satorbit

satorbit has the same issues as skymap.

Here is what it looks like out-of-the-box with Giza:

satorbit-giza rev 1

Fixes to colors, and "lines" drawn as dots:

satorbit-giza rev 2

Latest at top of page.

Satmap

satmap has the same issues as skymap.

Here is what it looks like out-of-the-box with Giza:

satmap-giza rev 1

Fixes for color, screensize, and dots for lines... Latest fix at top.

satmap-giza rev 2

Upstream

See README-upstream.md.

Sattools:

Giza:

License

Same as upstream license, GPLv3.

Copyright (C) 2022, Jeff Moe