Radius 5e3

General physics and astronomy discussions not directly related to Celestia
Topic author
ncc1701d
Posts: 29
Joined: 21.01.2006
With us: 18 years 10 months

Radius 5e3

Post #1by ncc1701d » 17.04.2008, 21:22

Hello all,
I have seen in script for creating a mars axis
cmod_axis.zip
found here
http://www.lns.cornell.edu/~seb/celesti ... les.html#5
the script line:

Radius 5e3

was used.
can someone explain to me what the 5e3 means. I think its obviously a measurement for distance I think.
What might this number mean for example if this radius is compared to the radius of mars?
I want to create axis for other planets but this number in script confuses me.
thanks
steve

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

Re: Radius 5e3

Post #2by t00fri » 17.04.2008, 21:30

ncc1701d wrote:Hello all,
I have seen in script for creating a mars axis
cmod_axis.zip
found here
http://www.lns.cornell.edu/~seb/celesti ... les.html#5
the script line:

Radius 5e3

was used.
can someone explain to me what the 5e3 means. I think its obviously a measurement for distance I think.
What might this number mean for example if this radius is compared to the radius of mars?
I want to create axis for other planets but this number in script confuses me.
thanks
steve

Steve,

this is the scientific/computer notation for (big) numbers:

e1 = 10
e2 = 100
e3 = 1000
...
what is e4 my friend??

Hence 5e3 = 5000

what is 5.3245e3 ??

F.
Image

Topic author
ncc1701d
Posts: 29
Joined: 21.01.2006
With us: 18 years 10 months

Re: Radius 5e3

Post #3by ncc1701d » 17.04.2008, 21:47

I hope I get this right

Is it 5324.5?

Thanks for you help. I had a hunch it was scientific notation but its been long time since I had math class.

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

Re: Radius 5e3

Post #4by selden » 17.04.2008, 21:51

One thing to bear in mind is that the Addon was created for an older version of Celestia before the new orbit and rotational frames were available. As a result, its catalog file had to include orbit and orientation values matching those of the parent body.

When using Celestia v1.5.0 or later, it can be more easily adapted for use with other objects by specifying that its coordinate systems be relative to the parent body.

Code: Select all

"_MarsAxis" "Sol/Mars"
{
   Mesh "axis.cmod"
   Radius 5e3       # 5000km, longer than Mars' equatorial radius of 3396 km

   OrbitFrame { BodyFixed { Center "Sol/Mars"}}
   FixedPosition [ 0 0 0 ]

   BodyFrame { BodyFixed { Center "Sol/Mars"}}
   FixedRotation {}
}


p.s. You don't have to use scientific notation for the Radius value, of course.
Radius 5000
would have done just as well. For some reason, I didn't feel like typing 3 zeroes that day.

p.p.s.
And don't forget that Celestia built from svn includes its own display of coordinate systems' axes, which might be more appropriate for your purposes.
Selden

Avatar
Hungry4info
Posts: 1133
Joined: 11.09.2005
With us: 19 years 3 months
Location: Indiana, United States

Re: Radius 5e3

Post #5by Hungry4info » 17.04.2008, 23:47

ncc1701d wrote:Is it 5324.5?

Good job! You are correct.
Current Setup:
Windows 7 64 bit. Celestia 1.6.0.
AMD Athlon Processor, 1.6 Ghz, 3 Gb RAM
ATI Radeon HD 3200 Graphics

CAP-Team
Posts: 194
Joined: 27.12.2006
Age: 49
With us: 17 years 11 months
Location: Vriezenveen, the Netherlands
Contact:

Re: Radius 5e3

Post #6by CAP-Team » 18.04.2008, 07:25

It's very easy, the number after the e is the number of positions you have to shift the dot (.) to the right. If the number is negative you should shift the dot to the left.
So:

3e3 = 3.0e3 = 3000.0
3e-3 = 3.0-3 = 0.003
Windows 7 Ultimate x64, Intel Core i7 2600K 3.4 Ghz, 4 GB RAM, 120 GB SSD + 1 TB hdd, nVidia GTX460 1 GB, Celestia 1.6.0.xxxx
Download my latest SVN Build


Return to “Physics and Astronomy”