``calcdb.x`` - Computing ground delta-B values from ``kaiju`` results
=====================================================================
Introduction
------------
The tool ``calcdb.x`` is a compiled Fortran program which uses the output from
a MAGE simulation to compute the values of the ground
magnetic field disturbance.
Before you start
----------------
In order to use ``calcdb.x``, you need the following:
* A set of output files from a ``kaiju`` magnetosphere run.
* An XML file describing the magnetosphere results and the settings for the
ground delta B calculation.
* (optional) A PBS job file to run ``calcdb.x``.
``kaiju`` magnetosphere result files
------------------------------------
Any set of ``kaiju`` magnetosphere results can be used. This documentation
assumes you used the MPI version the the ``kaiju`` software, e.g.
``gamera_mpi.x``. This should generate a number of HDF5 files which contain
the model results from each MPI rank.
Assume all result files are in the current directory.
The XML file for ``calcdb.x``
-----------------------------
The XML file read by ``calcdb.x`` should look something like this (file
``calcdb.xml``):
.. code-block:: xml
The elements and attributes of the XML file are described below.
.. note::
Standard XML is *case-sensitive*. However, the XML parser used by the
Fortran code in ``kaiju`` is *case-insensitive*. Therefore, all of the
XML tags and attributes described below can be written with any combintion
of upper and lower case.
* ```` (required): Specifies XML version.
* ```` (required): Outer element for all ``kaiju`` elements.
* ```` (required): Inner element for CHIMP-specific elements.
* ```` (optional): Specify identifying information for the ``kaiju``
results to use,
* ``runid`` (optional, default ``"Sim"``): String specifying the runid for
the ``kaiju`` results to use in the ground delta B calculation.
* ``