Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Science functionality - colours from stellar Source objects #28

Open
AstarVienna opened this issue Apr 11, 2022 · 2 comments
Open

Science functionality - colours from stellar Source objects #28

AstarVienna opened this issue Apr 11, 2022 · 2 comments
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@AstarVienna
Copy link
Collaborator

Wish from the slack channel:
can I directly extract what the colours should be from the source object? I.e. without initiating the OpticalTrain() ?

@AstarVienna AstarVienna added documentation Improvements or additions to documentation help wanted Extra attention is needed ScopeSim-Templates labels Apr 11, 2022
@miguelverdugo
Copy link
Collaborator

Yes. If it uses a speXtra template (can be done with synphot spectra too, with more steps)

e.g.

from scopesim_templates.stellar import star

src = star(filter_name="Ks", amplitude=20, spec_type="a0v", library="pickles")
sp = src.spectra[0]

B = sp.get_magnitude(filter_curve="B", system_name="AB")
V = sp.get_magnitude(filter_curve="V", system_name="AB")

print("B-V color = ", B - V)

@AstarVienna
Copy link
Collaborator Author

AstarVienna commented Apr 12, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants