MGS is gone.We need a new ssc

General discussion about Celestia that doesn't fit into other forums.
Topic author
danielj
Posts: 1477
Joined: 15.08.2003
With us: 21 years 3 months

MGS is gone.We need a new ssc

Post #1by danielj » 30.11.2006, 00:16

Unfourtanetelly,Mars Global Surveyour is gone.So we need a end comand line to the probe in your ssc.I can??t do this because is it in universal time and anyway,the stc have to be modified,too,so after a specific day of November,no orbit is available.

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

Re: MGS is gone.We need a new ssc

Post #2by rthorvald » 30.11.2006, 01:00

danielj wrote:Unfourtanetelly,Mars Global Surveyour is gone.So we need a end comand line to the probe in your ssc.I can??t do this because is it in universal time and anyway,the stc have to be modified,too,so after a specific day of November,no orbit is available.


danielj, this is so utterly trivial to do yourself that you ought to sit down and learn it. In fact, it??s a perfect opportunity for you to give something back.

All you need is a time converter, of which there are many freely available on the net. I frequently use this one:
http://www.onlineconversion.com/time.htm

... If you want to use julian dates, here??s a good one:
http://aa.usno.navy.mil/data/docs/JulianDate.html
... Though you don??t need to.

Open your SSC file, locate the probe entry and just add "Ending XXXXXXX", supplying the date you need. Then post it here.

- rthorvald
Image

Topic author
danielj
Posts: 1477
Joined: 15.08.2003
With us: 21 years 3 months

Re: MGS is gone.We need a new ssc

Post #3by danielj » 30.11.2006, 01:43

I tried and didn??t work.AT LEAST I tried:

MGS.ssc Code:
Replace "MGS" "Sol/Mars"
{
Class "spacecraft"
Mesh "mgs_F.cmod"
Radius 0.01

EllipticalOrbit
{
Epoch Beggining 2450659.56894
Ending 2454053.56198
Period 0.08127579
SemiMajorAxis 3767.968213
Eccentricity 0.005809
Inclination 93.0092
AscendingNode 28.452982
ArgOfPericenter 267.202961
MeanAnomaly 0.0
}
}

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

Re: MGS is gone.We need a new ssc

Post #4by rthorvald » 30.11.2006, 02:24

danielj wrote:I tried and didn??t work.AT LEAST I tried


Just keep at it :-)

Ok, there is a misplaced "g" in your Beginning declaration, and the Epoch date somehow was left out:

Epoch 2451973.25864
Beginning 2450659.56894
Ending 2454053.56198


So, your MGS.ssc Code with those edits:

Code: Select all

Replace "MGS" "Sol/Mars"
{
   Class         "spacecraft"
   Mesh         "mgs_F.cmod"
   Radius         0.01

   EllipticalOrbit
   {
Epoch             2451973.25864
Beginning 2450659.56894
Ending 2454053.56198
   Period         0.08127579
   SemiMajorAxis      3767.968213
   Eccentricity      0.005809
   Inclination      93.0092
   AscendingNode      28.452982
   ArgOfPericenter      267.202961
   MeanAnomaly      0.0
}
}


- rthorvald
Image

Malenfant
Posts: 1412
Joined: 24.08.2005
With us: 19 years 3 months

Re: MGS is gone.We need a new ssc

Post #5by Malenfant » 30.11.2006, 02:52

danielj wrote:I tried and didn??t work.AT LEAST I tried:


Just as some general advice, you'd probably get more help if you showed that you tried before demanding that people do something to fix a problem for you. At least that means that you've demonstrated that you've made some attempt to solve the problem yourself before resorting to asking others.
My Celestia page: Spica system, planetary magnitudes script, updated demo.cel, Quad system

Topic author
danielj
Posts: 1477
Joined: 15.08.2003
With us: 21 years 3 months

Re: MGS is gone.We need a new ssc

Post #6by danielj » 30.11.2006, 11:52

Actually I review and MGS was launched in November 7,1996,but I know the exact time.I also don??t know the exact time MGS was presumed to be lost.It??s just a guess.The new code:

Replace "MGS" "Sol/Mars"
{
Class "spacecraft"
Mesh "mgs_F.cmod"
Radius 0.01

EllipticalOrbit
{
Epoch 2451973.25864
Begginning 2450394.98958
Ending 2454053.56198
Period 0.08127579
SemiMajorAxis 3767.968213
Eccentricity 0.005809
Inclination 93.0092
AscendingNode 28.452982
ArgOfPericenter 267.202961
MeanAnomaly 0.0
}
}

Topic author
danielj
Posts: 1477
Joined: 15.08.2003
With us: 21 years 3 months

Re: MGS is gone.We need a new ssc

Post #7by danielj » 30.11.2006, 11:54

But MGS is still there.Something is WRONG!

buggs_moran
Posts: 835
Joined: 27.09.2004
With us: 20 years 2 months
Location: Massachusetts, USA

Post #8by buggs_moran » 30.11.2006, 12:17

One thing that is wrong is " Begginning" is still spelled incorrectly as Runar pointed out.

Another problem I have with this is, as far as I know, MGS is not "gone" for sure, it just doesn't function...so it is still in orbit, probably for a long, long time...
Homebrew:
WinXP Pro SP2
Asus A7N8X-E Deluxe
AMD Athlon XP 3000/333 2.16 GHz
1 GB Crucial RAM
80 GB WD SATA drive
ATI AIW 9600XT 128M

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

Re: MGS is gone.We need a new ssc

Post #9by rthorvald » 30.11.2006, 12:26

danielj wrote:But MGS is still there.Something is WRONG!


There is a typo in the "beginning" declaration: you have one letter "g" too many.

