Show a line indicating geographic position

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
ChrisA
Posts: 5
Joined: 08.04.2011
With us: 13 years 7 months
Location: Launceston, Tasmania, Australia

Show a line indicating geographic position

Post #1by ChrisA » 14.07.2012, 02:07

I am working on a script to help explain celestial navigation and would like to be able to show a line from the centre of Earth to a navigational star. The point on the Earth's surface through which the line passes would be the stars geographic position. I will also need similar lines from the Earth's centre to the elevated celestial pole and one passing through the observer's assumed position and projecting out into space.

Is this possible?

I have attempted this by editing the asterisms.dat file, but it does not seem possible to use an orbiting body (ie Earth) as an end point for a line.

Any suggestions are eagerly awaited.

Thanks,
ChrisA

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

Re: Show a line indicating geographic position

Post #2by selden » 14.07.2012, 12:38

The way I'd do it would be to create a long, skinny model mesh to be the pointer, use OrbitFrame to place one end at the center of the earth (or perhaps at the observer's position) and use BodyFrame to point its axis toward the appropriate object. I did something similar in my Hale Telescope Addon so the telescope would point toward the desired target.
Selden

Topic author
ChrisA
Posts: 5
Joined: 08.04.2011
With us: 13 years 7 months
Location: Launceston, Tasmania, Australia

Re: Show a line indicating geographic position

Post #3by ChrisA » 18.07.2012, 23:41

Thanks for the advice Selden.
I have created a long thin model and attached it to the Earth as suggested. I have also had a look at your very impressive Hale telescope add on, I can see that there is lots to learn from that. Still a long way to go, but at least it is a start. Unfortunately time has not allowed me to progress any further just yet. I will post an update when I make some progress (or hit a problem).
Thanks again,
ChrisA

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

Re: Show a line indicating geographic position

Post #4by selden » 19.07.2012, 12:49

ChrisA,

You're very welcome.
I'n looking forward to seeing your results.
Selden

jeffmack
Posts: 55
Joined: 10.01.2011
Age: 72
With us: 13 years 10 months
Location: Canasvieiras, Florianópolis, Santa Catarina, Brazil / 27° 25' 54.4" S; 48° 28' 15.9" W; 56 Ft AMSL
Contact:

Re: Show a line indicating geographic position

Post #5by jeffmack » 24.08.2012, 02:20

Keep in mind, however, that the Earth is not a sphere, but is a somewhat flattened oblate spheroid - and that geographic latitude, as is used in celestial navigation, is not measured as the central angle at the Earth's center. It is measured from the line that is normal to the Earth's surface at the location in question. The Earth's central angle at the location in question is called the geocentric latitude, and is not used in celestial navigation. Sextants measure geographic latitude. Geocentric latitude never equals geographic latitude - except at the poles and equator. Elsewhere, the geocentric latitude is always less than the geographic latitude.
System: Dell Novo XPS 13 9370 Notebook; CPU: Intel Core i7-8550U 8th Gen @ 1.80 GHz 1.992 GHz; MB: Dell 0F6P3V
Chipset: Intel Kaby Lake Rev 08; RAM: 16 GB LPDDR3-2133MHz; Graphics: 128 MB Intel UHD Graphics 620; Storage: 512 GB Intel SSD
OS: Windows 10 Pro 64-bit; Celestia: 1.6.1
-Jeff MacKinnon


Return to “Help Central”