Solar System Live

Have a question about using Celestia? Check here first for FAQs and helpful advice.
Forum rules
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
Topic author
Weatherlawyer
Posts: 4
Joined: 29.11.2017
With us: 16 days 22 hours

Solar System Live

Post #1by Weatherlawyer » 04.12.2017, 20:16

I am a complete newb with almost no idea about Linux, using Mageia 5 on a 64 bit desk top.
I have been using Solar System Live to try and measure regression (if that is the term for contra rotation?) can someone help me set up something similar so I can grab images at 24 hour steps, please?

Topic author
Weatherlawyer
Posts: 4
Joined: 29.11.2017
With us: 16 days 22 hours

Post #2by Weatherlawyer » 05.12.2017, 12:51

Forum name: Help Central
Description: Have a question about using Celestia? Check here first for FAQs and helpful advice.
Forum rules: Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.

I would like to do that but I am afraid my mental abilities can't cope with searching. It is difficult enough for me to cope with typing as spelling is no longer habit forming for me.

Is there someone out there that has pity on a lost humanoid sole, so far out of his space that he intrudes on the kindness of alien cultures?

Avatar
selden
Posts: 10133
Joined: 04.09.2002
With us: 15 years 3 months
Location: NY, USA

Post #3by selden » 05.12.2017, 12:53

Here's a .celx script to do a framegrab and then advance Celestia's simulation date by one day. You'll have to set the initial viewing conditions manually.

Code: Select all

celestia:takescreenshot("jpg", "test")
tdbdate = celestia:gettime()
celestia:settime(tdbdate+1.0)

On my computer the framegrab is written to Celestia's home directory. The default directory probably is set when you first do a manual screengrab from Celestia's File menu. I'll leave it to you to find out for certain.

Note that as written, the time will advance by the amount of delay between your clicks on the .CELX script's icon. Doing the appropriate math to force the date to be a specific round number is left as an exercise for the student. ;) Lua 5.1 documentation, including its math functions and operators, is available at https://www.lua.org/manual/5.1/


For more information about the .Celx instructions that I've used, see
https://en.wikibooks.org/wiki/Celestia/Celx_Scrip ... ua_Methods/CEL_command_capture
and
https://en.wikibooks.org/wiki/Celestia/Celx_Scrip ... X_Lua_Methods/CEL_command_time
Selden

Topic author
Weatherlawyer
Posts: 4
Joined: 29.11.2017
With us: 16 days 22 hours

Post #4by Weatherlawyer » 06.12.2017, 04:18

[mike@localhost ~]$ celestia:takescreenshot("jpg", "test")
bash: syntax error near unexpected token `"jpg",'
[mike@localhost ~]$ tdbdate = celestia:gettime()
bash: syntax error near unexpected token `('
[mike@localhost ~]$ celestia:settime(tdbdate+1.0)
bash: syntax error near unexpected token `tdbdate+1.0'

Avatar
John Van Vliet
Posts: 2670
Joined: 28.08.2002
With us: 15 years 3 months

Post #5by John Van Vliet » 06.12.2017, 04:37

a no

that is a script you run

it is not 3 individual lines in the terminal

( THIS ALSO is the same on Microsoft os's )

also for very accurate orbital precision and rotation you really need to use the Naif spice data

Also WHY are you using 5 ???
Mageia 6 was released back in july, 5 months ago .

for an example READ!!! the "randstar.celx"

it is in your install location

DEFAULT IS
/usr/bin
/usr/share/celestia/scripts/randstar.celx

the text file "randstar.celx "

Code: Select all

-- Title: Travel to Randomly Picked Stars

obs = celestia:getobserver()
while 1 do
    nstars = celestia:getstarcount()
    index = math.floor(nstars * math.random())
    star = celestia:getstar(index)
    celestia:select(star)
    obs:goto(star, 10)
    wait(10)
end


the script language is even easier to use than Microsoft's "SomeName.bat" batch files

Avatar
selden
Posts: 10133
Joined: 04.09.2002
With us: 15 years 3 months
Location: NY, USA

Post #6by selden » 06.12.2017, 10:04

To put it another way...
Celx scripts must be interpreted by Celestia, not by bash.

There are a variety of ways to tell Celestia to interpret a .celx script. Which ones work for you depends on how (or if) Celestia was "installed" on your computer (whether .celx file types have been associated with Celestia), how Celestia was compiled and built (whether or not your copy of Celestia recognizes appropriate command-line options), and what functionality is provided by the GUI that you're using to interact with Linux (what capabilities it provides for passing file specifications to running programs).

Here are some of the possibilities:

1. If Celestia was "installed," you can just select (double-click with the left-mouse-button) the icon of the .celx script file.

2. Use the operating system's options to manually associate Celestia with the .celx file type. Then you can select (double-click with the left-mouse-button) the icon of the .celx script file.

3. Run Celestia. Celestia's "File" menu usually includes the option "Scripts..." Use it to browse to the text file where you've stored the script.

4. Run Celestia. In the Linux GUI that you're using, drag-and-drop the icon representing the .celx script file onto Celestia's open window.

5. In a terminal window,
Add Celestia's directory to your PATH
cd to the directory containing the .celx script

type the commnd
celestia --url name-of.celx
Selden

Topic author
Weatherlawyer
Posts: 4
Joined: 29.11.2017
With us: 16 days 22 hours

Post #7by Weatherlawyer » 06.12.2017, 19:59

If I mange to learn what you are saying, will I be better off than plugging away one page at a time with fourmillab's ancient offering?
Because I already know the sheer attention span draining process that takes for someone who is recovering from stroke. But at least I get a page full of image I can use to show people.

Thanks for the *help*.


***

Why I am using Mageia 5 is that it works. I have all my files on it and I don't feel the need to do anything about that.

Avatar
John Van Vliet
Posts: 2670
Joined: 28.08.2002
With us: 15 years 3 months

Post #8by John Van Vliet » 06.12.2017, 22:21

it will get easier with time

i was using MinGW ( a windows linux ) in 2001
and moved to fedora 4 in 2005 as my full time operating system

and well selden's are i believe "impeccable"


Return to “Help Central”

Who is online

Users browsing this forum: 2 guests