.. _odp_1262_example:

ODP 1262
========

.. image:: https://img.shields.io/badge/python-3.11%2B-blue
    :alt: Python Version

.. image:: https://img.shields.io/badge/license-GPLv3-blue
    :alt: License


The sites recovered during ODP Leg 208 at Walvis Ridge in the southeast Atlantic Ocean provide a classic and continuous record of climate change throughout the Cenozoic (Zachos, 2004). 
These sediments contain well-preserved signals of astronomical climate forcing (e.g., Liebrand et al., 2017; Westerhold et al., 2020; Drury et al., 2021). In particular, the stratigraphic interval between 
the Elmo event and the Paleocene-Eocene Thermal Maximum (PETM), approximately 54–56 Ma, at Site 1262 serves as a key reference for reconstructing past variations in eccentricity from geological data.

-----

Files in the *data* folder
--------------------------

- **ODP1262.csv**: Data of the ODP_926 site.
- **208-1262_age_model.tab**: Age model data extracted from the paper `Astronomical calibration of the Paleocene time <https://doi.org/10.1016/j.palaeo.2007.09.016>`_ (`Westerhold et. al., 2008`)
- **data_1260.csv**: Information about the data and the age-depth model used for the ODP_1262 results.
-----

Data Used
---------

.. list-table::
    :header-rows: 1
    :widths: 15 40 15 20 10

    * - **File**
      - **Description**
      - **Reference**
      - **Transformations / Pre-Processing**
      - **Version**

    * - ``ODP1262.txt``
      - a* (red/green ratio) color reflectance data measured at the surface of the archive half of the split core between 118.1–139.5 m composite depth at ODP Site 1262. Represents astronomical imprint across the 54.1–55.8 Ma interval.
      - Westerhold et al. (2007, 2008); Westerhold et al. (2017)
      - Detrended using LOWESS with 30% smoothing; normalized to zero mean and unit variance.
      - 1.0

    * - ``208-1262_age_model.tab``
      - Age–depth model calibrated to the Ypresian astronomically tuned timescale, yielding an age range of 54.125–55.791 Ma for the studied interval.
      - Westerhold et al. (2017)
      - "Changed names of columns: *Depth mcd [m]* -> *Depth* and *Age [Myr]* -> *Age*; sedimentation rate considered approximately constant (~1.3 cm/kyr) with small fluctuations.
      - 1.0


-----

Execute the Example
-------------------

.. note::
    - The folder `examples` has to bee in the same directory as the `AstroGeoFit_tool.py` file. If not, this will not work.

To run the example, open a terminal in the `AstroGeoFit` folder. Once this is open execute the following

.. code-block:: bash

    python AstroGeoFit_tool.py --odp_1262

This command will execute the significance test, the genetic algorithm fitting, the MCMC, and the MCMC weights calculation.

If you only want to run specific components (e.g., the genetic algorithm fitting and the MCMC), you can use:

.. code-block:: bash

    python AstroGeoFit_tool.py --odp_1262 -fit -mcmc

The full list of execution options can be found in :ref:`tool_documentation`

-----

Visualization of the Results
----------------------------

To visualize the results, you can use the two Jupyter notebooks provided. To obtain the results of the `ODP_1262` data, just modify the variable `configuration_file_path` in the following way:

.. code-block:: python

    configuration_file_path = "odp_1262"

And then the visualization notebook will be ready to be executed.

For a detailed guide on using the notebooks and interpreting the figures, please refer to :ref:`visualization-results`.
