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

King density profile implementation #1134

Open
ejullo opened this issue Sep 9, 2021 · 1 comment
Open

King density profile implementation #1134

ejullo opened this issue Sep 9, 2021 · 1 comment
Labels
feature request Request for a new feature in GalSim

Comments

@ejullo
Copy link

ejullo commented Sep 9, 2021

Hello
I would like to simulate globular clusters with Galsim. They are usually modelled with a King surface brightness profile. Do you know if this SB is already implemented in Galsim. I couldn't find it.
Eric

@rmjarvis
Copy link
Member

rmjarvis commented Sep 9, 2021

No, it's not. I've thought about adding a class that could take in an arbitrary user-provided function for the surface brightness profile. This might be a good concrete use case to motivate that.

In the meanwhile, one way that might be workable for you is to use InterpolatedImage. You can draw the King profile at some reasonable resolution and then use that class to treat the image as a surface brightness profile, which you can resize, shear, convolve by a PSF, etc.

@rmjarvis rmjarvis added the feature request Request for a new feature in GalSim label Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request for a new feature in GalSim
Projects
None yet
Development

No branches or pull requests

2 participants