########
Routines
########

Routines are standalone, array-in / array-out processing functions: each takes
plain arrays (plus scalar parameters) and returns one or more arrays. Each
routine lives in its own versioned file under ``+routines``, so it can be lifted
into another project as a standalone function. A routine uses base MATLAB where possible. If a routine needs an external
dependency, that dependency does not ship with RSKtools, so you can install it
separately and add it to your MATLAB path.

.. note::

   **Calling a routine (MATLAB).** Routines live in the ``+routines`` package, so
   call them with the ``routines.`` prefix (RSKtools must be on your MATLAB path):

   .. code-block:: matlab

      [temperatureCorrected, mask] = routines.correcttempADCcal(temperature, time);

   Request help the same way — ``help routines.correcttempADCcal`` or
   ``doc routines.correcttempADCcal``. The **bare** name
   (``help correcttempADCcal``) and ``lookfor`` do **not** resolve
   package members; discover routines with tab-completion after typing
   ``routines.``, from ``doc``, from this page, or via the *See also* line of the
   matching ``RSK*`` post-processor.

.. currentmodule:: routines

correcttempADCcal
================================

.. autofunction:: correcttempADCcal
