``slice.x`` - Extract 2D subsets of ``kaiju`` results ===================================================== Introduction ------------ ``slice.x`` extracts a 2D (``Z=z0`` or ``Y=y0``) slice from GAMERA output on either the MAGE grid or interpolated onto a cartesian or a polar grid. Output is saved to an HDF5 file that can be visualized and analyzed similarly to GAMERA output files. Before you start ---------------- In order to use ``slice.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 ``slice.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 ``slice.x`` ---------------------------- The XML file read by ``slice.x`` should look something like this (file ``slice.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 this computation. * ``runid`` (optional, default ``"Sim"``): String specifying an identifier for this run of ``slice.x``. A best practice is to use the ``runid`` in the name of the XML file. * ``