Skip to content

Commit

Permalink
fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
btschwertfeger committed Apr 9, 2024
1 parent 54196b9 commit ac9f835
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Welcome to python-cmethods, a powerful Python package designed for bias
correction and adjustment of climate data. Built with a focus on ease of use and
efficiency, python-cmethods offers a comprehensive suite of functions tailored
for applying bias correction methods to climate model simulations and
observational datasets.
observational datasets via command-line interface and API.

Please cite this project as described in
https://zenodo.org/doi/10.5281/zenodo.7652755.
Expand Down
18 changes: 8 additions & 10 deletions cmethods/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,20 @@

__all__ = ["adjust"]

formatter_settings = HelpFormatter.settings(
theme=HelpTheme(
invoked_command=Style(fg="bright_yellow"),
heading=Style(fg="bright_white", bold=True),
constraint=Style(fg="magenta"),
col1=Style(fg="bright_yellow"),
),
)


@command(
context_settings={
"auto_envvar_prefix": "CMETHODS",
"help_option_names": ["-h", "--help"],
},
formatter_settings=formatter_settings,
formatter_settings=HelpFormatter.settings(
theme=HelpTheme(
invoked_command=Style(fg="bright_yellow"),
heading=Style(fg="bright_white", bold=True),
constraint=Style(fg="magenta"),
col1=Style(fg="bright_yellow"),
),
),
)
@version_option(message="%version%")
@option(
Expand Down
8 changes: 5 additions & 3 deletions doc/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ The `python-cmethods`_ module can be installed using the package manager pip:
python3 -m pip install python-cmethods
Command-Line Interface
----------------------
Command-Line Interface Usage
----------------------------

The python-cmethods package provides a command-line interface for applying
various bias correction methods out of the box.
Expand All @@ -28,6 +28,7 @@ Applying the cmethods tool on the provided example data using the linear scaling
approach is shown below:

.. code-block:: bash
cmethods \
--obs examples/input_data/observations.nc \
--simh examples/input_data/control.nc \
Expand All @@ -47,6 +48,7 @@ For applying a distribution-based bias correction technique, the following
example may help:

.. code-block:: bash
cmethods \
--obs examples/input_data/observations.nc \
--simh examples/input_data/control.nc \
Expand All @@ -64,7 +66,7 @@ example may help:
API Usage and Examples
------------------
----------------------

The `python-cmethods`_ module can be imported and applied as showing in the
following examples. For more detailed description of the methods, please have a
Expand Down
4 changes: 2 additions & 2 deletions doc/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ actual climate conditions. This process typically involves statistical methods
or empirical relationships to correct for biases caused by factors such as
instrument calibration, spatial resolution, or model deficiencies.

.. figure:: ../_static/images/biasCdiagram.png
.. figure:: _static/images/biasCdiagram.png
:width: 600
:align: center
:alt: Schematic representation of a bias adjustment procedure
Expand All @@ -41,7 +41,7 @@ and adjusted values, revealing that the delta-adjusted time series
(:math:`T^{*DM}_{sim,p}`) is significantly more similar to the observational
data (:math:`T_{obs,p}`) than the raw model output (:math:`T_{sim,p}`).

.. figure:: ../_static/images/dm-doy-plot.png
.. figure:: _static/images/dm-doy-plot.png
:width: 600
:align: center
:alt: Temperature per day of year in modeled, observed and bias-adjusted climate data
Expand Down
4 changes: 2 additions & 2 deletions doc/methods.rst
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ In the following the equations of Alex J. Cannon (2015) are shown and explained:
modeled data of the control period The following images show this by using
:math:`T` for temperatures.

.. figure:: ../_static/images/qm-cdf-plot-1.png
.. figure:: _static/images/qm-cdf-plot-1.png
:width: 600
:align: center
:alt: Determination of the quantile value
Expand All @@ -265,7 +265,7 @@ In the following the equations of Alex J. Cannon (2015) are shown and explained:
the control period to determine the bias-corrected value at time step
:math:`i`.

.. figure:: ../_static/images/qm-cdf-plot-2.png
.. figure:: _static/images/qm-cdf-plot-2.png
:width: 600
:align: center
:alt: Determination of the QM bias-corrected value
Expand Down

0 comments on commit ac9f835

Please sign in to comment.