Towards my final Galaxy Upgrade for 1.5.0 (-> CVS commit)

Discussion forum for Celestia developers; topics may only be started by members of the developers group, but anyone can post replies.
Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #21by t00fri » 22.05.2007, 06:29

Cham,

I had asked Vincent to look over my celx scripts in the light of recent changes that he had implemented into CVS. So indeed there were some modifications in the scripts that may be the cause of your problems.

Since Chris wanted to have a deadline for 1.5.0pre3 input by last Sunday, I did not yet commit my scripts. If it is wanted to commit them nevertheless now, let me know. With Vincent's mods, both galaxy marking scripts work fine for me.

Perhaps you were unaware that the globular cluster M54 is known to be part of Sagittarius dSph. See e.g. here:

http://seds.org/messier/more/sagdeg.html

The boundary of who belongs to the local group is not entirely sharp. I took a scientific listing by an expert on the local group as a guide. In some cases there are also uncertain candidates. See further below.

Here are the updated scripts for download:

http://www.celestiaproject.net/~t00fri/images/z-dist.celx.zip
http://www.celestiaproject.net/~t00fri/images/mark-lg.celx.zip

Bye Fridger
Last edited by t00fri on 22.05.2007, 06:53, edited 2 times in total.
Image

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

Post #22by Cham » 22.05.2007, 06:34

But then what are the scripts which are supposed to work ? Send me the latest one so I could test them. I need both the z-dist and lg celx scripts.

By the way, I'm comparing the LG members with the members listed here :

http://seds.lpl.arizona.edu/~spider/spider/LG/lg.html

They are giving about 5 more members to the LG.

And what do you think about IC 3658 ?

And what about M54 and Sagittarius dSph ? The same object ?
"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
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #23by t00fri » 22.05.2007, 06:42

Cham,

look above your last post. You were responding too fast, while I was still editing...

Bye Fridger
Image

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

Post #24by t00fri » 22.05.2007, 06:51

Find below the reference pages by Mike Irwin,
http://www.ast.cam.ac.uk/~mike/
who is a renowned researcher on the LG. Indeed Ic3568 seems not be part of his list. It must have been on an early other list.

http://www.astro.uu.se/~ns/local_group.html

Bye Fridger
Image

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

Post #25by Cham » 22.05.2007, 06:51

Okay, the two last scripts are now working. Thanks.

Ok about the other subjects too. Maybe we should also mark the other candidate members in yellow ?
"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
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 9 months
Location: Montreal

Post #26by Cham » 22.05.2007, 07:07

There's another very usefull script which is nolonger working. The script below (from Vincent) was marking all galaxies, with colors according to the galactic type (spirals, elliptical, etc). What should be the new version ?

Code: Select all

function mark_galaxy_types()
   for dso in celestia:dso() do
      if dso:getinfo().type == "galaxy" then
         hubbleType = dso:getinfo().hubbleType
         if string.find(hubbleType, "E") then
            dso:mark( "red", "disk", 1, 0.7 )
         elseif string.find(hubbleType, "Irr") then
            dso:mark( "yellow", "disk", 1, 0.7 )
         elseif string.find(hubbleType, "SB") then
            dso:mark( "green", "disk", 1, 0.7 )
         elseif string.find(hubbleType, "S") then
            dso:mark( "blue", "disk", 1, 0.7 )
         end
      end
    end
end

celestia:setrenderflags { markers = true }
mark_galaxy_types()
"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!"

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Post #27by chris » 22.05.2007, 07:14

Cham wrote:There's another very usefull script which is nolonger working. The script below (from Vincent) was marking all galaxies, with colors according to the galactic type (spirals, elliptical, etc). What should be the new version ?

Code: Select all

function mark_galaxy_types()
   for dso in celestia:dso() do
      if dso:getinfo().type == "galaxy" then
         hubbleType = dso:getinfo().hubbleType
         if string.find(hubbleType, "E") then
            dso:mark( "red", "disk", 1, 0.7 )
         elseif string.find(hubbleType, "Irr") then
            dso:mark( "yellow", "disk", 1, 0.7 )
         elseif string.find(hubbleType, "SB") then
            dso:mark( "green", "disk", 1, 0.7 )
         elseif string.find(hubbleType, "S") then
            dso:mark( "blue", "disk", 1, 0.7 )
         end
      end
    end
end

celestia:setrenderflags { markers = true }
mark_galaxy_types()

Change the second line. The function celestia:dso was renamed to celestia:dsos . . .

Code: Select all

function mark_galaxy_types()
   for dso in celestia:dsos() do
      if dso:getinfo().type == "galaxy" then
         hubbleType = dso:getinfo().hubbleType
         if string.find(hubbleType, "E") then
            dso:mark( "red", "disk", 1, 0.7 )
         elseif string.find(hubbleType, "Irr") then
            dso:mark( "yellow", "disk", 1, 0.7 )
         elseif string.find(hubbleType, "SB") then
            dso:mark( "green", "disk", 1, 0.7 )
         elseif string.find(hubbleType, "S") then
            dso:mark( "blue", "disk", 1, 0.7 )
         end
      end
    end
end

celestia:setrenderflags { markers = true }
mark_galaxy_types()


--Chris

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

Post #28by t00fri » 22.05.2007, 07:14

Cham wrote:There's another very usefull script which is nolonger working. The script below (from Vincent) was marking all galaxies, with colors according to the galactic type (spirals, elliptical, etc). What should be the new version ?

Code: Select all

function mark_galaxy_types()
   for dso in celestia:dso() do
      if dso:getinfo().type == "galaxy" then
         hubbleType = dso:getinfo().hubbleType
         if string.find(hubbleType, "E") then
            dso:mark( "red", "disk", 1, 0.7 )
         elseif string.find(hubbleType, "Irr") then
            dso:mark( "yellow", "disk", 1, 0.7 )
         elseif string.find(hubbleType, "SB") then
            dso:mark( "green", "disk", 1, 0.7 )
         elseif string.find(hubbleType, "S") then
            dso:mark( "blue", "disk", 1, 0.7 )
         end
      end
    end
end

celestia:setrenderflags { markers = true }
mark_galaxy_types()


I guess just replacing

celestia:dso() -> celestia:dsos()

should do the trick for now.

Bye Fridger
Image

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

Post #29by Vincent » 22.05.2007, 10:08

Cham,

We took the decision to change the name of the DSO iterator from celestia:dso() into celestia:dsos() to make it coherent with the name of the star iterator which is the plural celestia:stars(). See:
http://celestia.cvs.sourceforge.net/cel ... ortby=date

I made this change very recently, so I haven't had the time yet to edit the scripts I wrote a few weeks ago about galaxies, and to post a message about this change on the corresponding thread. That will be done very soon, though.
@+
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
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 9 months
Location: Montreal

Post #30by Cham » 22.05.2007, 15:18

Ok, the script is now working again. Thanks !
"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!"


Return to “Ideas & News”