


{"id":15047,"date":"2025-09-05T11:31:19","date_gmt":"2025-09-05T15:31:19","guid":{"rendered":"https:\/\/www.us-ocb.org\/?p=15047"},"modified":"2025-09-05T11:33:35","modified_gmt":"2025-09-05T15:33:35","slug":"new-software-global-bgc-modeling-python","status":"publish","type":"post","link":"https:\/\/web.whoi.edu\/ocb\/new-software-global-bgc-modeling-python\/","title":{"rendered":"New software enables global ocean biogeochemical modeling in Python"},"content":{"rendered":"<p>Have you ever wondered what life would be like if you could write and run complex biogeochemical models easily and conveniently in Python? Wonder no more. In a <a href=\"https:\/\/doi.org\/10.1029\/2022MS003447\">paper<\/a> published in <em>J. Adv. Model. Earth Syst.<\/em>, Samar Khatiwala (2025; see reference below) describes <em>tmm4py<\/em>, a new software to enable efficient, global scale biogeochemical modelling in Python.<\/p>\n<p><em>tmm4py<\/em> is based on the Transport Matrix Method (TMM), an efficient numerical scheme for \u201coffline\u201d simulation of tracers driven by circulations from state-of-the-art physical models and state estimates. tmm4py exposes this functionality in Python, providing the tools needed to implement complex models in pure Python using standard modules such as NumPy, and run them interactively on hardware ranging from laptops to supercomputers. No knowledge of parallel computing required! tmm4py even extends the interactivity to models written in Fortran, allowing the many existing models coupled to the TMM, e.g., MITgcm, to be used from the familiar comfort of Python. Whether you\u2019re a seasoned modeler, just want to try out an idea, or illustrate a concept in your teaching, <em>tmm4py<\/em> is designed to make biogeochemical modeling more widely accessible.<\/p>\n<p>Download the code from: <a href=\"https:\/\/github.com\/samarkhatiwala\/tmm\">https:\/\/github.com\/samarkhatiwala\/tmm<\/a><\/p>\n<div id=\"attachment_15048\" class='wp-caption alignnone' style='width:1024px;'><img loading=\"lazy\" class=\"size-large wp-image-15048\" src=\"https:\/\/www.us-ocb.org\/wp-content\/uploads\/sites\/43\/2025\/09\/tmm4py_schematic_with_bgc-1024x425.png\" alt=\"\" width=\"1024\" height=\"425\" srcset=\"https:\/\/web.whoi.edu\/ocb\/wp-content\/uploads\/sites\/43\/2025\/09\/tmm4py_schematic_with_bgc-1024x425.png 1024w, https:\/\/web.whoi.edu\/ocb\/wp-content\/uploads\/sites\/43\/2025\/09\/tmm4py_schematic_with_bgc-300x125.png 300w, https:\/\/web.whoi.edu\/ocb\/wp-content\/uploads\/sites\/43\/2025\/09\/tmm4py_schematic_with_bgc-768x319.png 768w, https:\/\/web.whoi.edu\/ocb\/wp-content\/uploads\/sites\/43\/2025\/09\/tmm4py_schematic_with_bgc-1536x638.png 1536w, https:\/\/web.whoi.edu\/ocb\/wp-content\/uploads\/sites\/43\/2025\/09\/tmm4py_schematic_with_bgc-2048x850.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><p class='wp-caption-text'>Figure: Schematic illustrating the structure of tmm4py and its relationship with the various libraries and components it is built on or interacts with. Outlined boxes represent user\u2010supplied code (such as the \u201cHello World\u201d example of the ideal age tracer shown on the left). Other low-level libraries on which tmm4py depends, for example, BLAS and LAPACK for linear algebra, MPI for parallel communication, and CUDA for GPUs, are not shown.<\/p><\/div>\n<p>&nbsp;<\/p>\n<p><strong>Author<\/strong><br \/>\nSamar Khatiwala (Waseda Univ)<\/p>\n<p><em>Joint Science Highlight with<\/em> <a href=\"https:\/\/www.geotraces.org\/new-software-enables-global-ocean-biogeochemical-modeling-in-python\/\">GEOTRACES<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever wondered what life would be like if you could write and run complex biogeochemical models easily and conveniently in Python? Wonder no more. In a paper published in J. Adv. Model. Earth Syst., Samar Khatiwala (2025; see reference below) describes tmm4py, a new software to enable efficient, global scale biogeochemical modelling in [&hellip;]<\/p>\n","protected":false},"author":168,"featured_media":15049,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,628],"tags":[300,22,56,696],"_links":{"self":[{"href":"https:\/\/web.whoi.edu\/ocb\/wp-json\/wp\/v2\/posts\/15047"}],"collection":[{"href":"https:\/\/web.whoi.edu\/ocb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/web.whoi.edu\/ocb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/web.whoi.edu\/ocb\/wp-json\/wp\/v2\/users\/168"}],"replies":[{"embeddable":true,"href":"https:\/\/web.whoi.edu\/ocb\/wp-json\/wp\/v2\/comments?post=15047"}],"version-history":[{"count":2,"href":"https:\/\/web.whoi.edu\/ocb\/wp-json\/wp\/v2\/posts\/15047\/revisions"}],"predecessor-version":[{"id":15051,"href":"https:\/\/web.whoi.edu\/ocb\/wp-json\/wp\/v2\/posts\/15047\/revisions\/15051"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/web.whoi.edu\/ocb\/wp-json\/wp\/v2\/media\/15049"}],"wp:attachment":[{"href":"https:\/\/web.whoi.edu\/ocb\/wp-json\/wp\/v2\/media?parent=15047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/web.whoi.edu\/ocb\/wp-json\/wp\/v2\/categories?post=15047"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/web.whoi.edu\/ocb\/wp-json\/wp\/v2\/tags?post=15047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}