Double stars best practice #233
-
|
Hello! What is the best practice for marking stars as double, so that they appear with the corresponding symbol? Is it possible to conditionally The next question will be how to do the same with variables, and perhaps with double + variable 🤓 Best regards. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
The standard way of plotting stars differently is to make multiple calls to the p.stars(where=[_.ccdm.isnull(), _.magnitude < 8])
# plot multiple star systems with the standard circle with a line through it symbol
p.stars(
where=[_.ccdm.notnull(), _.magnitude < 8],
style__marker__symbol="circle_line",
)In the Tycho catalog (which is what the Big Sky catalog is based on), the CCDM identifies components of multiple star systems (so if the CCDM is not null, then it's a multiple star according to the Tycho catalog). I remember seeing a cross reference for WDS and HIP/TYC, but it seems the WDS website is having some issues right now so I can't access it. For variable stars, Starplot does have the standard symbol (circle with a solid dot inside), but the Big Sky catalog (and starplot's star model) does not keep track of variable stars yet. It's something I've been meaning to add :) Handling multiple star systems and variables is something I'd definitely like to improve with starplot, so if you have any suggestions on how to make them easier to work with, let me know! Thanks! Steve |
Beta Was this translation helpful? Give feedback.
-
You can do this in a kind of hacky way right now by defining a custom callable for star labels and using a lookup dictionary to get the WDS id. But, I'm also planning to add support for user-defined fields in catalogs (so for example, you'll be able to include the WDS id in a WDS catalog and then query on it and reference it on the star model itself).
Ah, yeah, I think this is a limitation of using Matplotlib as the rendering backend. One of my longer term goals with Starplot is to build a lightweight SVG backend that would be an alternative to Matplotlib and allow much more control over things like this. |
Beta Was this translation helpful? Give feedback.
The standard way of plotting stars differently is to make multiple calls to the
starsfunction, for example:In the Tycho catalog (which is what the Big Sky catalog is based on), the CCDM identifies components of multiple star systems (so if the CCDM is not null, then it's a multiple star according to the Tycho catalog).
I remember seeing a cross reference for WDS and HIP/TYC, but it seems the WDS website is having some issues right now so I can't access it.
For …