GalSim icon indicating copy to clipboard operation
GalSim copied to clipboard

King density profile implementation

Open ejullo opened this issue 4 years ago • 1 comments

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

ejullo avatar Sep 09 '21 13:09 ejullo

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 avatar Sep 09 '21 15:09 rmjarvis