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 dbe844ea0e Make Puritanical 2022-08-06 18:23:35 -06:00
data More sats 2022-08-06 17:22:43 -06:00
examples Add launchtle.py 2019-12-04 17:15:48 +01:00
img Pic with constellations 2022-08-06 16:15:38 -06:00
python Add launchtle.py 2019-12-04 17:15:48 +01:00
source-extractor Make Puritanical 2022-08-06 18:23:35 -06:00
src Make Puritanical 2022-08-06 18:23:35 -06:00
.gitignore Crufty Makefile with src/ and bin/ dirs now 2022-08-06 18:13:13 -06:00
LICENSE Rename LICENSE.md to LICENSE 2019-11-04 21:53:24 +01:00
Makefile Crufty Makefile with src/ and bin/ dirs now 2022-08-06 18:13:13 -06:00
README-upstream.md mv upstream README 2022-07-26 23:56:37 -06:00
README.md TLEs added 2022-08-06 17:09:34 -06:00
ROADMAP.md Update ROADMAP.md 2019-11-04 22:19:31 +01:00

README.md

Giza Sattools

Current state: it works.

skymap-giza rev 20

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.

Features

The giza branch is mostly similar to upstream, but with giza instead of pgplot.

The following (mis?)-features have been added to skymap in the active 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.)

  • Add SatNOGS (now default), last 30 days, Space Stations, Active Satellites, GNSS, and visual TLEs.

  • Update SGDP4 files to latest upstream.

  • Add long options (e.g. --help) on the command line.

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.
  • Small window size with giza in satorbit and satmap.
  • Constellations.
  • Some speed ups.

TODO

  • Slow.
  • Graves.
  • Font, sans serif, placement.

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:

SGP4:

License

Same as upstream license, GPLv3.

Copyright (C) 2022, Jeff Moe