Celestia is very literal-minded, so the SSC file breaks if there are errors in spelling.

Here:

Code: Select all

Replace "MGS" "Sol/Mars"
{
   Class         "spacecraft"
   Mesh         "mgs_F.cmod"
   Radius         0.01

   EllipticalOrbit
   {
   Epoch 2451973.25864   
                Beginning 2450394.98958
                Ending 2454053.56198
   Period         0.08127579
   SemiMajorAxis      3767.968213
   Eccentricity      0.005809
   Inclination      93.0092
   AscendingNode      28.452982
   ArgOfPericenter      267.202961
   MeanAnomaly      0.0
   }
}


- rthorvald
Image

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

Post #10by selden » 30.11.2006, 13:11

And don't forget that the Beginning and Ending directives belong *outside* the EllipticalOrbit block. They apply to the entire object definition, not just to the orbit.
Selden

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

Post #11by rthorvald » 30.11.2006, 13:24

selden wrote:And don't forget that the Beginning and Ending directives belong *outside* the EllipticalOrbit block. They apply to the entire object definition, not just to the orbit.


Right. I??m a little tired today, i think...

- rthorvald :roll:
Image

Topic author
danielj
Posts: 1477
Joined: 15.08.2003
With us: 21 years 3 months

Post #12by danielj » 01.12.2006, 11:59

I deleted the extra g and MGS is STILL ORBITING MARS.
Maybe the Begining and Ending directives may be in another place in the ssc...

rthorvald wrote:
selden wrote:And don't forget that the Beginning and Ending directives belong *outside* the EllipticalOrbit block. They apply to the entire object definition, not just to the orbit.

Right. I??m a little tired today, i think...

- rthorvald :roll:

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

Post #13by selden » 01.12.2006, 13:06

Daniel,

Please reread what I wrote.
What does it mean to you?

Especially, do you know what the word "block" means here?

I am using that word as it is used for programming languages. SSC files can be considered programming files.
Selden

Topic author
danielj
Posts: 1477
Joined: 15.08.2003
With us: 21 years 3 months

Post #14by danielj » 01.12.2006, 13:41

I didn??t know ANYTHING about programming language.Sorry...



selden wrote:Daniel,

Please reread what I wrote.
What does it mean to you?

Especially, do you know what the word "block" means here?

I am using that word as it is used for programming languages. SSC files can be considered programming files.

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

Post #15by rthorvald » 01.12.2006, 19:07

danielj wrote:I didn??t know ANYTHING about programming language.Sorry...


Plain english is all that is neccecary to learn this. As Selden wrote, the beginning and end dates must reside outside the elliptical orbit block. If you examine your code, you should understand what that means... A block is a chunk of code that is separate from the rest. In Celestia??s case, everything that is enclosed by { and } is such a block.

So, as you can see, your MGS definition consists of one large block with a smaller one inside it. The smaller one is... The ellipticalorbit.

Now, what do you need to do?

- rthorvald
Image

Topic author
danielj
Posts: 1477
Joined: 15.08.2003
With us: 21 years 3 months

Post #16by danielj » 01.12.2006, 20:19

I think I have to put OUTSIDE Elliptical orbit.Like this:


Beginning 2450394.98958
Ending 2454053.56198

Elliptical Orbit
{
Epoch 2451973.25864

rthorvald wrote:
danielj wrote:I didn??t know ANYTHING about programming language.Sorry...

Plain english is all that is neccecary to learn this. As Selden wrote, the beginning and end dates must reside outside the elliptical orbit block. If you examine your code, you should understand what that means... A block is a chunk of code that is separate from the rest. In Celestia??s case, everything that is enclosed by { and } is such a block.

So, as you can see, your MGS definition consists of one large block with a smaller one inside it. The smaller one is... The ellipticalorbit.

Now, what do you need to do?

- rthorvald

Topic author
danielj
Posts: 1477
Joined: 15.08.2003
With us: 21 years 3 months

Post #17by danielj » 01.12.2006, 20:27

It worked.Thanks

[/code]Replace "MGS" "Sol/Mars"
{
Class "spacecraft"
Mesh "mgs_F.cmod"
Radius 0.01
Begining 2450394.98958
Ending 2454053.56198

EllipticalOrbit
{
Epoch 2451973.25864
Period 0.08127579
SemiMajorAxis 3767.968213
Eccentricity 0.005809
Inclination 93.0092
AscendingNode 28.452982
ArgOfPericenter 267.202961
MeanAnomaly 0.0
}
}
[code][/code]

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

Post #18by t00fri » 01.12.2006, 20:49

Daniel,

following this mess --largely based on typos of yours-- over several days, I have a suggestion to you.

How about some simple proof reading of your writings before mobilizing this forum and peoples' time on your behalf?

Again in your last post you started with [/code] which I am sure you know that it is wrong...


Bye Fridger
Image

Topic author
danielj
Posts: 1477
Joined: 15.08.2003
With us: 21 years 3 months

Post #19by danielj » 02.12.2006, 00:49

Sorry,the code is not in the ssc.
Hust a typo.I don??t now exacty how to use the rich test format.


t00fri wrote:Daniel,

following this mess --largely based on typos of yours-- over several days, I have a suggestion to you.

How about some simple proof reading of your writings before mobilizing this forum and peoples' time on your behalf?

Again in your last post you started with [/code] which I am sure you know that it is wrong...


Bye Fridger

bh
Posts: 1547
Joined: 17.12.2002
With us: 21 years 11 months
Location: Oxford, England

Post #20by bh » 02.12.2006, 10:57

Hehe...
regards...bh.


Return to “Celestia Users”