.. _pybacktrack_paleo_bathymetry: Paleobathymetry =============== .. contents:: :local: :depth: 2 .. _pybacktrack_paleo_bathymetry_overview: Overview -------- The ``paleo_bathymetry`` module is used to generate paleo bathymetry grids by reconstructing and backtracking present-day sediment-covered crust through time. PyBacktrack only generates paleobathymetry for crust that exists at present day. However you can optionally merge this with *traditional* paleobathymetry grids produced by an external workflow that generates paleobathymetry for synthetic crust. The traditional grids may contain paleobathymetry on subducted crust that is not covered by the reconstructed present-day sediment-deposited crust generated by pyBacktrack. .. _pybacktrack_running_paleo_bathymetry: Running paleobathymetry ----------------------- You can either run ``paleo_bathymetry`` as a built-in script, specifying parameters as command-line options (``...``): .. code-block:: python python -m pybacktrack.paleo_bathymetry_cli ... ...or ``import pybacktrack`` into your own script, calling its functions and specifying parameters as function arguments (``...``): .. code-block:: python import pybacktrack pybacktrack.reconstruct_paleo_bathymetry_grids(...) .. note:: You can run ``python -m pybacktrack.paleo_bathymetry_cli --help`` to see a description of all command-line options available, or see the :ref:`paleobathymetry reference section ` for documentation on the function parameters. .. _pybacktrack_paleo_bathymetry_example: Example ^^^^^^^ To generate paleobathymetry NetCDF grids at 12 minute resolution from 0Ma to 240Ma in 1Myr increments, we can run it from the command-line as: .. code-block:: python python -m pybacktrack.paleo_bathymetry_cli \ -gm 12 \ -ym M7 \ -m GDH1 \ --use_all_cpus \ -- \ 240 paleo_bathymetry_12m_M7_GDH1 ...where the ``-gm`` option specifies the grid spacing (12 minutes), the ``-ym`` specifies the ``M7`` :ref:`dynamic topography model `, the ``-m`` option specifies the ``GDH1`` :ref:`oceanic subsidence model `, the ``--use_all_cpus`` option uses all CPUs (it also accepts an optional number of CPUs) and the generated paleobathymetry grid files are named ``paleo_bathymetry_12m_M7_GDH1_