Published October 28, 2026 | Journal article | Version v1 | https://doi.org/10.21105/joss.10928

Shear Mapping in Python (SMPy): Modular, Extensible, and Accessible Dark Matter Mapping

  • 1. Department of Physics, Northeastern University, Boston, MA, USA
  • 2. Institute of Astronomy, University of Cambridge, Cambridge, UK
  • 3. Department of Applied Mathematics and Theoretical Physics, University of Cambridge, Cambridge, UK
  • 4. Kavli Institute for Cosmology, University of Cambridge, Cambridge, UK
  • 5. Center for Data Science, New York University, New York, NY, USA

Files

joss.10928.pdf

Files (66.9 MB)

Name Size Download all
md5:ec6dadff23822f76d1de9577fda27e80
474.8 kB Preview Download
md5:a64f1d9f81654ff51e484b2288268e7d
66.4 MB Preview Download

Additional details

Dates

Issued
October 28, 2026

References

  1. Vassilakis, G. N., McCleary, J. E., Amit, M., & Saha, S. (2026). Shear Mapping in Python (SMPy): Modular, Extensible, and Accessible Dark Matter Mapping (Version v1.0.0) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.23710092
  2. Umetsu, K. (2020). Cluster–galaxy weak lensing. The Astronomy and Astrophysics Review, 28(1), Article 7. https://doi.org/10.1007/s00159-020-00129-w
  3. Gill, A. S., Benton, S. J., Damaren, C. J., Everett, S. W., Fraisse, A. A., Hartley, J. W., Harvey, D., Holder, B., Huff, E. M., Jauzac, M., Jones, W. C., Lagattuta, D., Leung, J. S.-Y., Li, L., Luu, T. V. T., Massey, R., McCleary, J. E., Nagy, J. M., Netterfield, C. B., … Vitorelli, A. Z. (2024). SuperBIT Superpressure Flight Instrument Overview and Performance: Near-diffraction-limited Astronomical Imaging from the Stratosphere. The Astronomical Journal, 168(2), 85. https://doi.org/10.3847/1538-3881/ad5840
  4. Madhavacheril, M. S., Qu, F. J., Sherwin, B. D., MacCrann, N., Li, Y., Abril-Cabezas, I., Ade, P. A. R., Aiola, S., Alford, T., Amiri, M., Amodeo, S., An, R., Atkins, Z., Austermann, J. E., Battaglia, N., Battistelli, E. S., Beall, J. A., Bean, R., Beringue, B., … Zheng, K. (2024). The Atacama Cosmology Telescope: DR6 Gravitational Lensing Map and Cosmological Parameters. The Astrophysical Journal, 962(2), 113. https://doi.org/10.3847/1538-4357/acff5f
  5. Jeffrey, N., Gatti, M., Chang, C., Whiteway, L., Demirbozan, U., Kovacs, A., Pollina, G., Bacon, D., Hamaus, N., Kacprzak, T., Lahav, O., Lanusse, F., Mawdsley, B., Nadathur, S., Starck, J. L., Vielzeuf, P., Zeurcher, D., Alarcon, A., Amon, A., … Collaboration, D. (2021). Dark Energy Survey Year 3 results: Curved-sky weak lensing mass map reconstruction. Monthly Notices of the Royal Astronomical Society, 505(3), 4626–4645. https://doi.org/10.1093/mnras/stab1495
  6. Oguri, M., Miyazaki, S., Hikage, C., Mandelbaum, R., Utsumi, Y., Miyatake, H., Takada, M., Armstrong, R., Bosch, J., Komiyama, Y., Leauthaud, A., More, S., Nishizawa, A. J., Okabe, N., & Tanaka, M. (2017). Two- and three-dimensional wide-field weak lensing mass maps from the Hyper Suprime-Cam Subaru Strategic Program S16A data. Publications of the Astronomical Society of Japan, 70(SP1), Article S26. https://doi.org/10.1093/pasj/psx070
  7. Kaiser, N., & Squires, G. (1993). Mapping the dark matter with weak gravitational lensing. The Astrophysical Journal, 404, 441. https://doi.org/10.1086/172297
  8. Pires, S., Vandenbussche, V., Kansal, V., Bender, R., Blot, L., Bonino, D., Boucaud, A., Brinchmann, J., Capobianco, V., Carretero, J., Castellano, M., Cavuoti, S., Clédassou, R., Congedo, G., Conversi, L., Corcione, L., Dubath, F., Fosalba, P., Frailis, M., … Wang, Y. (2020). Euclid: Reconstruction of weak-lensing mass maps for non-Gaussianity studies. Astronomy & Astrophysics, 638, A141. https://doi.org/10.1051/0004-6361/201936865
  9. Leonard, A., Pires, S., & Starck, J.-L. (2012). Fast calculation of the weak lensing aperture mass statistic: Aperture mass statistic. Monthly Notices of the Royal Astronomical Society, 423(4), 3405–3412. https://doi.org/10.1111/j.1365-2966.2012.21133.x
  10. McCleary, J. E., Everett, S. W., Shaaban, M. M., Gill, A. S., Vassilakis, G. N., Huff, E. M., Massey, R. J., Benton, S. J., Brown, A. M., Clark, P., Holder, B., Fraisse, A. A., Jauzac, M., Jones, W. C., Lagattuta, D., Leung, J. S.-Y., Li, L., T. Luu, T. V., Nagy, J. M., … Tam, S. I. (2023). Lensing in the Blue. II. Estimating the Sensitivity of Stratospheric Balloons to Weak Gravitational Lensing. The Astronomical Journal, 166(3), 134. https://doi.org/10.3847/1538-3881/ace7ca
  11. Remy, B., Lanusse, F., Jeffrey, N., Liu, J., Starck, J.-L., Osato, K., & Schrabback, T. (2023). Probabilistic mass-mapping with neural score estimation. Astronomy & Astrophysics, 672, A51. https://doi.org/10.1051/0004-6361/202243054
  12. Harris, C. R., Millman, K. J., van der Walt, S. J., Gommers, R., Virtanen, P., Cournapeau, D., Wieser, E., Taylor, J., Berg, S., Smith, N. J., Kern, R., Picus, M., Hoyer, S., van Kerkwijk, M. H., Brett, M., Haldane, A., del Río, J. F., Wiebe, M., Peterson, P., … Oliphant, T. E. (2020). Array programming with NumPy. Nature, 585(7825), 357–362. https://doi.org/10.1038/s41586-020-2649-2
  13. Virtanen, P., Gommers, R., Oliphant, T. E., Haberland, M., Reddy, T., Cournapeau, D., Burovski, E., Peterson, P., Weckesser, W., Bright, J., van der Walt, S. J., Brett, M., Wilson, J., Millman, K. J., Mayorov, N., Nelson, A. R. J., Jones, E., Kern, R., Larson, E., … Vázquez-Baeza, Y. (2020). SciPy 1.0: fundamental algorithms for scientific computing in Python. Nature Methods, 17(3), 261–272. https://doi.org/10.1038/s41592-019-0686-2
  14. The pandas development team. (2024). pandas-dev/pandas: Pandas (Version v2.2.2) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.10957263
  15. Collaboration, T. A., Robitaille, T. P., Tollerud, E. J., Greenfield, P., Droettboom, M., Bray, E., Aldcroft, T., Davis, M., Ginsburg, A., Price-Whelan, A. M., Kerzendorf, W. E., Conley, A., Crighton, N., Barbary, K., Muna, D., Ferguson, H., Grollier, F., Parikh, M. M., Nair, P. H., … Streicher, O. (2013). Astropy: A community Python package for astronomy. Astronomy & Astrophysics, 558, A33. https://doi.org/10.1051/0004-6361/201322068
  16. Collaboration, T. A., Price-Whelan, A. M., Sipőcz, B. M., Günther, H. M., Lim, P. L., Crawford, S. M., Conseil, S., Shupe, D. L., Craig, M. W., Dencheva, N., Ginsburg, A., VanderPlas, J. T., Bradley, L. D., Pérez-Suárez, D., de Val-Borro, M., Contributors), . (Primary P., Aldcroft, T. L., Cruz, K. L., Robitaille, T. P., … Contributors), . (Astropy . (2018). The Astropy Project: Building an Open-science Project and Status of the v2.0 Core Package *. The Astronomical Journal, 156(3), 123. https://doi.org/10.3847/1538-3881/aabc4f
  17. The Astropy Collaboration, Price-Whelan, A. M., Lim, P. L., Earl, N., Starkman, N., Bradley, L., Shupe, D. L., Patil, A. A., Corrales, L., Brasseur, C. E., Nöthe, M., Donath, A., Tollerud, E., Morris, B. M., Ginsburg, A., Vaher, E., Weaver, B. A., Tocknell, J., Jamieson, W., … Contributors, A. P. (2022). The Astropy Project: Sustaining and Growing a Community-oriented Open-source Project and the Latest Major Release (v5.0) of the Core Package*. The Astrophysical Journal, 935(2), 167. https://doi.org/10.3847/1538-4357/ac7c74
  18. Hunter, J. D. (2007). Matplotlib: A 2D Graphics Environment. Computing in Science & Engineering, 9(3), 90–95. https://doi.org/10.1109/mcse.2007.55
  19. Simonov, K. (2025). PyYAML. https://pyyaml.org
  20. Peel, A. (2020). lenspack: A collection of weak lensing tools in Python (Version 1.0.0). https://github.com/CosmoStat/lenspack
  21. Sirks, E. L., Massey, R., Gill, A. S., Anderson, J., Benton, S. J., Brown, A. M., Clark, P., English, J., Everett, S. W., Fraisse, A. A., Franco, H., Hartley, J. W., Harvey, D., Holder, B., Hunter, A., Huff, E. M., Hynous, A., Jauzac, M., Jones, W. C., … Vassilakis, G. N. (2023). Data Downloaded via Parachute from a NASA Super-Pressure Balloon. Aerospace, 10(11), 960. https://doi.org/10.3390/aerospace10110960
  22. McCleary, J., dell'Antonio, I., & von der Linden, A. (2020). Dark Matter Distribution of Four Low-z Clusters of Galaxies. The Astrophysical Journal, 893(1), 8. https://doi.org/10.3847/1538-4357/ab7c58
  23. Saha, S., Amit, M., McCleary, J. E., Vassilakis, G. N., Paracha, E., Cerini, G., Everett, S. W., Ohashi, L., Huff, E. M., Leroy, G., Fung, L. W. H., Massey, R., Benton, S. J., Jones, W. C., Luu, T. V. T., Gill, A. S., Shaaban, M. M., Voyer, P., Field, A., … Zenteno, A. (2026). Lensing in the Blue IV: The First Weak Gravitational Lensing Maps from the Stratosphere (Version 2). arXiv. https://doi.org/10.48550/arxiv.2610.07244
  24. Saha, S., McCleary, J. E., Everett, S. W., Amit, M., Vassilakis, G. N., Paracha, E., Fung, L. W. H., Benton, S. J., Jones, W. C., Leroy, G., Huff, E. M., Massey, R., Luu, T. V. T., Gill, A. S., Shaaban, M. M., Voyer, P., Field, A., Brown, A. M., Cerini, G., … Zenteno, A. (2026). Lensing in the Blue III: Weak Lensing Shape Catalogs of 30 Merging Galaxy Clusters (Version 2). arXiv. https://doi.org/10.48550/arxiv.2603.18376