Displaying Distances In Light Years

General discussion about Celestia that doesn't fit into other forums.
Topic author
Reiko
Posts: 1119
Joined: 05.10.2006
Age: 41
With us: 18 years 1 month
Location: Out there...

Displaying Distances In Light Years

Post #1by Reiko » 29.12.2006, 14:07

Is there a way to have distance always display in light years instead of kiloparsecs no matter how far out I am?
I always think in terms of light years instead of parsecs and kiloparsecs. :)

rthorvald
Posts: 1223
Joined: 20.10.2003
With us: 21 years 1 month
Location: Norway

Re: Displaying Distances In Light Years

Post #2by rthorvald » 29.12.2006, 15:26

Reiko wrote:I always think in terms of light years instead of parsecs and kiloparsecs. :)


So do i. I rarely move so far away from the solar system that the numbers becomes meaningless... So i much prefer lightyears.

- rthorvald
Image

Jack@Daniels
Posts: 2
Joined: 29.12.2006
With us: 17 years 10 months
Location: Germany

Light years and other things

Post #3by Jack@Daniels » 29.12.2006, 16:21

Lightyears would be more "imagineable". I know the universe is about 13 bilion Lightyears wide. I have no idea how much parsecs these are. Im generally missing an options menu in celestia. For distances (how far kilometers, aus, lightyears ...) and for stadard options, like resolution (could be move to options menu) and a reset to defaul button would be nice (field of view, magnetude ...).

I hope i didn't stray from subject to far away.

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Post #4by Cham » 29.12.2006, 17:37

I was asking this too, distances in LY and in kpsc.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

BlindedByTheLight
Posts: 485
Joined: 19.03.2005
With us: 19 years 8 months
Location: Los Angeles, CA

Post #5by BlindedByTheLight » 30.12.2006, 08:09

a preference would be best, i think...but barring that, if anyone knows where to tweak what in the code, i can change it when i compile next
Steven Binder, Mac OS X 10.4.10

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Re: Displaying Distances In Light Years

Post #6by t00fri » 30.12.2006, 09:05

rthorvald wrote:
Reiko wrote:I always think in terms of light years instead of parsecs and kiloparsecs. :)

So do i. I rarely move so far away from the solar system that the numbers becomes meaningless... So i much prefer lightyears.

- rthorvald


Runar,

the difference is only a factor of 3.26, anyhow. Yet 'parsec' is the unit that is uniformly used by professional astronomers/astrophysicists/cosmologists.

Bye Fridger
Image

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Post #7by Cham » 30.12.2006, 09:07

Fridger,

the LY is much easier to understand and to visualise. For the students, this is a must. Celestia should show BOTH informations.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #8by t00fri » 30.12.2006, 09:16

Cham wrote:Fridger,

the LY is much easier to understand and to visualise. For the students, this is a must. Celestia should show BOTH informations.


I don't really agree as to intuitiveness. LY is NOT a good unit as to precision, as you sure know. On the other hand, 1 parsec stands for

parallax of one arcsec

It is based on the method of trigonometric parallax, one of the most ancient and standard methods of determining stellar distances.

The actual, exact length of the light-year depends on the length of the reference year used in the calculation, and there is no wide consensus on the reference to be used. Therefore, the light year [ly] is mainly used by Newspapers and popular science magazines, since it "appears" to be more intuitive at first.

If we print out both, the default text output gets longer and longer. How about doing this with the overlay feature in educational versions?

Bye Fridger
Image

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Post #9by Cham » 30.12.2006, 09:23

Fridger,

in ALL introductory classes to astronomy, we, teachers, are using LY. Not parsecs. So, since Celestia is mainly used in schools, LY should be shown in Celestia. Whatever your opinion on this, this is a fact of life. Period.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #10by t00fri » 30.12.2006, 09:28

Cham wrote:Fridger,

in ALL introductory classes to astronomy, we, teachers, are using LY. Not parsecs. So, since Celestia is mainly used in schools, LY should be shown in Celestia. Whatever your opinion on this, this is a fact of life. Period.


A consequence of the fact that "you, teachers" are uniformly using the LY in school is precisely that people ignore the sensible unit of astronomical distances [pc] and retain the LY for the rest of their lifes...

Also in most american schools inches rather than meters are still used....which I do not find convincing at all.


Bye Fridger
Image

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Post #11by Vincent » 30.12.2006, 10:04

Cham,

Displaying distances in [ly] could be done with simply adding one single Lua file in your extras folder. You wouldn't have to use the whole Lua Edu Tools stuff. As I know that you're interested in it, you could do the same with the display of RA/Dec, for example...

As ElChristou suggested to me, I'm thinking about releasing some of the features of the Lua Tools separately. This way, users could make their own setting, by simply adding the relevant files in the extras folder. Do you (and other users) think it is worth spending time on this ?
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3

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

Post #12by selden » 30.12.2006, 12:21

Vincent,

Yes, I think it would be a worthwhile project.
Selden

Avatar
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 11 months

Post #13by Chuft-Captain » 30.12.2006, 13:31

