Asteroids scripted extraction from MPCORB.DAT

Post requests, images, descriptions and reports about work in progress here.
Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Re:

Post #41by t00fri » 07.10.2008, 20:15

selden wrote:I commented on this previously, but in case it was overlooked...

I commented this > 10 years ago in XEphem ;-) , where we already had implemented an automatic TLE element converter (via ftp).

Fridger
Image

emgi
Posts: 8
Joined: 25.09.2009
With us: 15 years 1 month
Location: NL

Re: Asteroids scripted extraction from MPCORB.DAT

Post #42by emgi » 25.09.2009, 13:12

Hi Guillermo,

A fairly late reaction but I only joined this forum today. 8)
Seems that you have made a similar effort as I have done without knowing that yours existed.
It did by then because I wrote a script for this in oct 2008. I even posted it to the Motherlode but I haven't heard anything of them yet. Presumably this means that the file was not accepted. Don't worry, I can live with that. :lol:

Your script looks much better than mine too, I can manage in Perl but only just.
So I will start trying to adapt your script for my purpose and perhaps ask you some questions.
I have one already: How did you handle the unclassified asteroids?

What my purpose is? Ok well, I am developing a game that plays in the solar system and I intend to use a modified version of Celestia as it's graphical interface. Will need a few asteroids there too. :mrgreen:

regards,
Leo

Topic author
abramson
Posts: 408
Joined: 22.07.2003
With us: 21 years 4 months
Location: Bariloche, Argentina

Re: Asteroids scripted extraction from MPCORB.DAT

Post #43by abramson » 25.09.2009, 13:23

Hi, Leo. I'm still here.

My script is thoroughly commented, so you will have no problem following it if you know a little Perl. The script allows to deal with the list of asteroids in many ways. One of them is to extract asteroids of a certain class (say, Trojans) and prepare a celestia catalogue for them. But the functionality goes beyond classes: you can extract a range of asteroids (by their number), or filter by name, or provide physical parameters (orbits, radius...) to generate your favorite catalogue. So, unclassified aasteroids are not a problem, they can be chosen by any other property present in the list.

You are free to use my script for your own purposes, of course. The license is included in the script.

I always thought that the best would be to implement all this in Lua and run it directly from Celestia, but never learned enough Lua...

Regards,

Guillermo

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Re: Asteroids scripted extraction from MPCORB.DAT

Post #44by t00fri » 25.09.2009, 14:34

Here is a little historical reminder from what I did in early 2002: That's how my 7309 Perl-extracted asteroids looked like then:

Image

Fridger
Image

emgi
Posts: 8
Joined: 25.09.2009
With us: 15 years 1 month
Location: NL

Re: Asteroids scripted extraction from MPCORB.DAT

Post #45by emgi » 25.09.2009, 14:43

Looks quite familiar to what I got with the first 4000 asteroids from astorb.dat. 8)

emgi
Posts: 8
Joined: 25.09.2009
With us: 15 years 1 month
Location: NL

Re: Asteroids scripted extraction from MPCORB.DAT

Post #46by emgi » 25.09.2009, 15:08

abramson wrote:Hi, Leo. I'm still here.

My script is thoroughly commented, so you will have no problem following it if you know a little Perl. The script allows to deal with the list of asteroids in many ways. One of them is to extract asteroids of a certain class (say, Trojans) and prepare a celestia catalogue for them. But the functionality goes beyond classes: you can extract a range of asteroids (by their number), or filter by name, or provide physical parameters (orbits, radius...) to generate your favorite catalogue. So, unclassified aasteroids are not a problem, they can be chosen by any other property present in the list.

You are free to use my script for your own purposes, of course. The license is included in the script.

I always thought that the best would be to implement all this in Lua and run it directly from Celestia, but never learned enough Lua...

Regards,

Guillermo

My intention is to store all asteroids (or as many as feasible) in a database, together with most other objects in the solar system. The game software should download a selection of asteroids to a player so that he can fly missions to them without having the screen and cpu clogged with over 400.000 asteroids.
When checking astorb.dat I found that many asteroids are not yet classified into a particular category and that other data like the radius or diameter is missing for many of them as well. If I remember well, my script contains a random generator to assign a feasible radius and class where this data was not available. This is not useful in scientific applications but sufficient for gaming purposes. I intend to keep the game data as realistic as possible so every now and then I will run a diff on astorb.dat to check wheter new data has become available. Currently, I haven't even built the database yet. :|

One other thing about my game-design-idea is that it must contains no guns or other forms of violence.
It should rather be a fairly realistic representation of how spacetravel could be.
When I ever get this project into a working state, it will probably be one of the most boring games around :wink: but this should be compensated for by the realistic imaging that Celestia provides.

Avatar
Hungry4info
Posts: 1133
Joined: 11.09.2005
With us: 19 years 2 months
Location: Indiana, United States

Re: Asteroids scripted extraction from MPCORB.DAT

Post #47by Hungry4info » 26.09.2009, 01:58

If you want to make a non-violent game, you might as well make a scientific/educational game. Space Station builder, or something along those lines. Orbiter is a pretty cool programme.
Current Setup:
Windows 7 64 bit. Celestia 1.6.0.
AMD Athlon Processor, 1.6 Ghz, 3 Gb RAM
ATI Radeon HD 3200 Graphics

emgi
Posts: 8
Joined: 25.09.2009
With us: 15 years 1 month
Location: NL

Re: Asteroids scripted extraction from MPCORB.DAT

Post #48by emgi » 26.09.2009, 08:28

Hungry4info wrote:If you want to make a non-violent game, you might as well make a scientific/educational game. Space Station builder, or something along those lines. Orbiter is a pretty cool programme.

I was indeed thinking of something like that and it certainly should have some educational value.
Building new Space Stations was indeed one of the "activities" that are to be carried out in the game. 8)
Never heard of a game called "Orbiter". I will google on it but perhaps you can provide some additional info as well :?:

regards,
Leo

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Re: Asteroids scripted extraction from MPCORB.DAT

Post #49by selden » 26.09.2009, 11:11

Orbiter is a realistic space flight simulator.
http://www.medphys.ucl.ac.uk/~martins/orbit/orbit.html
Selden

emgi
Posts: 8
Joined: 25.09.2009
With us: 15 years 1 month
Location: NL

Re: Asteroids scripted extraction from MPCORB.DAT

Post #50by emgi » 26.09.2009, 13:34

selden wrote:Orbiter is a realistic space flight simulator.
http://www.medphys.ucl.ac.uk/~martins/orbit/orbit.html

OK, thanks. I already managed to find it via Google. 8) What I am thinking of is a bit more extensive though:
On-line & multiplayer capabilites with a central database server to manage content. If you have ever heard about a game called Vega Strike, you may have an idea about the kind of trade features that I want to implement altough I prefer a bit more realistic approach.
Another 'special' property of my idea is that it will have to be played in real-time. Using an upper speed-limit of 0,33C will enable us to traverse the entire Solar System but it will be terribly boring for real "gamers" as a single trip to anywhere beyond the moon will take hours or even days. That comes in handy as I do not want lots of those around. :mrgreen: What it will do is give an impression of the vastness of only just our own solar system.
A player will live in a virtual world where he needs to make a living by hauling things around in his vessel and do some other things as well. I have no idea about who would be interested in playing a game like this (probably not many :blue: ) but I it was not meant to make me rich and famous. Certainly, it will be something "completely different".

Currently I am almost finished with the outlines (rules etc) of the game and next I have to asess the requirements for the various databases (which will be considerable). :mrgreen: I am familiar with (MySQL) databases so I am pretty confident about that part as well.
The programming stuff comes after that but I did give this matter some thought. What I have come up with so far should be feasible with todays solutions. ETC is 2011. :mrgreen:

Teto
Posts: 19
Joined: 25.03.2009
With us: 15 years 7 months

Re: Asteroids scripted extraction from MPCORB.DAT

Post #51by Teto » 18.10.2009, 17:09

The links don't work anymore... :(

Someone has this archive somewhere :?:

It would be great!
Except if they are in Celestia 1.6, but I don't think so.

Teto.

Topic author
abramson
Posts: 408
Joined: 22.07.2003
With us: 21 years 4 months
Location: Bariloche, Argentina

Re: Asteroids scripted extraction from MPCORB.DAT

Post #52by abramson » 19.10.2009, 19:20

Teto wrote:The links don't work anymore... :(

Thanks for telling, Teto. Some genius in my Institute changed the web servers and all the page addresses. I have updated my links in this thread, I believe. I'll do the same for the SVN builds.

My backup webpage at 110mb (as linked in my signature and elsewhere) also works and has the files.

And no, the scripted extraction of asteroids from the huge databases is not implemented in 1.6.

Cheers,

Guillermo

Avatar
EarthMoon
Posts: 200
Joined: 02.07.2022
With us: 2 years 4 months
Location: Germany

The links are all broken ...

Post #53by EarthMoon » 04.10.2023, 13:16

Can someone pls re-upload MPCORB2SSC or fix the links? :(
Crew: "We are orbiting a black hole."
Control Center: "Do not fly too close to the black hole!"
Crew: "OH OOPS..."

Celestia versions:
1.6.3, 1.7.0 sRGB, 1.6.1 ED (plain)

Current projects:
Celestial (a Celestia-like program written in Python)

Avatar
Gurren Lagann
Posts: 434
Joined: 31.01.2018
Age: 18
With us: 6 years 9 months
Location: State of Rio de Janeiro, Brazil

Post #54by Gurren Lagann » 04.10.2023, 13:27

"The tomorrow we're trying to reach is not a tomorrow you had decided on!"
- Simon the Digger
"Nothing is impossible for me, as long I'm determinated to keep moving forward!"
"If other people aren't going to do it, I'm going to do it myself!"
- Me (Gurren)

Current major projects:
- Aur Cir
- Cel+
- Project Sisyphus
- Populating the Local Group
- An galaxy generator

Avatar
EarthMoon
Posts: 200
Joined: 02.07.2022
With us: 2 years 4 months
Location: Germany

Post #55by EarthMoon » 04.10.2023, 16:52

Oh, thx!
Crew: "We are orbiting a black hole."
Control Center: "Do not fly too close to the black hole!"
Crew: "OH OOPS..."

Celestia versions:
1.6.3, 1.7.0 sRGB, 1.6.1 ED (plain)

Current projects:
Celestial (a Celestia-like program written in Python)

Avatar
TheLostProbe
Posts: 218
Joined: 07.05.2020
Age: 18
With us: 4 years 6 months
Location: City of Port Phillip, Melbourne, Australia

Post #56by TheLostProbe » 09.10.2023, 00:53

you know, normally I'd complain about necroposting but... this is actually being helpful
"Carbon stars with ancient satellites colonized by sentient fungi. Gas giants inhabited by vast meteorological intelligences. Worlds stretched thin across the membranes where the dimensions intersect... impossible to describe with our limited vocabulary."
- Dr. Wallace Breen

Topic author
abramson
Posts: 408
Joined: 22.07.2003
With us: 21 years 4 months
Location: Bariloche, Argentina

Post #57by abramson » 06.04.2024, 22:54

Good to know it's being kept somewhere.
BTW, I don't know what's "necroposting". I'm not dead. Just less active. That script is still useful as it is, I hope somebody will improve it in the future.
Regards, you all,

Guillermo

Avatar
Anthony_B_Russo10
Moderator
Posts: 672
Joined: 03.07.2018
Age: 21
With us: 6 years 4 months
Location: Tallahassee, Florida, US

Post #58by Anthony_B_Russo10 » 07.04.2024, 00:22

abramson wrote:BTW, I don't know what's "necroposting"
Necroposting is when a tread that hasn't gotten a response in years gets a new message.
Anthony B. Russo, I like Pluto. Mod of the Celestia subreddit: https://www.reddit.com/r/Celestiasoftware/
I have over 40 computers, trying to list them here would be a pain.
Responsible for the NEO catalog: https://celestiaproject.space/forum/viewtopic.php?f=23&t=22203
And mod of the Discord server.

Avatar
Gurren Lagann
Posts: 434
Joined: 31.01.2018
Age: 18
With us: 6 years 9 months
Location: State of Rio de Janeiro, Brazil

Post #59by Gurren Lagann » 07.04.2024, 01:03

...plus bring up things unrelated or helpful to the thread. But i think your post is fine!
"The tomorrow we're trying to reach is not a tomorrow you had decided on!"
- Simon the Digger
"Nothing is impossible for me, as long I'm determinated to keep moving forward!"
"If other people aren't going to do it, I'm going to do it myself!"
- Me (Gurren)

Current major projects:
- Aur Cir
- Cel+
- Project Sisyphus
- Populating the Local Group
- An galaxy generator


Return to “Add-on development”