Modernization of the base of asteroids

All Lua-tools for Celestia in one forum.
Avatar
Topic author
Croc M
Posts: 235
Joined: 10.08.2016
Age: 71
With us: 2 years
Location: Udomlya, Tver region, Russia

Modernization of the base of asteroids

Post #1by Croc » 29.01.2018, 03:28

In the asteroid's declaration, the first line contains the name of the asteroid (+ alternate names separated by a colon) and the parent body.
When you select an asteroid, all its names are displayed at the top of the screen, and the asteroid is positioned with the first name.
An example from the asteroids database Project "Celestia Origin":

Code: Select all

"600 Musa:Musa:1906 UM:1950 RC:1953 GC2" "Sol"

Musa.jpg


The upgraded asteroids database contains 3 alternative variants of the first line:

Code: Select all

#1_"600 Musa:Musa:1906 UM:1950 RC:1953 GC2" "Sol" #1=
#2_"*Муза:600 Musa:Musa:1906 UM" "Sol" #2=
#3_"1906 UM:*Муза:600 Musa:Musa" "Sol" #3=
#4_".:Musa:600 Musa:1906 UM" "Sol" #4=

Note. # 1_, # 2_, # 3, # 4 are blocking signatures.
The base of asteroids becomes operational when any blocking signature is removed. Example with deletion of signature # 4_:

Code: Select all

#1_"600 Musa:Musa:1906 UM:1950 RC:1953 GC2" "Sol" #1=
#2_"*Муза:600 Musa:Musa:1906 UM" "Sol" #2=
#3_"1906 UM:*Муза:600 Musa:Musa" "Sol" #3=
".:Musa:600 Musa:1906 UM" "Sol" #4=

Musa4.jpg


This screenshot shows the entire collection of asteroids "Celestia Origin" (>3500 asteroids)!
If you click on any point, a list of asteroids will appear at the top of the screen and the orbit of the selected asteroid will be displayed.

In the attachment, there are 6 files (asteroids_modern.zip) with different variants of locking the declaration declaration line:
asteroids0.txt is a file-matrix, which created varieties of modernized asteroids
asteroids1.ss_ - base with remote blocking signature # 1_
asteroids2.ss_ - base with remote blocking signature # 2_
asteroids3.ss_ - base with remote blocking signature # 3_
asteroids4.ss_ - base with remote blocking signature # 4_
asteroids5.ss_ - base with remote blocking signature # 4_ with replacement of the next three characters ". : on by a sign" (double quote)

Note. To make the upgraded database workable, you need to replace the file extension (ss_ with ssc) in one of the files.

To be continued...
Attachments
asteroids_modern_07-02-2018.zip
(3.1 MiB) Downloaded 41 times

Avatar
Topic author
Croc M
Posts: 235
Joined: 10.08.2016
Age: 71
With us: 2 years
Location: Udomlya, Tver region, Russia

Post #2by Croc » 29.01.2018, 16:15

If you remove the blocking signature #1_, then the asteroids will be marked with a full name, if any:

Musa-1.jpg


If you replace the blocking signature # 4_ and the next three characters #4_".: with a" (double quote), the asteroids will be indicated by a name (without a registration number) if it is:

Musa5.jpg


If you delete the blocking signature #2_, then the asteroids will be indicated by the full name in Russian, if it exists:

Musa-2.jpg


Option # 2 for users who are not native English speakers. Users can replace the Russian translation of the name with the national variant.
An asterisk (*) in front of the name of the asteroid indicates the national version of the translation. When searching for an asteroid using the "Enter" system, an asterisk (*) is mandatory!

To be continued...

Avatar
Topic author
Croc M
Posts: 235
Joined: 10.08.2016
Age: 71
With us: 2 years
Location: Udomlya, Tver region, Russia

Post #3by Croc » 29.01.2018, 20:53

If you remove the blocking signature #3_, then the asteroids will be marked with a time stamp, if any.
If the asteroid does not have a temporary designation, then the temporary designation is reconstructed. The reconstructed designation has an asterisk (*) at the end.
See the prefix of the ssc file for details.

Musa3.jpg

Avatar
Topic author
Croc M
Posts: 235
Joined: 10.08.2016
Age: 71
With us: 2 years
Location: Udomlya, Tver region, Russia

Post #4by Croc » 30.01.2018, 02:36

Remove the blocking signatures with a text editor. For this purpose, Notepad ++ is well suited. After editing, save the file without BOM. In this topic, in addition to the file matrix asteroids0.txt, there are also upgraded files. If in the future the upgrade function is assigned to the Configuration Manager, then Celestia will have one file, for example, asteroids1.ssc. Another version of the base of asteroids will be created by the Configuration Manager, which, by the final signatures #1= will restore the remote blocking signatures #1_. After that, remove other blocking signatures, for example #3_

Code: Select all

#1_"600 Musa:Musa:1906 UM:1950 RC:1953 GC2" "Sol" #1=
#2_"*Муза:600 Musa:Musa:1906 UM" "Sol" #2=
"1906 UM:*Муза:600 Musa:Musa" "Sol" #3=
#4_".:Musa:600 Musa:1906 UM" "Sol" #4=

Avatar
Topic author
Croc M
Posts: 235
Joined: 10.08.2016
Age: 71
With us: 2 years
Location: Udomlya, Tver region, Russia

Post #5by Croc » 31.01.2018, 03:55

In the collection of asteroids Project "Celestia Origin" parentheses are used in the notation of asteroids, consisting of a registration name + a temporary notation. Example:

Code: Select all

"(21018) 1988 VV1:1988 VV1:2000 AL9" "Sol"

In the upgraded database, parentheses are not used in such cases. Example:

Code: Select all

#1_"21018 1988 VV1:1988 VV1:2000 AL9" "Sol" #1=
#2_"1988 VV1:21018 1988 VV1" "Sol" #2=
#3_"1988 VV1:21018 1988 VV1" "Sol" #3=
#4_".:1988 VV1:21018 1988 VV1" "Sol" #4=

If the name of the asteroid coincides with the name of another celestial body, then an asteroir is added to the name of the asteroid. Example:

Code: Select all

#1_"3 Juno:Juno (asteroid)" "Sol" #1=
#2_"*Юнона (астероид):3 Juno:Juno (asteroid):1804-3*" "Sol" #2=
#3_"1804-3*:*Юнона (астероид):3 Juno:Juno (asteroid)" "Sol" #3=
#4_".:Juno (asteroid):3 Juno:1804-3*" "Sol" #4=

Juno.jpg

Avatar
Topic author
Croc M
Posts: 235
Joined: 10.08.2016
Age: 71
With us: 2 years
Location: Udomlya, Tver region, Russia

Post #6by Croc » 07.02.2018, 07:25

The following errors are found in the 2012 asteroid declaration VP113:
missing lines:
  • Mesh "asteroid.cmod"
  • Epoch 2458000.5 # 2017 Sept 04
  • Period 4090.22680526068

Please correct this in the files:
asteroids0.txt
asteroids1.ss_
asteroids2.ss_
asteroids3.ss_
asteroids4.ss_
asteroids5.ss_

or download the updated distribution, see https://celestia.space/forum/viewtopic.php?p=137883#p137883


Return to “Lua-Tools”

Who is online

Users browsing this forum: 1 guest