Notwithstanding the parsec versus LY argument, I think it would be a useful feature to allow user control over ANY displayed units, at any time, within reason. (This could be a toggle thru the different distance scales from metres -> km -> AU -> LY -> parsecs -> kPc -> MPc ) Have I missed any???

BTW. Velocity as well as distance should be also expressed in the specified units. eg. m/s -> km/h or km/s, etc...

This would allow both the purists and the plebsto be happy, making the argument superfluous.
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #14by t00fri » 30.12.2006, 13:37

Chuft-Captain wrote:Notwithstanding the parsec versus LY argument, I think it would be a useful feature to allow user control over ANY displayed units, at any time, within reason. (This could be a toggle thru the different distance scales from metres -> km -> AU -> LY -> parsecs -> kPc -> MPc ) Have I missed any???

BTW. Velocity as well as distance should be also expressed in the specified units. eg. m/s -> km/h or km/s, etc...

This would allow both the purists and the plebsto be happy, making the argument superfluous.


How about printing out radii of celestial objects in miles? ;-) After all this unit is still used a lot in American/British schools and daily life. Right?


Bye Fridger
Last edited by t00fri on 30.12.2006, 13:43, edited 1 time in total.
Image

Fightspit
Posts: 510
Joined: 15.05.2005
With us: 19 years 6 months

Post #15by Fightspit » 30.12.2006, 13:42

t00fri wrote:
How about printing out radii of celestial objects in miles? ;-) After all this unit is still used a lot in schools and daily life. Right?


Bye Fridger


In France, I (and all people :wink:) never use miles but meters (in school or in daily life) :wink:
Motherboard: Intel D975XBX2
Processor: Intel Core2 E6700 @ 3Ghz
Ram: Corsair 2 x 1GB DDR2 PC6400
Video Card: Nvidia GeForce 8800 GTX 768MB GDDR3 384 bits PCI-Express 16x
HDD: Western Digital Raptor 150GB 10000 rpm
OS: Windows Vista Business 32 bits

Avatar
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 11 months

Post #16by Chuft-Captain » 30.12.2006, 13:55

t00fri wrote:How about printing out radii of celestial objects in miles? ;-) After all this unit is still used a lot in American/British schools and daily life. Right?

Bye Fridger
:lol: Why not feet or inches?

Seriously though, SI units should be the default wherever possible, however I see no good reason to prevent users from selecting their units of preference (at least for display purposes) where possible.
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

Fightspit
Posts: 510
Joined: 15.05.2005
With us: 19 years 6 months

Post #17by Fightspit » 30.12.2006, 14:00

So, I decided to put in nanometer for all distance and we will have a lot of zeros 8) in the screen, beautiful ? :wink:
Motherboard: Intel D975XBX2
Processor: Intel Core2 E6700 @ 3Ghz
Ram: Corsair 2 x 1GB DDR2 PC6400
Video Card: Nvidia GeForce 8800 GTX 768MB GDDR3 384 bits PCI-Express 16x
HDD: Western Digital Raptor 150GB 10000 rpm
OS: Windows Vista Business 32 bits

Avatar
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 11 months

Post #18by Chuft-Captain » 30.12.2006, 14:32

Actually, from the perspective of an addon creator, there are situations where one might like to be able to accurately position an object defined in an STC file at the same location as another object defined in an SSC file, however the distance units used for STC objects are different to those used in SSC files.
This means we have to work out the conversion factors used by celestia between units.
In this circumstance it would be very convenient if Celestia could toggle between different units and give the correct conversion factor.

EDIT: Actually, from a creators viewpoint it would be more useful to be able to specify the units in the STC or SSC file. eg. Even in SSC's where the parent object is a star, semimajor axis must apparently be defined in AU's; whereas when the parent object is a planet, then it's Km's.

For argument's sake, let's say I wanted to place a Black Hole (defined in an SSC file), at the center of a Moon (which is defined in an SSC).
Last edited by Chuft-Captain on 30.12.2006, 14:47, edited 1 time in total.
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

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

Post #19by selden » 30.12.2006, 14:37

Please remember that Lua/CelX is a general purpose programming language. It seems to me that providing a units conversion popup would be a reasonable project for someone who would like to learn more about Celx scripting.
Selden

rthorvald
Posts: 1223
Joined: 20.10.2003
With us: 21 years 1 month
Location: Norway

Re: Displaying Distances In Light Years

Post #20by rthorvald » 30.12.2006, 15:01

t00fri wrote:the difference is only a factor of 3.26, anyhow. Yet 'parsec' is the unit that is uniformly used by professional astronomers/astrophysicists/cosmologists.

While i understand your need for accuracy, and so the preference for parsecs, to me it is just confusing... Because light-years gives me a sense of where i am (no matter how illusory the feeling is, since one really can??t grasp the scale of even a light-year), it still is a clue i can orient myself by. Parsecs i have no gut feeling about at all.

It seems to me the optimal solution would be the ability to toggle between the two. Maybe one could set the option in the config file, with parsecs as default to cater to the science purists like yourself ;-)

- rthorvald
Image


Return to “Celestia Users”