Published August 14, 2018 | Journal article | Version v1 | https://doi.org/10.21105/joss.00809

unyt: Handle, manipulate, and convert data with units in Python

Files

10.21105.joss.00809.pdf

Files (1.9 MB)

Name Size Download all
md5:d5ffa064b7bff12a353f73a23e170803
609.3 kB Preview Download
md5:f854aa14e6bc6d8e37cf38e2da55c1d7
1.3 MB Preview Download

Additional details

Dates

Issued
August 14, 2018

References

  1. Goldbaum, N., ZuHone, J., Turk, M., Kowalik, K., Smith, B., Myers, A., Settings!, C. Y. G., Sunden, K., DHannasch, Skillman, S., Hummels, C., Chen, Y.-H., Ji, S., Ivanov, P., & Soref, J. (2018). yt-project/unyt: unyt 1.0.7 (Version v1.0.7) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.1344605
  2. Meurer, A., Smith, C. P., Paprocki, M., Čertík, O., Kirpichev, S. B., Rocklin, M., Kumar, A., Ivanov, S., Moore, J. K., Singh, S., Rathnayake, T., Vig, S., Granger, B. E., Muller, R. P., Bonazzi, F., Gupta, H., Vats, S., Johansson, F., Pedregosa, F., … Scopatz, A. (2017). SymPy: symbolic computing in Python. PeerJ Computer Science, 3, e103. https://doi.org/10.7717/peerj-cs.103
  3. van der Walt, S., Colbert, S. C., & Varoquaux, G. (2011). The NumPy Array: A Structure for Efficient Numerical Computation. Computing in Science & Engineering, 13(2), 22–30. https://doi.org/10.1109/mcse.2011.37
  4. USA, A%20guide%20to%20NumPy, Trelgol%20Publishing, Oliphant,%20Travis%20E, 2006
  5. python,%20hdf5, 2013, O%E2%80%99Reilly, Python%20and%20HDF5, Collette,%20Andrew
  6. A%20comprehensive%20look%20at%20representing%20physical%20quantities%20in%20Python, Bekolay,%20Trevor, 2013, SciPy%20Conference, https://www.youtube.com/watch?v=N-edLdxiM40
  7. Stark,%20Casey%20W., dimensionful, 2012, GitHub, GitHub%20repository, %5Curl https://github.com/caseywstark/dimensionful
  8. Turk, M. J., Smith, B. D., Oishi, J. S., Skory, S., Skillman, S. W., Abel, T., & Norman, M. L. (2010). yt: A MULTI-CODE ANALYSIS TOOLKIT FOR ASTROPHYSICAL SIMULATION DATA. The Astrophysical Journal Supplement Series, 192(1), 9. https://doi.org/10.1088/0067-0049/192/1/9
  9. Pontzen,%20A.%20and%20Ro%C5%A1kar,%20R.%20and%20Stinson,%20G.%C2%A0S.%20and%20Woods,%20R.%20and%20Reed,%20D.%C2%A0M.%20and%20Coles,%20J.%20and%20Quinn,%20T.%C2%A0R., pynbody:%20Astrophysics%20Simulation%20Analysis%20for%20Python, Astrophysics%20Source%20Code%20Library,%20ascl:1305.002, 2013, %5Curl https://ascl.net/1305.002
  10. The%20Astropy%20Collaboration%20and%20Price-Whelan,%20A.%C2%A0M.%20and%20Sip%C5%91cz,%20B.%C2%A0M.%20and%20G%C3%BCnther,%20H.%C2%A0M.%20and%20Lim,%20P.%C2%A0L.%20and%20Crawford,%20S.%C2%A0M.%20and%20Conseil,%20S.%20and%20Shupe,%20D.%C2%A0L.%20and%20Craig,%20M.%C2%A0W.%20and%20Dencheva,%20N.%20and%20Ginsburg,%20A.%20and%20VanderPlas,%20J.%C2%A0T.%20and%20Bradley,%20L.%C2%A0D.%20and%20P%C3%A9rez-Su%C3%A1rez,%20D.%20and%20de%20Val-Borro,%20M.%20and%20Aldcroft,%20T.%C2%A0L.%20and%20Cruz,%20K.%C2%A0L.%20and%20Robitaille,%20T.%C2%A0P.%20and%20Tollerud,%20E.%C2%A0J.%20and%20Ardelean,%20C.%20and%20Babej,%20T.%20and%20Bachetti,%20M.%20and%20Bakanov,%20A.%C2%A0V.%20and%20Bamford,%20S.%C2%A0P.%20and%20Barentsen,%20G.%20and%20Barmby,%20P.%20and%20Baumbach,%20A.%20and%20Berry,%20K.%C2%A0L.%20and%20Biscani,%20F.%20and%20Boquien,%20M.%20and%20Bostroem,%20K.%C2%A0A.%20and%20Bouma,%20L.%C2%A0G.%20and%20Brammer,%20G.%C2%A0B.%20and%20Bray,%20E.%C2%A0M.%20and%20Breytenbach,%20H.%20and%20Buddelmeijer,%20H.%20and%20Burke,%20D.%C2%A0J.%20and%20Calderone,%20G.%20and%20Cano%20Rodr%C4%B1%CC%81guez,%20J.%C2%A0L.%20and%20Cara,%20M.%20and%20Cardoso,%20J.%C2%A0V.%C2%A0M.%20and%20Cheedella,%20S.%20and%20Copin,%20Y.%20and%20Crichton,%20D.%20and%20D%C3%81vella,%20D.%20and%20Deil,%20C.%20and%20Depagne,%20%C3%89.%20and%20Dietrich,%20J.%C2%A0P.%20and%20Donath,%20A.%20and%20Droettboom,%20M.%20and%20Earl,%20N.%20and%20Erben,%20T.%20and%20Fabbro,%20S.%20and%20Ferreira,%20L.%C2%A0A.%20and%20Finethy,%20T.%20and%20Fox,%20R.%C2%A0T.%20and%20Garrison,%20L.%C2%A0H.%20and%20Gibbons,%20S.%C2%A0L.%C2%A0J.%20and%20Goldstein,%20D.%C2%A0A.%20and%20Gommers,%20R.%20and%20Greco,%20J.%C2%A0P.%20and%20Greenfield,%20P.%20and%20Groener,%20A.%C2%A0M.%20and%20Grollier,%20F.%20and%20Hagen,%20A.%20and%20Hirst,%20P.%20and%20Homeier,%20D.%20and%20Horton,%20A.%C2%A0J.%20and%20Hosseinzadeh,%20G.%20and%20Hu,%20L.%20and%20Hunkeler,%20J.%C2%A0S.%20and%20Ivezi%C4%87,%20%C5%BD.%20and%20Jain,%20A.%20and%20Jenness,%20T.%20and%20Kanarek,%20G.%20and%20Kendrew,%20S.%20and%20Kern,%20N.%C2%A0S.%20and%20Kerzendorf,%20W.%C2%A0E.%20and%20Khvalko,%20A.%20and%20King,%20J.%20and%20Kirkby,%20D.%20and%20Kulkarni,%20A.%C2%A0M.%20and%20Kumar,%20A.%20and%20Lee,%20A.%20and%20Lenz,%20D.%20and%20Littlefair,%20S.%C2%A0P.%20and%20Ma,%20Z.%20and%20Macleod,%20D.%C2%A0M.%20and%20Mastropietro,%20M.%20and%20McCully,%20C.%20and%20Montagnac,%20S.%20and%20Morris,%20B.%C2%A0M.%20and%20Mueller,%20M.%20and%20Mumford,%20S.%C2%A0J.%20and%20Muna,%20D.%20and%20Murphy,%20N.%C2%A0A.%20and%20Nelson,%20S.%20and%20Nguyen,%20G.%C2%A0H.%20and%20Ninan,%20J.%C2%A0P.%20and%20N%C3%B6the,%20M.%20and%20Ogaz,%20S.%20and%20Oh,%20S.%20and%20Parejko,%20J.%C2%A0K.%20and%20Parley,%20N.%20and%20Pascual,%20S.%20and%20Patil,%20R.%20and%20Patil,%20A.%C2%A0A.%20and%20Plunkett,%20A.%C2%A0L.%20and%20Prochaska,%20J.%C2%A0X.%20and%20Rastogi,%20T.%20and%20Reddy%20Janga,%20V.%20and%20Sabater,%20J.%20and%20Sakurikar,%20P.%20and%20Seifert,%20M.%20and%20Sherbert,%20L.%C2%A0E.%20and%20Sherwood-Taylor,%20H.%20and%20Shih,%20A.%C2%A0Y.%20and%20Sick,%20J.%20and%20Silbiger,%20M.%C2%A0T.%20and%20Singanamalla,%20S.%20and%20Singer,%20L.%C2%A0P.%20and%20Sladen,%20P.%C2%A0H.%20and%20Sooley,%20K.%C2%A0A.%20and%20Sornarajah,%20S.%20and%20Streicher,%20O.%20and%20Teuben,%20P.%20and%20Thomas,%20S.%C2%A0W.%20and%20Tremblay,%20G.%C2%A0R.%20and%20Turner,%20J.%C2%A0E.%C2%A0H.%20and%20Terr%C3%B3n,%20V.%20and%20van%20Kerkwijk,%20M.%C2%A0H.%20and%20de%20la%20Vega,%20A.%20and%20Watkins,%20L.%C2%A0L.%20and%20Weaver,%20B.%C2%A0A.%20and%20Whitmore,%20J.%C2%A0B.%20and%20Woillez,%20J.%20and%20Zabalza,%20V., The%20Astropy%20Project:%20Building%20an%20inclusive,%20open-science%20project%20and%20status%20of%20the%20v2.0%20core%20package, ArXiv%20e-prints, arXiv, 1801.02634, astro-ph.IM, Astrophysics%20-%20Instrumentation%20and%20Methods%20for%20Astrophysics, 2018, jan, http://adsabs.harvard.edu/abs/2018arXiv180102634T, Provided%20by%20the%20SAO/NASA%20Astrophysics%20Data%20System, %5Curlhttps://arxiv.org/abs/1801.02634, 1
  11. Grecco,%20Hernan%20E., Pint, 2018, GitHub, GitHub%20repository, %5Curl https://github.com/hgrecco/pint
  12. Danial,%20Al, cloc, 2018, GitHub, GitHub%20repository, %5Curl https://github.com/AlDanial/cloc
  13. Stinner,%20Victor, perf, 2018, GitHub, GitHub%20repository, %5Curl https://github.com/vstinner/perf
  14. Brady,%20Peter, fastcache, 2017, GitHub, GitHub%20repository, %5Curl https://github.com/pbrady/fastcache
  15. Gopinath, R., Jensen, C., & Groce, A. (2014). Code coverage for suite evaluation by developers. Proceedings of the 36th International Conference on Software Engineering, 72–82. https://doi.org/10.1145/2568225.2568278
  16. Koru, A. G., Zhang, D., & Liu, H. (2007). Modeling the Effect of Size on Defect Proneness for Open-Source Software. Third International Workshop on Predictor Models in Software Engineering (PROMISE'07: ICSE Workshops 2007), 10–10. https://doi.org/10.1109/promise.2007.9
  17. Lipow, M. (1982). Number of Faults per Line of Code. IEEE Transactions on Software Engineering, SE-8(4), 437–439. https://doi.org/10.1109/tse.1982.235579
  18. Croton, D. J. (2013). Damn You, Little h! (Or, Real-World Applications of the Hubble Constant Using Observed and Simulated Data). Publications of the Astronomical Society of Australia, 30. https://doi.org/10.1017/pasa.2013.31
  19. Mars%20Climate%20Orbiter%20Mishap%20Investigation%20Board:%20Phase%20I%20Report, Board,%20Mars%20Climate%20Orbiter%20Mishap%20Investigation, https://books.google.com/books?id=4OMIHQAACAAJ, 1999, Jet%20Propulsion%20Laboratory

Citations

  1. Roper, W. J., Lovell, C. C., Vijayan, A., Wilkins, S., Akins, H., Berger, S., Sant Fournier, C., Harvey, T., Iyer, K., Leonardi, M., Newman, S., Pautasso, B., Perry, A., Seeyave, L., Sommovigo, L., Punyasheel, P., d'Hautefort, A. A. S., & Rawlings, A. (2026). Synthesizer: Synthetic Observables for Modern Astronomy. Journal of Open Source Software, 11(119), 9436. https://doi.org/10.21105/joss.09436
  2. Schilling-Wilhelmi, M., Ríos-García, M., Shabih, S., Gil, M. V., Miret, S., Koch, C. T., Márquez, J. A., & Jablonka, K. M. (2025). From text to insight: large language models for chemical data extraction. Chemical Society Reviews, 54(3), 1125–1150. https://doi.org/10.1039/d4cs00913d
  3. Ploeckinger, S., Richings, A. J., Schaye, J., Trayford, J. W., Schaller, M., & Chaikin, E. (2025). hybrid-chimes: a model for radiative cooling and the abundances of ions and molecules in simulations of galaxy formation. Monthly Notices of the Royal Astronomical Society, 543(2), 891–916. https://doi.org/10.1093/mnras/staf1402
  4. Roy, S., Blanco, C., Dessert, C., Prabhu, A., & Temim, T. (2025). Sensitivity of JWST to eV-Scale Decaying Axion Dark Matter. Physical Review Letters, 134(7). https://doi.org/10.1103/physrevlett.134.071003
  5. Starkman, N., Price-Whelan, A. M., & Nibauer, J. (2025). unxt: A Python package for unit-aware computing with JAX. Journal of Open Source Software, 10(107), 7771. https://doi.org/10.21105/joss.07771
  6. McGibbon, R., Helly, J. C., Schaye, J., Schaller, M., & Vandenbroucke, B. (2025). SOAP: A Python Package for Calculating the Properties of Galaxies and Halos Formed in Cosmological Simulations. Journal of Open Source Software, 10(111), 8252. https://doi.org/10.21105/joss.08252
  7. Roy, S., Shen, X., Barron, J., Lisanti, M., Curtin, D., Murray, N., & Hopkins, P. F. (2025). Aggressively Dissipative Dark Dwarfs: The Effects of Atomic Dark Matter on the Inner Densities of Isolated Dwarf Galaxies. The Astrophysical Journal, 982(2), 175. https://doi.org/10.3847/1538-4357/adb02b
  8. Yarza, R., MacLeod, M., Idini, B., Murray-Clay, R., & Ramirez-Ruiz, E. (2025). Evolution of the ZTF SLRN-2020 Star-Planet Merger. The Astrophysical Journal Letters, 995(2), L48. https://doi.org/10.3847/2041-8213/ae13b1
  9. Schaller, M., Borrow, J., Draper, P. W., Ivkovic, M., McAlpine, S., Vandenbroucke, B., Bahé, Y., Chaikin, E., Chalk, A. B. G., Chan, T. K., Correa, C., van Daalen, M., Elbers, W., Gonnet, P., Hausammann, L., Helly, J., Huško, F., Kegerreis, J. A., Nobels, F. S. J., … Xiang, Z. (2024). Swift : a modern highly parallel gravity and smoothed particle hydrodynamics solver for astrophysical and cosmological applications. Monthly Notices of the Royal Astronomical Society, 530(2), 2378–2419. https://doi.org/10.1093/mnras/stae922
  10. Hummels, C. B., Rubin, K. H. R., Schneider, E. E., & Fielding, D. B. (2024). CloudFlex: A Flexible Parametric Model for the Small-scale Structure of the Circumgalactic Medium. The Astrophysical Journal, 972(2), 148. https://doi.org/10.3847/1538-4357/ad5965
  11. Altamura, E., Kay, S. T., Chluba, J., & Towler, I. (2023). Galaxy cluster rotation revealed in the MACSIS simulations with the kinetic Sunyaev–Zeldovich effect. Monthly Notices of the Royal Astronomical Society, 524(2), 2262–2289. https://doi.org/10.1093/mnras/stad1841
  12. Borrow, J., Kannan, R., Garaldi, E., Smith, A., Vogelsberger, M., Pakmor, R., Springel, V., & Hernquist, L. (2023). thesan-hr: how does reionization impact early galaxy evolution?. Monthly Notices of the Royal Astronomical Society, 525(4), 5932–5950. https://doi.org/10.1093/mnras/stad2523
  13. Borrow, J., Schaller, M., Bahé, Y. M., Schaye, J., Ludlow, A. D., Ploeckinger, S., Nobels, F. S. J., & Altamura, E. (2023). The impact of stochastic modelling on the predictive power of galaxy formation simulations. Monthly Notices of the Royal Astronomical Society, 526(2), 2441–2457. https://doi.org/10.1093/mnras/stad2928
  14. Ploeckinger, S., Nobels, F. S. J., Schaller, M., & Schaye, J. (2023). Resolution criteria to avoid artificial clumping in Lagrangian hydrodynamic simulations with a multiphase interstellar medium. Monthly Notices of the Royal Astronomical Society, 528(2), 2930–2951. https://doi.org/10.1093/mnras/stad3935
  15. Yarza, R., Razo-López, N. B., Murguia-Berthier, A., Everson, R. W., Antoni, A., MacLeod, M., Soares-Furtado, M., Lee, D., & Ramirez-Ruiz, E. (2023). Hydrodynamics and Survivability during Post-main-sequence Planetary Engulfment. The Astrophysical Journal, 954(2), 176. https://doi.org/10.3847/1538-4357/acbdfc
  16. Roy, S., Shen, X., Lisanti, M., Curtin, D., Murray, N., & Hopkins, P. F. (2023). Simulating Atomic Dark Matter in Milky Way Analogs. The Astrophysical Journal Letters, 954(2), L40. https://doi.org/10.3847/2041-8213/ace2c8
  17. Kelly, A. J., Jenkins, A., Deason, A., Fattahi, A., Grand, R. J. J., Pakmor, R., Springel, V., & Frenk, C. S. (2022). Apostle–Auriga: effects of different subgrid models on the baryon cycle around Milky Way-mass galaxies. Monthly Notices of the Royal Astronomical Society, 514(3), 3113–3138. https://doi.org/10.1093/mnras/stac1019
  18. Berke, D. A., Murphy, M. T., Flynn, C., & Liu, F. (2022). Probing Galactic variations in the fine-structure constant using solar twin stars: Systematic errors. Monthly Notices of the Royal Astronomical Society, 519(1), 1221–1237. https://doi.org/10.1093/mnras/stac2037
  19. Berke, D. A., Murphy, M. T., Flynn, C., & Liu, F. (2022). Probing Galactic variations in the fine-structure constant using solar twin stars: methodology and results. Monthly Notices of the Royal Astronomical Society, 519(1), 1238–1252. https://doi.org/10.1093/mnras/stac2458
  20. Kulkarni, M., Visbal, E., Bryan, G. L., & Li, X. (2022). If Dark Matter is Fuzzy, the First Stars Form in Massive Pancakes. The Astrophysical Journal Letters, 941(1), L18. https://doi.org/10.3847/2041-8213/aca47c
  21. Kelly, A. J., Jenkins, A., & Frenk, C. S. (2021). The origin of X-ray coronae around simulated disc galaxies. Monthly Notices of the Royal Astronomical Society, 502(2), 2934–2951. https://doi.org/10.1093/mnras/stab255
  22. Borrow, J., & Borrisov, A. (2020). swiftsimio: A Python library for reading SWIFT data. Journal of Open Source Software, 5(52), 2430. https://doi.org/10.21105/joss.02430
  23. Lang, M. (2019). yggdrasil: a Python package for integrating computational models across languages and scales. In Silico Plants, 1(1). https://doi.org/10.1093/insilicoplants/diz001
  24. Hafen, Z., Faucher-Giguère, C.-A., Anglés-Alcázar, D., Stern, J., Kereš, D., Hummels, C., Esmerian, C., Garrison-Kimmel, S., El-Badry, K., Wetzel, A., Chan, T. K., Hopkins, P. F., & Murray, N. (2019). The origins of the circumgalactic medium in the FIRE simulations. Monthly Notices of the Royal Astronomical Society, 488(1), 1248–1272. https://doi.org/10.1093/mnras/stz1773
  25. Smith, B., & Lang, M. (2019). ytree: A Python package for analyzing merger trees. Journal of Open Source Software, 4(44), 1881. https://doi.org/10.21105/joss.01881