Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve TLE data management #4

Closed
csete opened this issue Aug 6, 2014 · 4 comments
Closed

Improve TLE data management #4

csete opened this issue Aug 6, 2014 · 4 comments
Assignees

Comments

@csete
Copy link
Owner

csete commented Aug 6, 2014

There are several flaws in the way Gpredict manages TLE data. A summary of how the application behaves now:

  1. Gpredict is distributed with a copy of almost all satellites from http://celestrak.com -- This data becomes out of date within a few weeks and for this to work would require a monthly release.
  2. The first time gpredict is started it checks the user config for satellite data and copies all data from the distribution into user config (regardless of age).
  3. Gpredict also creates a default .qth and a default .mod file.
  4. If the user manually deletes unwanted satellites from the user config, gpredict will recreate these data the next time it is started.
  5. There is no way to remove satellites from the user config and the user ends up with tons of decayed objects in the local config.
  6. When TLE is updated new sats are added (if configured) but obsolete sats are not deleted.
  7. There is no easy way to remove a satellite or a category.
  8. There is no easy way to add a new satellite or a category.

Possible solutions to the flaws:

  1. Don't distribute any satellite data with gpredict.
  2. The first time gpredict is run or if there are no TLE data in the user config, offer to download data from celestrak or import file from local file. If the user chooses to import data from celestrak (one or more of the predefined files e.g. amateur.txt) add those files to the list of files to be fetched when updating TLE from the web. Also create a category based on the name of the imported file.
  3. Default QTH is ok and I suppose we should create a default module using a random satellite from the imported data.
  4. Solved by item 2.
  5. Solved by item 2.
  6. Improve the TLE updater to first update the existing satellites then offer the option to add new satellites and remove obsolete ones. The choices are remembered in the config.
  7. Need a basic satellite editor (perhaps after v1.4)
  8. Need a basic satellite editor (perhaps after v1.4)
@csete csete added this to the v1.4 milestone Aug 6, 2014
@csete csete self-assigned this Aug 6, 2014
csete added a commit that referenced this issue Oct 14, 2014
Change the first time check code to only perform passive checks and properly
return status flags for each check. Leave it to the caller to decide how to
handle missing data.

Warning: These changes break first time configuration.
csete added a commit that referenced this issue Oct 14, 2014
@cureton
Copy link
Contributor

cureton commented Nov 9, 2015

Hi Alex,
I have been thinking about a solution for this for the trsp files. Obviouly they are less dynamic that the TLE files however there may be a parallels. With the updates I have just submitted a pull-request for I realise that it will overwrite user developed trsp files with the distributed ones shoud a user upgrde the release of gpredict.

One solution is to distribute the trsp files in the distribution in the /usr/share/gpredit/trsp location, however upon loading the trsp files, first look in the user area first (~/.config/Gpredict/trsp), then failing that look in the /usr/share/gpredict/trsp location. That was the user can overwrite the system files as they wish.

This approach would also allow the distribution of the trsp and tle files as "volitile" packages in a lnux distribution at they contain only data and not code. Much the same was as the tzdata files are distributed. Therefore updates to "stable" distribution release can be release in a timely manner. (I'm looking at debian here)

This approach suits the trsp files better than the TLE file, but I think the approach has some merit.
What do you think?

@csete
Copy link
Owner Author

csete commented Nov 9, 2015

I think today it makes very little sense to distribute any satellite data files with gpredict. For most users it will be possible to download the current data when they first run the application.

@alexf91
Copy link
Contributor

alexf91 commented Dec 27, 2015

A seperate Github repository for the transponder files might be good.
This way, users of an official release could also update their transponder data and the files would still be under version control.

@csete
Copy link
Owner Author

csete commented Jan 19, 2017

Don't think I will ever have time to finish this, so I am working on a simplified version of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants