GalSim
GalSim copied to clipboard
Spiral profile
Adds a new profile Spiral that creates a logarithmic spiral object, represented by point sources.
The points are created in three dimensions in a disk, with possible inclination along the line of sight and rotations in the plane of the sky. The number of spiral arms is also configurable.
Some examples
two spiral arms
Points in 3d as well as a rendered image
Edge on
More arms
Full scenes
Cool! Would you still add a bulge component separately?
Yes, that can be added separately.
In the color images above, the galaxies have up to three parts
- spiral using the
Spiralclass - knots, using the exact same
Spiralprofile parameters but with fewer points, more flux per point, and bluer color - bulge as a DeVauc profile
Here you can see the knots clearly
This is quite cool, Erin! The images look great.
Some things for discussion
- Mike mentioned that nowadays we should be able to replace the
_sbpproperty with something better. - The use of points in 3d to represent the profile makes the code simple, but a lot of points are needed to make it look right when the spiral is well resolved. This can make it slow to render, even with photon shooting. Is there some way to hack up an analytic form?
Thanks Erin - this is super cool. I was going to ask about computational expense and then you commented on it yourself... it feels to me like there must be some trick one could use, relying on the fact that each point is fundamentally the same exact light profile after PSF convolution, modulo sub-pixel shifts. (I assume we are still making the approximation that there is a single well-defined PSF for the entire Spiral object... i.e. no PSF spatial variation across the Spiral object and no color gradients within the Spiral)
Hi @esheldon - thanks have been quiet on this PR for a while, so I wanted to check in and let you know that we've been discussing tagging GalSim v2.6 in about a month from now. Do you want this feature in the next tagged version, and if so, do you anticipate that timeline working for you to address the review?
I started this as a fun project with my son while on vacation. I haven't had any time since to work on it.
If I don't get to Mike's comments in time, please don't wait for me.
Ah, the vacation project; I can relate to that phenomenon. Thanks for letting us know... we won't wait on this, but if you do find time for it, we can definitely include it.