Hi,
I just finished a script which displays the azimuth and elevation of the direction the observer is looking. The display is only activated when near the surface of a planet (I don't think the values make much sense when somewhere in space).
You can find the script here:
show-azimuth-elevation_v1.0.celx or here, together with my other scripts.
The results should be correct, but may not be perfectly precise - please report any problems. It would be great if someone can compare the results with a reference
The script only works with recent Celestia 1.3.2pre-versions, but I don't know which ones
Example usage:
- start the script
- select earth
- select your hometown, land on surface
- you should now see the current azimuth and elevation at the lower border of the screen
- get the position of the next iridium flare from heavens-above.com, and check where it will appear using Celestia
UPDATE:
Version 1.1 is now available. Now RA and Dec are displayed as well. Azimuth and Elevation is always displayed. The base-planet doesn't change automatically and defaults to Earth. To change it, select another planet and press S.
Get it here:
show-azimuth-elevation_v1.1.celx
UPDATE v 1.2
New version: v1.2 (lunar-eclipse edition )
Changes:
You can now enter Azimuth and Elevation: Press "A".
You can now force the horizon to stay horizontal, i.e. to make up always point away from ground: Press "F".
show-azimuth-elevation_v1.2.celx
(or via my website)
Harald
New Script: Azimuth and Elevation (2nd UPDATE)
New Script: Azimuth and Elevation (2nd UPDATE)
Last edited by Harry on 04.05.2004, 20:04, edited 2 times in total.
Nice script Harald!
Will you be adding the RA / Dec mode?
What about being able to select an object in space, after you are on the surface, and have the script display it's Az/Ele or RA/Dec?
Will you be adding the RA / Dec mode?
What about being able to select an object in space, after you are on the surface, and have the script display it's Az/Ele or RA/Dec?
-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.
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.
As soon as I find out the coordinate axis (given in universal coordinates) for RA/Dec...don wrote:Will you be adding the RA / Dec mode?
What about being able to select an object in space, after you are on the surface, and have the script display it's Az/Ele or RA/Dec?
Why not simply center on the object? Then you get the Az/Elev data for the object. I am not sure how the script should decide when to display what - either the Az/Elev for the selected object, or for the center of the screen.
Harald
Not sure exactly what you need, or I'd do a web search for ya <sigh>.Harry wrote:As soon as I find out the coordinate axis (given in universal coordinates) for RA/Dec...
Harry wrote:Why not simply center on the object?
As soon as you select another object, the display goes away. The object needs to be selected in order to center it. But, when centering it, the planet could go off-screen, making it impossible to re-select it in order to re-display the numbers. Catch-22.
Or am I doing something wrong, which is not at all out of the question?
-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.
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.
Did that already, now I know how RA/Dec is defined, but still haven't got the actual values I need - though I should be able to get them.don wrote:Not sure exactly what you need, or I'd do a web search for ya <sigh>
As soon as you select another object, the display goes away.Harry wrote:Why not simply center on the object?
The Az/Elev display goes away (i.e. display "not near surface" warning) when you select another planet, I did not think of that. But it should work fine when only selecting stars, moons etc. However you must keep your current position...
The problem is easily fixable, but maybe it would be even better to hardcode Earth as the reference point for the display - does any other planet make sense?
Harald
Glad to hear it!Harry wrote:Did that already, now I know how RA/Dec is defined, but still haven't got the actual values I need - though I should be able to get them.
Harry wrote:The problem is easily fixable, but maybe it would be even better to hardcode Earth as the reference point for the display - does any other planet make sense?
Probably not unless you were a resident of that planet and had an observatory with printed references to other stellar objects at hand.
But, then you will probably need to make sure that Earth is at least close-at-hand (ie. observer on the Earth's surface), right?
-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.
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.
Personally, I think it'd be very useful for the Az/Elev values to be available no matter which planet you're "on". For example, when figuring out when one of the Mars communications relay satellites is above the horizon when seen from one of the rovers. Or where Cassini is from the point of view of Huygens as it lands.
Selden
don wrote:Probably not unless you were a resident of that planet and had an observatory with printed references to other stellar objects at hand.
Well, I sit corrected. I guess between Celestia and NASA, this is exactly what we've become -- part-time residents of other planets!
-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.
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.
Hey, lookin' good Harald! Both modes *seem* to work okay, on Earth and Mars. I say *seem* because I don't have any texts with actual values.
Thanks for the great script!
Thanks for the great script!
-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.
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.
Sounds great Harald!
Now all I have to do is get my disk drives and space sorted out (this weekend hopefully) and find a big enough time-slot to do some "playing" with scripts. Looking forward to trying it out.
Now all I have to do is get my disk drives and space sorted out (this weekend hopefully) and find a big enough time-slot to do some "playing" with scripts. Looking forward to trying it out.
-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.
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.
Very nice additions Harald!
-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.
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.