Date Converter

All about writing scripts for Celestia in Lua and the .cel system
Topic author
don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 4 months
Location: Colorado, USA (7000 ft)

Date Converter

Post #1by don » 20.04.2004, 19:49

A script that allows you to enter either a Calendar or Julian date/time, and then displays the converted date/time for you. This replaces the GetJulianDate script I posted yesterday.

Get the file here: http://www.donandcarla.com/Celestia/celx_scripting/DateConverter_v1-0.celx.txt

Enjoy!
-Don G.
My Celestia Scripting Resources page

Avatar: Total Lunar Eclipse from our back yard, Oct 2004. Panasonic FZ1 digital camera (no telescope), 36X digital zoom, 8 second exposure at f6.5.

Harry
Posts: 559
Joined: 05.09.2003
With us: 21 years 2 months
Location: Germany

Re: Date Converter

Post #2by Harry » 20.04.2004, 22:35

don wrote:A script that allows you to enter either a Calendar or Julian date/time, and then displays the converted date/time for you. This replaces the GetJulianDate script I posted yesterday.


Woohoo, Don, seems you really got into celx-scripting! Keep up the good work.

This is really nice - using Celestia to convert dates seems more "natural" than using an external converter :)

Harald

Topic author
don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 4 months
Location: Colorado, USA (7000 ft)

Post #3by don » 20.04.2004, 22:42

Thanks Harald. Just havin' some fun! :D

Got any good ideas for more utilities or functions?
-Don G.

My Celestia Scripting Resources page



Avatar: Total Lunar Eclipse from our back yard, Oct 2004. Panasonic FZ1 digital camera (no telescope), 36X digital zoom, 8 second exposure at f6.5.

Harry
Posts: 559
Joined: 05.09.2003
With us: 21 years 2 months
Location: Germany

Post #4by Harry » 20.04.2004, 23:19

don wrote:Thanks Harald. Just havin' some fun! :D

Got any good ideas for more utilities or functions?

Not really. Had some "fun" two days ago with writing a script to display azimuth (and eventually altitude/elevation) of your current view relative to the ground below you of the selected planet (typically earth). It's not ready yet (I am not even sure if the result is correct ;), for some part because I used it to test a method to display it's text in the normal celestia HUD (above the speed display) instead of the big white overlay.

Harald

Topic author
don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 4 months
Location: Colorado, USA (7000 ft)

Post #5by don » 21.04.2004, 00:07

Harry wrote:Had some "fun" two days ago with writing a script to display azimuth (and eventually altitude/elevation) of your current view ...

That sounds like a fun project.

Since you're still working on it, here are a couple of ideas to consider...

Now That Celx has data entry, how about allowing the user to enter the coordinates and then having Celestia center on them?

What about switching between azimuth / elevation and RA / Dec (Right Ascention and Declination) values?
-Don G.

My Celestia Scripting Resources page



Avatar: Total Lunar Eclipse from our back yard, Oct 2004. Panasonic FZ1 digital camera (no telescope), 36X digital zoom, 8 second exposure at f6.5.

Harry
Posts: 559
Joined: 05.09.2003
With us: 21 years 2 months
Location: Germany

Post #6by Harry » 21.04.2004, 09:18

don wrote:Now That Celx has data entry, how about allowing the user to enter the coordinates and then having Celestia center on them?
Good idea, thanks!
What about switching between azimuth / elevation and RA / Dec (Right Ascention and Declination) values?

Thought about this too, and it should be a simple addition (perhaps simply display both).

Harald


Return to “Scripting”