Not logged in : Login
(Sponging disallowed)

About: Comment on Visualizing Our Place in the Milky Way Galaxy with Mathematica by Jeff Bryant     Goto   Sponge   NotDistinct   Permalink

An Entity of Type : sioc:Item, within Data Space : www.openlinksw.com associated with source document(s)
QRcode icon
http://www.openlinksw.com/describe/?url=http%3A%2F%2Fwww.openlinksw.com%2Fabout%2Fid%2Fentity%2Fhttp%2Fblog.wolfram.com%2F2013%2F08%2F21%2Fvisualizing-our-place-in-the-milky-way-galaxy-with-mathematica%2Fcomment-page-1%2F%23comment-29880

AttributesValues
content
has container
Creator
described by
link
content
  • The choice of which stars you want to plot can vary and when you start plotting this many objects, you need to optimize where possible. The code for querying for the data is about as optimized as it can get, but if you want to plot several thousand stars and maintain their approximate color (not taking brightness into account), the following would be an extension of your code. I’ve hard coded the PlotRange to about 2500 light years. You can make out a nearly spherical distribution of stars with the more distant ones flattening out along the galactic plane and being biased towards the blue end. This is because the stars we can see that are that far away are very luminous stars and tend to be blue. Closer to us, there tend to be more low mass red stars. These fainter red stars are harder to see that far away and so gives an observation bias favoring blue stars at further distances.
    stars = {AstronomicalData[#, "Name"],
    AstronomicalData[#, "RightAscension"],
    AstronomicalData[#, "Declination"],
    AstronomicalData[#, "DistanceLightYears"],
    AstronomicalData[#, "EffectiveTemperature"]} & /@
    AstronomicalData["NakedEyeStar"];

    goodstars =
    Cases[stars, {nam_, ra_?NumberQ, dec_?NumberQ, dist_?NumberQ,
    temp_?NumberQ}];

    Plotting points is more efficient than spheres and using a single Point primitive with the VertexColors option allows for more efficient rendering.

    Graphics3D[{PointSize[0],
    Point[equatorialToCartesian[#[[2 ;; 4]]] & /@ goodstars,
    VertexColors -> (ColorData["BlackBodySpectrum"][#[[5]]] & /@
    goodstars)]}, PlotRange -> 2500, SphericalRegion -> True,
    Background -> Black]

Description
  • The choice of which stars you want to plot can vary and when you start plotting this many objects, you need to optimize where possible. The code for querying for the data is about as optimized as it can get, but if you want to plot several thousand stars and maintain their approximate color (not taking brightness into account), the following would be an extension of your code. I've hard coded the PlotRange to about 2500 light years. You can make out a nearly spherical distribution of stars with the more distant ones flattening out along the galactic plane and being biased towards the blue end. This is because the stars we can see that are that far away are very luminous stars and tend to be blue. Closer to us, there tend to be more low mass red stars. These fainter red stars are harder to see that far away and so gives an observation bias favoring blue stars at further distances. stars = {AstronomicalData[#, "Name"], AstronomicalData[#, "RightAscension"], AstronomicalData[#, "Declination"], AstronomicalData[#, "DistanceLightYears"], AstronomicalData[#, "EffectiveTemperature"]} & /@ AstronomicalData["NakedEyeStar"]; goodstars = Cases[stars, {nam_, ra_?NumberQ, dec_?NumberQ, dist_?NumberQ, temp_?NumberQ}]; Plotting points is more efficient than spheres and using a single Point primitive with the VertexColors option allows for more efficient rendering. Graphics3D[{PointSize[0], Point[equatorialToCartesian[#[[2 ;; 4]]] & /@ goodstars, VertexColors -> (ColorData["BlackBodySpectrum"][#[[5]]] & /@ goodstars)]}, PlotRange -> 2500, SphericalRegion -> True, Background -> Black]
Title
  • Comment on Visualizing Our Place in the Milky Way Galaxy with Mathematica by Jeff Bryant
Link
Title
  • Comment on Visualizing Our Place in the Milky Way Galaxy with Mathematica by Jeff Bryant
type
is topic of
is made of
is container of of
Faceted Search & Find service v1.17_git122 as of Jan 03 2023


Alternative Linked Data Documents: iSPARQL | ODE     Content Formats:   [cxml] [csv]     RDF   [text] [turtle] [ld+json] [rdf+json] [rdf+xml]     ODATA   [atom+xml] [odata+json]     Microdata   [microdata+json] [html]    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 08.03.3330 as of Apr 5 2024, on Linux (x86_64-generic-linux-glibc25), Single-Server Edition (30 GB total memory, 26 GB memory in use)
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2024 OpenLink Software