Repository: kyleaoman/martini (language: python)

Issue:
Source insertion into existing cube 
Might be good to support inserting a source into a cube that is read in from file. This implies initialising a datacube from file, which is easy enough. However if the cube is already beam-convolved (which seems the most likely case) then we need a separate cube internally until convolution is done. 

Given the above maybe it makes sense to not load the file into a DataCube but use it to guide its creation (match channel and pixel size, could take a subregion as an argument to specify a target insertion location?). Some functions to mostly automate the process plus some cookbook examples should about do it. 

Make use of astropy `SpectralCoord`
There is a new feature in astropy for spectral coordinates (velocities, frequencies, etc.) https://docs.astropy.org/en/stable/coordinates/spectralcoord.html

It would make sense to use this where relevant to replace astropy `Quantity` (`SpectralCoord` inherits from `Quantity`).


Discussion / hints:

Fix patch:
diff --git a/.gitignore b/.gitignore
index ae0935c..650f711 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,6 +10,7 @@
 .ipynb_checkpoints
 examples/RefL0025N0376/*
 examples/*.fits
+examples/*.FITS
 examples/*.hdf5
 examples/*.npy
 examples/*.tar
diff --git a/docs/source/datacube/index.rst b/docs/source/datacube/index.rst
index 62c9bcc..8128a1f 100644
--- a/docs/source/datacube/index.rst
+++ b/docs/source/datacube/index.rst
@@ -16,7 +16,7 @@ When using MARTINI, most of the time the only interaction with the :class:`~mart
 Initialization parameters
 +++++++++++++++++++++++++
 
-The footprint of the mock observation on the sky is set by the five parameters: ``ra``, ``dec``, ``px_size``, ``n_px_x``, ``n_px_y``. It is recommended to choose even numbers of pixels along each axis for ``n_px_x`` (RA axis) and ``n_px_y`` (Dec axis). The ``ra`` and ``dec`` parameters then control the location of the boundary between the two centremost pixels along each axis, the the boundaries of pixels going out from this centre are each offset in angle by ``px_size`` from their neighbour. For users accustomed to the FITS_ standard, the ``px_size`` corresponds to `CDELT` and ``ra`` and ``dec`` correspond to `CRVAL`, with `CRPIX` set to the boundary between the two central pixels (or the central pixel if an odd number is chosen). The ``ra``, ``dec`` and ``px_size`` parameters should be provided with :mod:`astropy.units` with dimensions of angle.
+The footprint of the mock observation on the sky is set by the five parameters: ``ra``, ``dec``, ``px_size``, ``n_px_x``, ``n_px_y``. It is recommended to choose even numbers of pixels along each axis for ``n_px_x`` (RA axis) and ``n_px_y`` (Dec axis). The ``ra`` and ``dec`` parameters then control the location of the boundary between the two centremost pixels along each axis, the the boundaries of pixels going out from this centre are each offset in angle by ``px_size`` from their neighbour. For users accustomed to the FITS_ standard, the ``px_size`` corresponds to `CDELT` and ``ra`` and ``dec`` correspond to `CRVAL`, with `CRPIX` set to the boundary between the two central pixels (or the central pixel if an odd number is chosen). There is also an option to initialize the data cube from a FITS_ header (see below). The ``ra``, ``dec`` and ``px_size`` parameters should be provided with :mod:`astropy.units` with dimensions of angle.
 
 .. _FITS: https://fits.gsfc.nasa.gov/fits_standard.html
 
@@ -34,6 +34,7 @@ A possible initialization of a :class:`~martini.datacube.DataCube` looks like:
 
     import astropy.units as U
     from martini import DataCube
+    from astropy.coordinates import ICRS
 
     datacube = DataCube(
         n_px_x=256,
@@ -81,6 +82,57 @@ It often makes sense to place the source centre (defined by its RA, Dec and syst
 	stokes_axis=False,
     )
 
+Coordinate frames and standard of rest
+++++++++++++++++++++++++++++++++++++++
+    
+By default the :class:`~martini.datacube.DataCube` coordinate frame is :class:`~astropy.coordinates.ICRS` that is centred and at rest with respect to the Solar System barycentre. Some use cases of MARTINI might require a different frame. This can be set with a keyword argument as ``DataCube(..., coordinate_frame=LSRK())``, for example - notice that the frame should be initialized (``LSRK()`` not ``LSRK``). Keep in mind that since this frame defines the coordinate system for an observation within a World Coordinate System (WCS), the coordinate frame must be one with a notion of RA and Dec (so no, for example, :class:`~astropy.coordinates.Galactocentric` coordinates). :class:`~astropy.coordinates.Galactic` coordinates are not currently supported.
+
+Note that the source is also defined in the :class:`~astropy.coordinates.ICRS` frame by default. If the ``coordinate_frame`` of the :class:`~martini.datacube.DataCube` is changed from the default, consider whether the source frame needs to be changed to match. In most cases leaving both in :class:`~astropy.coordinates.ICRS` is all that's needed. You could link the two programatically like this (schematically), if desired:
+
+.. code-block:: python
+
+    from martini.sources import SPHSource
+    from martini import DataCube
+    from astropy.coordinates import LSRK
+    
+    source = SPHSource(..., coordinate_frame=LSRK())
+    datacube = DataCube(
+        ...,
+	coordinate_frame=source.coordinate_frame,
+	specsys=source.coordinate_frame.name
+    )
+
+The "standard of rest" (in FITS headers identified by the ``'SPECSYS'`` card) can also be controlled. When the source is created its velocity is defined with respect to the origin of its ``coordinate_frame`` (:class:`~astropy.coordinates.ICRS`, by default), which is taken to be at rest. The velocity is converted to the :class:`~martini.datacube.DataCube` coordinate frame and also its standard of rest. By default this is ``"icrs"`` (i.e. the origin of the :class:`~astropy.coordinates.ICRS` frame is taken to be at rest). This can be changed with a keyword argument as ``DataCube(..., specsys="lsrk")``, for example. Any `standard of rest supported`_ by :mod:`astropy` is allowed, and the coordinate origin can be in motion depending on the choice of standard of rest. Keep in mind that the velocity of the source in its frame will be converted to the specified standard of rest - for ease of control of where your source lands in the channels of your :class:`~martini.datacube.DataCube` it's simplest to define the source in the same standard of rest (and coordinate frame) as that in which you wish to observe it.
+
+.. _standard of rest supported: https://docs.astropy.org/en/stable/coordinates/spectralcoord.html#common-velocity-frames
+    
+Initializing from a FITS header
++++++++++++++++++++++++++++++++
+
+If you have a precise observational footprint in mind because you want to compare with or even inject sources into an existing data cube, calculating the initialization parameters for :class:`~martini.datacube.DataCube` can be quite tedious (especially ``ra`` and ``dec`` if the target data cube is not defined by its centre). To simplify this workflow :class:`~martini.datacube.DataCube` provides a method :meth:`~martini.datacube.DataCube.from_wcs`. This accepts a :class:`~astropy.wcs.WCS` instance that describes the World Coordinate System of the data cube, and this can be very easily created from a FITS header. For example, given a FITS file ``my_cube.fits``:
+
+.. code-block:: python
+
+    from astropy import wcs
+    from astropy.io import fits
+    from martini.datacube import DataCube
+
+    with fits.open("my_cube.fits") as fitsfile:
+        fits_hdr = fitsfile[0].header  # header of the main HDU
+    fits_wcs = wcs.WCS(fits_hdr)
+    datacube = DataCube.from_wcs(fits_wcs)
+
+`A notebook`_ with a worked example of inserting a simulated galaxy into an observed data cube is provided in the `examples directory`_ on github.
+
+.. _`A notebook`: https://github.com/kyleaoman/martini/blob/main/examples/martini_TNG.ipynb
+.. _`examples directory`: https://github.com/kyleaoman/martini/tree/main/examples
+
+While for "normal" initialization of a :class:`~martini.datacube.DataCube` the coordinate frame and standard of rest can be set (or default to :class:`~astropy.coordinates.ICRS` and ``"icrs"``, respectively), when a :class:`~martini.datacube.DataCube` is initialized from a FITS header, MARTINI will try to determine the coordinate frame and standard of rest from the header. This generally works well for the coordinate frame (but for headers that don't conform to the FITS standard, could fail, raising an exception originating in :mod:`astropy`). The standard of rest is in practice less standardized. MARTINI will look for a ``specsys`` in the WCS object and try to interpret this as a `standard of rest supported`_ by :mod:`astropy`. If the WCS specifies ``BARYCENT`` this will be interpreted as ``"icrs"`` (a common barycentric frame of reference), but since this choice is ambiguous a warning will be produced. If the WCS doesn't specify a ``specsys`` a warning will be produced (ignoring this one probably results in a crash later in typical MARTINI use). If the WCS does provide a ``specsys`` but MARTINI fails to interpret it an exception is raised. All of this can be overridden by explicitly setting the standard of rest with ``DataCube.from_wcs(..., specsys="icrs")``, for example. For a complete list of options you can do:
+
+.. code-block:: python
+
+    from astropy.coordinates import frame_transform_graph
+    frame_transform_graph.get_names()
 
 Saving, loading & copying the datacube state
 ++++++++++++++++++++++++++++++++++++++++++++
diff --git a/docs/source/sources/index.rst b/docs/source/sources/index.rst
index 6a3420c..f34e671 100644
--- a/docs/source/sources/index.rst
+++ b/docs/source/sources/index.rst
@@ -91,6 +91,13 @@ Any source module can be configured with the ``distance``, ``vpeculiar``, ``ra``
 
 The systemic velocity of the source is defined as the sum of the Hubble and peculiar velocities: :math:`v_\mathrm{sys}=v_\mathrm{Hubble}+v_\mathrm{peculiar}`. A positive peculiar velocity therefore makes the source recede faster than :math:`v_\mathrm{Hubble}=H_0D`, and vice-versa.
 
+Coordinate frame
+++++++++++++++++
+
+The conversion from the Cartesian coordinates of particles in a simulation to RA, Dec and distance is conceptually a straightforward conversion to a spherical coordinate system, but there are many celestial coordinate frames. For many use cases of MARTINI the specific choice of coordinate frame is unimportant, but when working closely with observational data the distinction between frames may become important. By default the :class:`~astropy.coordinates.ICRS` coordinate frame is assumed, which is centred on and at rest with respect to the Solar System barycentre. The source distance is defined from this origin, as is the radial velocity. `Other frames`_ implemented by :mod:`astropy` can be specified as arguments to :class:`~martini.sources.sph_source.SPHSource` or other source modules, e.g. ``SPHSource(..., coordinate_frame=GCRS())``. MARTINI's :class:`~martini.datacube.DataCube` class also defines a coordinate frame. At present using different coordinate frames for the two is in principle possible but not well supported, so using the same for both is recommended.
+
+.. _Other frames: https://docs.astropy.org/en/stable/coordinates/#module-astropy.coordinates.builtin_frames
+
 Manipulating a source before making a mock
 ------------------------------------------
 
diff --git a/examples/martini_source_injection.ipynb b/examples/martini_source_injection.ipynb
new file mode 100644
index 0000000..f978839
--- /dev/null
+++ b/examples/martini_source_injection.ipynb
@@ -0,0 +1,577 @@
+{
+ "cells": [
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "This example assumes some familiarity with MARTINI. It also uses the code's features tailored to the IllustrisTNG simulations. New users should work through the `martini_TNG.ipynb` notebook before this one."
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "This tutorial can be run either on the [TNG JupyterLab environment](https://www.tng-project.org/data/lab/), or on any system with internet access."
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "![MARTINI](https://github.com/kyleaoman/martini/raw/main/martini_banner.png)"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "This tutorial focuses on inserting a source from a simulation into a pre-existing data cube from an observational survey. The general MARTINI documentation is hosted at [hosted on ReadTheDocs](https://martini.readthedocs.io/en/latest/)."
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "## Installation"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "Quick installation and set up in case this is not already done, see documentation for detailed instructions."
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "import sys\n",
+    "\n",
+    "!{sys.executable} -m pip install \"astromartini[tngsource]==2.0.13\"\n",
+    "!{sys.executable} -m pip install matplotlib"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "%matplotlib inline"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {
+    "tags": []
+   },
+   "source": [
+    "## TNG Data"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "This tutorial uses the Illustris-TNG simulations because the public data release includes features to easily download small subsets of the data corresponding to single galaxies, which is convenient for demonstration purposes. Any other simulation could be used instead.\n",
+    "\n",
+    "You can [register for an IllustrisTNG account](https://www.tng-project.org/users/register/). Once registered, your API key can be found [here](https://www.tng-project.org/users/profile/). Enter your API key using the following cell (if you are running this notebook on the [TNG JupyterLab](https://www.tng-project.org/data/lab/), you may leave it blank):"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "from getpass import getpass\n",
+    "\n",
+    "api_key = getpass(\"TNG web API key:\")"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "[This tool](https://www.tng-project.org/data/search/) was used to select a gas-rich dwarf galaxy:"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "simulation = \"TNG50-1\"\n",
+    "snapshot = 99\n",
+    "subhalo_id = 737963"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {
+    "tags": []
+   },
+   "source": [
+    "## Source injection example"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "Start by importing the relevant modules from ``martini`` and ``astropy``:"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "from martini.sources import TNGSource\n",
+    "from martini import DataCube, Martini\n",
+    "from martini.beams import GaussianBeam\n",
+    "from martini.noise import GaussianNoise\n",
+    "from martini.spectral_models import GaussianSpectrum\n",
+    "from martini.sph_kernels import CubicSplineKernel\n",
+    "from astropy import units as U\n",
+    "from astropy import wcs\n",
+    "from astropy.io import fits"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {
+    "tags": []
+   },
+   "source": [
+    "### DATACUBE"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "The HI In Nearby Galaxies Survey (THINGS) hosts easily-accessible [publicly available data cubes](https://www2.mpia-hd.mpg.de/THINGS/Data.html). This example uses the [natural-weighted cube for NGC 2841](https://www2.mpia-hd.mpg.de/THINGS/Data_files/NGC_2841_NA_CUBE_THINGS.FITS). The following cell will download it (529 MB) to the working directory, unless it is already present:"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "url_base = \"https://www2.mpia-hd.mpg.de/THINGS/Data_files/\"\n",
+    "ngc2841_fitsfile = \"NGC_2841_NA_CUBE_THINGS.FITS\"\n",
+    "if not os.path.isfile(ngc2841_fitsfile):\n",
+    "    import urllib.request\n",
+    "\n",
+    "    urllib.request.urlretrieve(url_base + ngc2841_fitsfile, ngc2841_fitsfile)"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "Instead of setting up a MARTINI data cube with the usual initialisation (``DataCube(...)``), we'll create one that exactly matches the NGC 2841 observation in terms of dimensions and World Coordinate System (WCS) - in other words we'll \"observe\" the same patch of sky sampled by the same pixels and spectral channels. First we use the ``astropy.wcs`` module to initialize a WCS from the header of the survey data cube:"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "with fits.open(ngc2841_fitsfile) as fitsfile:\n",
+    "    ngc2841_wcs = wcs.WCS(fitsfile[0].header)"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "A couple of warnings are produced because the header doesn't exactly conform to the FITS standard - in this case we can safely ignore these.\n",
+    "\n",
+    "Now we use the ``DataCube.from_wcs`` method to create a MARTINI data cube:"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "datacube = DataCube.from_wcs(ngc2841_wcs)"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "We can check that our new data cube and the THINGS data cube have the same WCS:"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "print(ngc2841_wcs, datacube.wcs, sep=\"\\n\" + \"-\" * 50 + \"\\n\")"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "One thing that MARTINI may change is the order of the axes. MARTINI will always set up the data cube with the axes in ``(RA, Dec, Spectral, Stokes)`` order, or ``(RA, Dec, Spectral)`` if no Stokes' axis is present. This is a common convention that the THINGS cube happens to follow, but is not universal. What to do in case the axis ordering differs is noted below."
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "### SOURCE"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "Next we set up a MARTINI source using the TNG galaxy selected above. The first time this is run it will download a \"cutout\" file and save it in the working directory (requiring your API key). If the cutout file is found locally, it will be read instead of downloaded.\n",
+    "\n",
+    "Our ``datacube`` provides the RA and Dec of the centre of the cube as ``datacube.ra`` and ``datacube.dec``. We'll place the centre of our source a bit offset from this to avoid overlapping directly with NGC 2841. Although we'll place it at the same distance as NGC 2841 (at least within the precision of the distance measurement), we'll offset it a little bit in velocity by adjusting ``vpeculiar``."
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "source = TNGSource(\n",
+    "    simulation,\n",
+    "    snapshot,\n",
+    "    subhalo_id,\n",
+    "    api_key=api_key,\n",
+    "    cutout_dir=\".\",\n",
+    "    distance=7.5\n",
+    "    * U.Mpc,  # NGC 2841 distance, ref. Walter et al. 2008 (THINGS survey paper)\n",
+    "    ra=datacube.ra + 384 * U.arcsec,  # offset about 1/4 of cube aperture from centre\n",
+    "    dec=datacube.dec + 384 * U.arcsec,  # offset about 1/4 of cube aperture from centre\n",
+    "    vpeculiar=-100\n",
+    "    * U.km\n",
+    "    / U.s,  # NGC 2841 assuming D=7.5Mpc has vpeculiar ~+150km/s, offset a bit from this\n",
+    ")"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "MARTINI provides some convenient tools to have a quick look at the source before we proceed with a mock observation. Let's see what the gas looks like."
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "preview_fig_unrotated = source.preview(title=f\"{simulation}-{snapshot}-{subhalo_id}\")"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "We can also zoom in a bit to get a better view of the disc."
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "preview_fig_unrotated_zoom = source.preview(\n",
+    "    title=f\"{simulation}-{snapshot}-{subhalo_id}, zoomed in\",\n",
+    "    lim=30 * U.kpc,\n",
+    "    vlim=200 * U.km / U.s,\n",
+    ")"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "This seems to look ok, so let's proceed with setting up the rest of the MARTINI modules."
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "### BEAM"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "To match the observed data cube, we'll need to convolve with a similar beam. THINGS natural-weighted datacubes have spatial resolution of about 12 arcsec, so for this example we'll approximate the beam as a 12 arcsec circular Gaussian beam. Some data cube headers contain information about the beam (although this THINGS cube does not). When this is the case it might be a good idea to use the header information directly in initializing a MARTINI beam."
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "beam = GaussianBeam(\n",
+    "    bmaj=12.0 * U.arcsec,\n",
+    "    bmin=12.0 * U.arcsec,\n",
+    ")"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {
+    "tags": []
+   },
+   "source": [
+    "### NOISE, SPECTRAL MODEL & SPH KERNEL"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "The observed data cube already contains noise that will be added to our mock observation when the cubes are combined, so we won't add our own. We'll use sensible choices for the ``spectral_model`` and ``sph_kernel``; these aren't the focus of this example so refer to the [documentation](https://martini.readthedocs.io/en/latest/) for details."
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "noise = None\n",
+    "spectral_model = GaussianSpectrum(sigma=\"thermal\")\n",
+    "sph_kernel = CubicSplineKernel()"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "### MARTINI"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "Now set up the main MARTINI class:"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "M = Martini(\n",
+    "    source=source,\n",
+    "    datacube=datacube,\n",
+    "    beam=beam,\n",
+    "    noise=noise,\n",
+    "    spectral_model=spectral_model,\n",
+    "    sph_kernel=sph_kernel,\n",
+    ")"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "This generates a message that some particles have been pruned from our source because they won't contribute to the data cube. The ``Martini`` class also provides a preview tool similar to the one provided by the source module, but this time the extent of the data cube is drawn on."
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "M.preview()"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "The reason that we got a message saying that some particles were removed is clear: our galaxy extends past the edge of the cube. This isn't a problem, perhaps this \"galaxy\" that wasn't the main target of the observation happened to straddle the boundary of the field of view.\n",
+    "\n",
+    "Next we run the bulk of the work of inserting the source into the datacube and the convolution of the beam. On a single CPU the source insertion step could take quite a while (hours?), so running this in parallel is recommended if you have a multi-core CPU. Just edit ``M.insert_source_in_cube(ncpu=8)`` specifying the number of cores that you wish to use. My 24-core setup runs this in a couple of minutes.\n",
+    "\n",
+    "By default a progress bar (provided by ``tqdm``) will be displayed. This can be a bit glitchy on notebooks, especially when running on multiple cores, you can disable it with ``M.insert_source_in_cube(progressbar=False)``.\n",
+    "\n",
+    "The beam convolution step is relatively inexpensive.\n",
+    "\n",
+    "We'll also set up the cell to skip the expensive calculation if it finds an output file in the working directory."
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "martini_cube_file = \"sourceinjectiondemo.fits\"\n",
+    "if not os.path.isfile(martini_cube_file):\n",
+    "    M.insert_source_in_cube()  # this'll take a while\n",
+    "    M.convolve_beam()\n",
+    "    M.write_fits(martini_cube_file)"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "### COMBINE CUBES"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "We now have two FITS files with exactly the same WCS. As mentioned above, the one possible difference is in the axis ordering, but this can be corrected by transposing the cube produced by MARTINI. The transpose below keeps the same axis ordering, but if we wanted to swap the 0th and 1st axes this could be edited to ``transpose((1, 0, 2, 3))``, or other permutations as needed. Remember that FITS cubes have the axis order \"reversed\" relative to the WCS numbering, so in the ``martini_cube`` defined in this cell the 0th axis is the Stokes' axis, 1st is Spectral, 2nd is Dec and 3rd is RA."
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {
+    "scrolled": true
+   },
+   "outputs": [],
+   "source": [
+    "with fits.open(\"NGC_2841_NA_CUBE_THINGS.FITS\") as fitsfile:\n",
+    "    ngc2841_header = fitsfile[0].header\n",
+    "    ngc2841_cube = fitsfile[0].data\n",
+    "with fits.open(\"sourceinjectiondemo.fits\") as fitsfile:\n",
+    "    martini_header = fitsfile[0].header\n",
+    "    martini_cube = fitsfile[0].data.transpose((0, 1, 2, 3))  # this transpose: no effect"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "Before co-adding the data cubes, we can also check that the units match:"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "print(ngc2841_header[\"BUNIT\"], martini_header[\"BUNIT\"], sep=\"\\n\")"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "Before writing out a combined cube, let's quickly visualise the individual cubes and their combination. First we'll simply sum along the spectral axis (and the Stokes' axis) to obtain a quick \"surface density\" map."
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "import matplotlib.pyplot as plt\n",
+    "\n",
+    "fig, sps = plt.subplots(1, 3, sharex=True, sharey=True)\n",
+    "sps[0].imshow(ngc2841_cube.sum(axis=(0, 1)).T)\n",
+    "sps[1].imshow(martini_cube.sum(axis=(0, 1)).T)\n",
+    "sps[2].imshow((ngc2841_cube + martini_cube).sum(axis=(0, 1)).T)\n",
+    "sps[1].set_xlabel(\"RA axis [px]\")\n",
+    "sps[0].set_ylabel(\"Dec axis [px]\")"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "We can also sum along the RA (and Stokes') axis to get a quick \"position velocity\" diagram, albeit one along a fairly arbitrary direction."
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "fig, sps = plt.subplots(3, 1, sharex=True, sharey=True)\n",
+    "sps[0].imshow((ngc2841_cube).sum(axis=(0, 3)))\n",
+    "sps[1].imshow((martini_cube).sum(axis=(0, 3)))\n",
+    "sps[2].imshow((ngc2841_cube + martini_cube).sum(axis=(0, 3)))\n",
+    "sps[1].set_ylabel(\"Spectral axis [px]\")\n",
+    "sps[2].set_xlabel(\"Dec axis [px]\")\n",
+    "fig.subplots_adjust(hspace=-0.7)"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "Finally let's write the summed cubes to a new FITS file. In this example we'll just copy in the header from the THINGS data cube directly, with the minor addition of a comment mentioning the addition of a simulated galaxy."
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "out_header = ngc2841_header.copy()\n",
+    "out_header.append((\"COMMENT\", \"Simulated Illustis-TNG galaxy added with MARTINI.\"))\n",
+    "hdu = fits.PrimaryHDU(\n",
+    "    header=out_header,\n",
+    "    data=ngc2841_cube + martini_cube,\n",
+    ")\n",
+    "hdu.writeto(f\"NGC_2841_AND_{simulation}_{snapshot}_{subhalo_id}.FITS\", overwrite=True)"
+   ]
+  }
+ ],
+ "metadata": {
+  "kernelspec": {
+   "display_name": "Python 3 (ipykernel)",
+   "language": "python",
+   "name": "python3"
+  },
+  "language_info": {
+   "codemirror_mode": {
+    "name": "ipython",
+    "version": 3
+   },
+   "file_extension": ".py",
+   "mimetype": "text/x-python",
+   "name": "python",
+   "nbconvert_exporter": "python",
+   "pygments_lexer": "ipython3",
+   "version": "3.12.3"
+  }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 4
+}
diff --git a/martini/_demo.py b/martini/_demo.py
index e571767..ef2f6e9 100644
--- a/martini/_demo.py
+++ b/martini/_demo.py
@@ -77,11 +77,15 @@ def demo(cubefile="testcube.fits", beamfile="testbeam.fits", hdf5file="testcube.
 
     Parameters
     ----------
-    cubefile : string
-        File to write demonstration datacube.
+    cubefile : str
+        File name to write demonstration datacube.
 
-    beamfile : string
-        File to write demonstration beam.
+    beamfile : str
+        File name to write demonstration beam.
+
+    hdf5file : str
+        File name to write demonstration datacube in hdf5 format (if :mod:`h5py` is
+        available).
     """
     source = demo_source()
 
@@ -91,7 +95,7 @@ def demo(cubefile="testcube.fits", beamfile="testbeam.fits", hdf5file="testcube.
         n_channels=32,
         px_size=10.0 * U.arcsec,
         channel_width=10.0 * U.km * U.s**-1,
-        velocity_centre=source.vsys,
+        spectral_centre=source.vsys,
     )
 
     beam = GaussianBeam(
@@ -116,11 +120,11 @@ def demo(cubefile="testcube.fits", beamfile="testbeam.fits", hdf5file="testcube.
     M.insert_source_in_cube()
     M.add_noise()
     M.convolve_beam()
-    M.write_beam_fits(beamfile, channels="velocity")
-    M.write_fits(cubefile, channels="velocity")
+    M.write_beam_fits(beamfile)
+    M.write_fits(cubefile)
     print(f"Wrote demo fits output to {cubefile}, and beam image to {beamfile}.")
     try:
-        M.write_hdf5(hdf5file, channels="velocity")
+        M.write_hdf5(hdf5file)
     except ModuleNotFoundError:
         print("h5py package not present, skipping hdf5 output demo.")
     else:
diff --git a/martini/beams.py b/martini/beams.py
index 13c293f..d2fd752 100644
--- a/martini/beams.py
+++ b/martini/beams.py
@@ -98,7 +98,7 @@ def init_kernel(self, datacube):
         """
 
         self.px_size = datacube.px_size
-        self.vel = datacube.velocity_centre
+        self.vel = datacube.spectral_centre
         self.ra = datacube.ra
         self.dec = datacube.dec
         if (self.bmaj is None) or (self.bmin is None) or (self.bpa is None):
diff --git a/martini/datacube.py b/martini/datacube.py
index 3cec8fe..d628b76 100644
--- a/martini/datacube.py
+++ b/martini/datacube.py
@@ -1,8 +1,12 @@
 import numpy as np
 import astropy.units as U
 from astropy import wcs
+from astropy.coordinates import ICRS, SpectralCoord
+import warnings
+from astropy.coordinates import frame_transform_graph
 
 HIfreq = 1.420405751e9 * U.Hz
+_supported_specsys = frame_transform_graph.get_names()
 
 
 class DataCube(object):
@@ -36,7 +40,7 @@ class DataCube(object):
         Step size along the spectral axis. Can be provided as a velocity or a
         frequency. (Default: ``4 * U.km * U.s**-1``)
 
-    velocity_centre : ~astropy.units.Quantity, optional
+    spectral_centre : ~astropy.units.Quantity, optional
         :class:`~astropy.units.Quantity` with dimensions of velocity or frequency.
         Velocity (or frequency) of the centre along the spectral axis.
         (Default: ``0 * U.km * U.s**-1``)
@@ -53,9 +57,37 @@ class DataCube(object):
         Whether the datacube should be initialized with a Stokes' axis.
         (Default: ``False``)
 
+    coordinate_frame : ~astropy.coordinates.builtin_frames.baseradec.BaseRADecFrame, \
+    optional
+        The coordinate frame of the World Coordinate System (WCS) associated with
+        the data cube. Recommended frames are :class:`~astropy.coordinates.GCRS`,
+        :class:`~astropy.coordinates.ICRS`, :class:`~astropy.coordinates.HCRS`,
+        :class:`~astropy.coordinates.LSRK`, :class:`~astropy.coordinates.LSRD` or
+        :class:`~astropy.coordinates.LSR`. The frame should be passed initialized, e.g.
+        ``ICRS()`` (not just ``ICRS``). (Default: ``astropy.coordinates.ICRS()``)
+
+    specsys : str, optional
+        The spectral reference frame (standard of rest) of the World Coordinate System
+        (WCS) associated with the data cube. Some common options include ``"gcrs"``,
+        ``"icrs"``, ``"hcrs"``, ``"lsrk"``, ``"lsrd"``, ``"lsr"``. For a complete list,
+        use :meth:`astropy.coordinates.frame_transform_graph.get_names`.
+        (Default: ``"icrs"``)
+
     See Also
     --------
     ~martini.datacube.DataCube.load_state
+    ~martini.datacube.DataCube.from_wcs
+
+    Notes
+    -----
+    The ``channel_width`` argument defines the channel spacing in either
+    frequency or velocity units. If provided with units of frequency, the
+    data cube channels will be evenly spaced in frequency. Conversely, if
+    provided with units of velocity, the channels will be evenly spaced in
+    velocity. The ``spectral_centre`` is related and can also have units
+    of frequency or velocity, but will be converted to have the same units
+    as the ``channel_width`` in order to define the channels.
+
     """
 
     def __init__(
@@ -65,12 +97,16 @@ def __init__(
         n_channels=64,
         px_size=15.0 * U.arcsec,
         channel_width=4.0 * U.km * U.s**-1,
-        velocity_centre=0.0 * U.km * U.s**-1,
+        spectral_centre=0.0 * U.km * U.s**-1,
         ra=0.0 * U.deg,
         dec=0.0 * U.deg,
         stokes_axis=False,
+        coordinate_frame=ICRS(),
+        specsys="icrs",
     ):
         self.stokes_axis = stokes_axis
+        self.coordinate_frame = coordinate_frame
+        self.specsys = specsys
         datacube_unit = U.Jy * U.pix**-2
         self._array = np.zeros((n_px_x, n_px_y, n_channels)) * datacube_unit
         if self.stokes_axis:
@@ -80,184 +116,431 @@ def __init__(
         self.arcsec2_to_pix = (
             U.Jy * U.pix**-2,
             U.Jy * U.arcsec**-2,
-            lambda x: x / self.px_size**2,
-            lambda x: x * self.px_size**2,
-        )
-        self.velocity_centre = velocity_centre.to(
-            U.m / U.s, equivalencies=U.doppler_radio(HIfreq)
-        )
-        self.channel_width = np.abs(
-            (
-                velocity_centre.to(
-                    channel_width.unit, equivalencies=U.doppler_radio(HIfreq)
-                )
-                + 0.5 * channel_width
-            ).to(U.m / U.s, equivalencies=U.doppler_radio(HIfreq))
-            - (
-                velocity_centre.to(
-                    channel_width.unit, equivalencies=U.doppler_radio(HIfreq)
-                )
-                - 0.5 * channel_width
-            ).to(U.m / U.s, equivalencies=U.doppler_radio(HIfreq))
+            lambda x: x / self.px_size.to_value(U.arcsec) ** 2,
+            lambda x: x * self.px_size.to_value(U.arcsec) ** 2,
         )
+        if U.get_physical_type(channel_width) == "frequency":
+            self._freq_channel_mode = True
+        elif U.get_physical_type(channel_width) == "velocity":
+            self._freq_channel_mode = False
+        else:
+            raise ValueError("Channel width must have frequency or velocity units.")
+        self.channel_width = np.abs(channel_width)
+        self.spectral_centre = SpectralCoord(
+            spectral_centre,
+            doppler_convention="radio",
+            doppler_rest=HIfreq,
+        ).to(channel_width.unit)
         self.ra = ra
         self.dec = dec
         self.padx = 0
         self.pady = 0
-        self._freq_channel_mode = False
-        self._init_wcs()
-        self._channel_mids()
-        self._channel_edges()
-
-        return
+        self._channel_edges = None
+        self._channel_mids = None
+        self._wcs = None
 
-    def _init_wcs(self):
-        """
-        Initialize the World Coordinate System (WCS).
-        """
-        self.wcs = wcs.WCS(naxis=3)
-        self.wcs.wcs.crpix = [
-            self.n_px_x / 2.0 + 0.5,
-            self.n_px_y / 2.0 + 0.5,
-            self.n_channels / 2.0 + 0.5,
-        ]
-        self.units = [U.deg, U.deg, U.m / U.s]
-        self.wcs.wcs.cunit = [unit.to_string("fits") for unit in self.units]
-        self.wcs.wcs.cdelt = [
-            -self.px_size.to_value(self.units[0]),
-            self.px_size.to_value(self.units[1]),
-            self.channel_width.to_value(
-                self.units[2], equivalencies=U.doppler_radio(HIfreq)
-            ),
-        ]
-        self.wcs.wcs.crval = [
-            self.ra.to_value(self.units[0]),
-            self.dec.to_value(self.units[1]),
-            self.velocity_centre.to_value(
-                self.units[2], equivalencies=U.doppler_radio(HIfreq)
-            ),
-        ]
-        self.wcs.wcs.ctype = ["RA---TAN", "DEC--TAN", "VRAD"]
-        self.wcs.wcs.specsys = "GALACTOC"
-        if self.stokes_axis:
-            self.wcs = wcs.utils.add_stokes_axis_to_wcs(self.wcs, self.wcs.wcs.naxis)
         return
 
-    def _channel_mids(self):
+    @classmethod
+    def from_wcs(cls, input_wcs, specsys=None):
         """
-        Calculate the centres of the channels from the coordinate system.
+        Create a DataCube from a World Coordinate System (WCS), for instance one created
+        from a FITS header.
+
+        To create a MARTINI data cube with pixels and channels exactly matching an
+        observed data cube (stored in a FITS file) would be a bit tedious using the usual
+        :meth:`~martini.datacube.DataCube.__init__` since the number of pixels, channel
+        spacing and so on must be specified by hand. This function instead constructs a
+        :class:`~martini.datacube.DataCube` from a :class:`~astropy.wcs.WCS` instance,
+        that can be easily obtained from a FITS file or header (see example below). The
+        resulting data cube has exactly the same dimensions (pixels and channels) and
+        World Coordinate System (WCS) as the input WCS.
+
+        Parameters
+        ----------
+        input_wcs : ~astropy.wcs.WCS
+            The :class:`~astropy.wcs.WCS` instance to use as the basis for the
+            :class:`~martini.datacube.DataCube`.
+
+        specsys : str, optional
+            The spectral reference frame (standard of rest) of the World Coordinate System
+            (WCS) associated with the data cube, selected from the list ``"gcrs"``,
+            ``"icrs"``, ``"hcrs"``, ``"lsrk"``, ``"lsrd"``, ``"lsr"``.
+            (Default: ``"icrs"``)
+
+        See Also
+        --------
+        ~martini.datacube.DataCube
+
+        Notes
+        -----
+        MARTINI's data cubes have a fixed axis ordering: first the RA axis, then the
+        Dec axis, then the spectral axis, and finally the Stokes' axis (if present). A
+        :class:`~martini.datacube.DataCube` created with
+        :meth:`~martini.datacube.DataCube.from_wcs` may therefore have its axes
+        re-ordered (tranposed) relative to the ``input_wcs``. The FITS files output by
+        MARTINI have the same axis ordering, and may therefore also be transposed
+        relative to a data cube used to construct the :class:`~astropy.wcs.WCS` for
+        the ``input_wcs`` argument.
+
+        Examples
+        --------
+        It is easy to initialize a :class:`~astropy.wcs.WCS` from a FITS-format header.
+        For example, given a FITS file ``my_cube.fits``, setting up a
+        :class:`~martini.datacube.DataCube` with matching World Coordinate System (WCS)
+        looks like::
+
+            from astropy import wcs
+            from astropy.io import fits
+            from martini.datacube import DataCube
+
+            with fits.open("my_cube.fits") as fitsfile:
+                fits_hdr = fitsfile[0].header  # header of the main HDU
+            fits_wcs = wcs.WCS(fits_hdr)
+            datacube = DataCube.from_wcs(fits_wcs)
+
         """
-        pixels = (
-            np.zeros(self.n_channels),
-            np.zeros(self.n_channels),
-            np.arange(self.n_channels) - 0.5,
+
+        init_args = dict(
+            n_px_x=None,
+            n_px_y=None,
+            n_channels=None,
+            px_size=None,
+            channel_width=None,
+            spectral_centre=None,
+            ra=None,
+            dec=None,
+            stokes_axis=None,
+            coordinate_frame=None,
+            specsys=None,
         )
-        if self.stokes_axis:
-            pixels = pixels + (np.zeros(self.n_channels),)
-        self.channel_mids = (
-            self.wcs.wcs_pix2world(
-                *pixels,
-                0,
-            )[2]
-            * self.units[2]
+        for axis_type in input_wcs.get_axis_types():
+            if axis_type["coordinate_type"] == "stokes":
+                init_args["stokes_axis"] = True
+        if init_args["stokes_axis"] is None:
+            init_args["stokes_axis"] = False
+        centre_coords = input_wcs.all_pix2world(
+            [[n_px // 2 + (1 + n_px % 2) / 2 for n_px in input_wcs.pixel_shape]],
+            1,  # origin, i.e. index pixels from 1
+        ).squeeze()
+        ax_ra, ax_dec, ax_spec = (
+            input_wcs.wcs.lng,
+            input_wcs.wcs.lat,
+            input_wcs.wcs.spec,
         )
-        return
+        unit_ra = U.Unit(input_wcs.world_axis_units[ax_ra], format="fits")
+        unit_dec = U.Unit(input_wcs.world_axis_units[ax_dec], format="fits")
+        unit_spec = U.Unit(input_wcs.world_axis_units[ax_spec], format="fits")
+        ra_px_size = np.abs(input_wcs.wcs.cdelt[ax_ra]) * unit_ra
+        init_args["n_px_x"] = input_wcs.pixel_shape[ax_ra]
+        init_args["ra"] = centre_coords[ax_ra] * unit_ra
+        dec_px_size = input_wcs.wcs.cdelt[ax_dec] * unit_dec
+        init_args["n_px_y"] = input_wcs.pixel_shape[ax_dec]
+        init_args["dec"] = centre_coords[ax_dec] * unit_dec
+        init_args["channel_width"] = np.abs(input_wcs.wcs.cdelt[ax_spec]) * unit_spec
+        init_args["n_channels"] = input_wcs.pixel_shape[ax_spec]
+        init_args["spectral_centre"] = centre_coords[ax_spec] * unit_spec
+        init_args["coordinate_frame"] = wcs.utils.wcs_to_celestial_frame(input_wcs)
+        if specsys is not None:
+            if specsys not in _supported_specsys:
+                raise ValueError(f"Supported specsys values are {_supported_specsys}.")
+            init_args["specsys"] = specsys
+            input_wcs.wcs.specsys = specsys
+        elif input_wcs.wcs.specsys == "":
+            warnings.warn(
+                UserWarning(
+                    "Input WCS did not specify 'SPECSYS' (see `specsys` argument to "
+                    "`from_wcs` for a work-around)."
+                )
+            )
+        else:
+            if input_wcs.wcs.specsys in _supported_specsys:
+                init_args["specsys"] = input_wcs.wcs.specsys
+            elif input_wcs.wcs.specsys.lower() in _supported_specsys:
+                init_args["specsys"] = input_wcs.wcs.specsys.lower()
+            elif input_wcs.wcs.specsys == "BARYCENT":
+                warnings.warn(
+                    UserWarning(
+                        "Input WCS specified 'SPECSYS' of 'BARYCENT'. Assuming ICRS"
+                        " barycentric reference system."
+                    )
+                )
+                init_args["specsys"] = "icrs"
+            else:
+                raise ValueError(
+                    f"Input WCS specified 'SPECSYS' of '{input_wcs.wcs.specsys}' not"
+                    " yet supported by MARTINI. Please report using a github issue or"
+                    " email kyle.a.oman@durham.ac.uk."
+                )
+
+        if ra_px_size != dec_px_size:
+            raise ValueError(
+                "Martini requires square pixels but input wcs has non-square pixels"
+                " (|CDELT| for RA and Dec axes do not match)."
+            )
+        else:
+            init_args["px_size"] = ra_px_size  # == dec_px_size
+        datacube = cls(**init_args)
+        # order celestial, then spectral, then other (stokes):
+        datacube_wcs = input_wcs.reorient_celestial_first()
+        if datacube_wcs.wcs.lat == 0:  # RA & Dec swapped
+            datacube_wcs = datacube_wcs.swapaxes(0, 1)
+        if input_wcs.wcs.restfrq == 0.0:
+            warnings.warn(
+                UserWarning(
+                    "Input WCS did not specify RESTFRQ, "
+                    f"assuming {HIfreq.to_value(U.Hz)} (Hz)."
+                )
+            )
+            datacube_wcs.wcs.restfrq = HIfreq.to_value(U.Hz)
+        datacube._wcs = datacube_wcs
+        datacube._freq_channel_mode = (
+            U.get_physical_type(
+                U.Unit(
+                    datacube_wcs.world_axis_units[datacube_wcs.wcs.spec], format="fits"
+                )
+            )
+            == "frequency"
+        )
+        return datacube
 
-    def _channel_edges(self):
+    @property
+    def units(self):
         """
-        Calculate the edges of the channels from the coordinate system.
+        The units of the DataCube's World Coordinate System (WCS).
+
+        Returns
+        -------
+        out : tuple
+            A tuple containing :class:`~astropy.units.Unit` instances describing the WCS
+            units.
         """
-        pixels = (
-            np.zeros(self.n_channels + 1),
-            np.zeros(self.n_channels + 1),
-            np.arange(self.n_channels + 1) - 1,
-        )
-        if self.stokes_axis:
-            pixels = pixels + (np.zeros(self.n_channels + 1),)
-        self.channel_edges = (
-            self.wcs.wcs_pix2world(
-                *pixels,
-                0,
-            )[2]
-            * self.units[2]
-        )
-        return
+        return tuple(U.Unit(unit, format="fits") for unit in self.wcs.wcs.cunit)
 
-    def spatial_slices(self):
+    @property
+    def wcs(self):
         """
-        Return an iterator over the spatial 'slices' of the cube.
+        The DataCube's World Coordinate System (WCS).
 
         Returns
         -------
-        out : iterator
-            Iterator over the spatial 'slices' of the cube.
+        out : ~astropy.wcs.WCS
+            The :class:`~astropy.wcs.WCS` instance that describes the
+            :class:`~martini.datacube.DataCube`'s World Coordinate System (WCS).
         """
-        s = np.s_[..., 0] if self.stokes_axis else np.s_[...]
-        return iter(self._array[s].transpose((2, 0, 1)))
+        if self._wcs is None:
+            hdr = wcs.utils.celestial_frame_to_wcs(self.coordinate_frame).to_header()
+            hdr.update(dict(WCSAXES=3))  # add spectral axis
+            hdr.update(
+                dict(NAXIS1=self.n_px_x, NAXIS2=self.n_px_y, NAXIS3=self.n_channels)
+            )
+            hdr.update(dict(RESTFRQ=HIfreq.to_value(U.Hz)))
+            self._wcs = wcs.WCS(hdr)
+            self._wcs.wcs.ctype = [
+                self._wcs.wcs.ctype[0],
+                self._wcs.wcs.ctype[1],
+                "FREQ" if self._freq_channel_mode else "VRAD",
+            ]
+            self._wcs.wcs.specsys = self.specsys
+            self._wcs.wcs.cunit = [
+                self._wcs.wcs.cunit[0],
+                self._wcs.wcs.cunit[1],
+                (
+                    U.Hz.to_string(format="fits")
+                    if self._freq_channel_mode
+                    else (U.m / U.s).to_string(format="fits")
+                ),
+            ]
+            self._wcs.wcs.crpix = [
+                self.n_px_x / 2.0 + 0.5 + self.padx,
+                self.n_px_y / 2.0 + 0.5 + self.pady,
+                self.n_channels / 2.0 + 0.5,
+            ]
+            spec_step_sign = 1 if self._freq_channel_mode else -1
+            self._wcs.wcs.cdelt = [
+                -self.px_size.to_value(self._wcs.wcs.cunit[0]),
+                self.px_size.to_value(self._wcs.wcs.cunit[1]),
+                spec_step_sign
+                * np.abs(self.channel_width.to_value(self._wcs.wcs.cunit[2])),
+            ]
+            self._wcs.wcs.crval = [
+                self.ra.to_value(self._wcs.wcs.cunit[0]),
+                self.dec.to_value(self._wcs.wcs.cunit[1]),
+                self.spectral_centre.to_value(self._wcs.wcs.cunit[2]),
+            ]
+            if self.stokes_axis:
+                self._wcs = wcs.utils.add_stokes_axis_to_wcs(
+                    self._wcs, self._wcs.wcs.naxis
+                )
+                self._wcs.pixel_shape = (self.n_px_x, self.n_px_y, self.n_channels, 1)
+        return self._wcs
 
-    def spectra(self):
+    @property
+    def channel_mids(self):
         """
-        Return an iterator over the spectra (one in each spatial pixel).
+        The centres of the channels from the coordinate system.
 
         Returns
         -------
-        out : iterator
-            Iterator over the spectra (one in each spatial pixel).
+        out : ~astropy.units.Quantity
+            :class:`~astropy.units.Quantity` with dimensions of frequency or velocity
+            containing the channel centres.
         """
-        s = np.s_[..., 0] if self.stokes_axis else np.s_[...]
-        return iter(self._array[s].reshape(self.n_px_x * self.n_px_y, self.n_channels))
+        if self._channel_mids is None:
+            self._channel_mids = SpectralCoord(
+                (
+                    self.wcs.sub(("spectral",)).all_pix2world(
+                        np.arange(self.n_channels),
+                        0,
+                    )
+                    * self.units[2]
+                ).squeeze(),
+                doppler_convention="radio",
+                doppler_rest=HIfreq,
+            )
+        return self._channel_mids
 
-    def freq_channels(self):
+    @property
+    def channel_edges(self):
         """
-        Convert spectral axis to frequency units.
+        The edges of the channels from the coordinate system.
+
+        Returns
+        -------
+        out : ~astropy.units.Quantity
+            :class:`~astropy.units.Quantity` with dimensions of frequency or velocity
+            containing the channel edges.
         """
-        if self._freq_channel_mode:
-            return
+        if self._channel_edges is None:
+            self._channel_edges = SpectralCoord(
+                (
+                    self.wcs.sub(("spectral",)).all_pix2world(
+                        np.arange(self.n_channels + 1) - 0.5,
+                        0,
+                    )
+                    * self.units[2]
+                ).squeeze(),
+                doppler_convention="radio",
+                doppler_rest=HIfreq,
+            )
+        return self._channel_edges
 
-        self.wcs.wcs.cdelt[2] = -np.abs(
-            (
-                (self.wcs.wcs.crval[2] + 0.5 * self.wcs.wcs.cdelt[2]) * self.units[2]
-            ).to_value(U.Hz, equivalencies=U.doppler_radio(HIfreq))
-            - (
-                (self.wcs.wcs.crval[2] - 0.5 * self.wcs.wcs.cdelt[2]) * self.units[2]
-            ).to_value(U.Hz, equivalencies=U.doppler_radio(HIfreq))
-        )
-        self.wcs.wcs.crval[2] = (self.wcs.wcs.crval[2] * self.units[2]).to_value(
-            U.Hz, equivalencies=U.doppler_radio(HIfreq)
-        )
-        self.wcs.wcs.ctype[2] = "FREQ"
-        self.units[2] = U.Hz
-        self.wcs.wcs.cunit[2] = self.units[2].to_string("fits")
-        self._freq_channel_mode = True
-        self._channel_mids()
-        self._channel_edges()
-        return
+    @property
+    def velocity_channel_mids(self):
+        """
+        The centres of the channels from the coordinate system in velocity units.
 
-    def velocity_channels(self):
+        Returns
+        -------
+        out : ~astropy.units.Quantity
+            :class:`~astropy.units.Quantity` with dimensions of velocity containing the
+            channel centres.
         """
-        Convert spectral axis to velocity units.
+        return self.channel_mids.to(U.m / U.s)
+
+    @property
+    def velocity_channel_edges(self):
         """
-        if not self._freq_channel_mode:
-            return
+        The edges of the channels from the coordinate system in velocity units.
 
-        self.wcs.wcs.cdelt[2] = np.abs(
-            (
-                (self.wcs.wcs.crval[2] - 0.5 * self.wcs.wcs.cdelt[2]) * self.units[2]
-            ).to_value(U.m / U.s, equivalencies=U.doppler_radio(HIfreq))
-            - (
-                (self.wcs.wcs.crval[2] + 0.5 * self.wcs.wcs.cdelt[2]) * self.units[2]
-            ).to_value(U.m / U.s, equivalencies=U.doppler_radio(HIfreq))
-        )
-        self.wcs.wcs.crval[2] = (self.wcs.wcs.crval[2] * self.units[2]).to_value(
-            U.m / U.s, equivalencies=U.doppler_radio(HIfreq)
-        )
-        self.wcs.wcs.ctype[2] = "VRAD"
-        self.units[2] = U.m * U.s**-1
-        self.wcs.wcs.cunit[2] = self.units[2].to_string("fits")
-        self._freq_channel_mode = False
-        self._channel_mids()
-        self._channel_edges()
-        return
+        Returns
+        -------
+        out : ~astropy.units.Quantity
+            :class:`~astropy.units.Quantity` with dimensions of velocity containing the
+            channel edges.
+        """
+        return self.channel_edges.to(U.m / U.s)
+
+    @property
+    def frequency_channel_mids(self):
+        """
+        The centres of the channels from the coordinate system in frequency units.
+
+        Returns
+        -------
+        out : ~astropy.units.Quantity
+            :class:`~astropy.units.Quantity` with dimensions of frequency containing the
+            channel centres.
+        """
+        return self.channel_mids.to(U.Hz)
+
+    @property
+    def frequency_channel_edges(self):
+        """
+        The edges of the channels from the coordinate system in frequency units.
+
+        Returns
+        -------
+        out : ~astropy.units.Quantity
+            :class:`~astropy.units.Quantity` with dimensions of frequency containing the
+            channel edges.
+        """
+        return self.channel_edges.to(U.Hz)
+
+    @property
+    def _stokes_index(self):
+        """
+        The position of the Stokes' axis in the WCS axis order.
+
+        Unlike the RA (``wcs.WCS().wcs.lng``), Dec (``wcs.WCS().wcs.lat``) and spectral
+        axis (``wcs.WCS().wcs.spec``), the Stokes' axis isn't exposed in a convenient way,
+        so we implement a helper.
+
+        Returns
+        -------
+        out : int or None
+            Index of the Stokes' axis (or ``None`` if it is not present).
+        """
+        for index, axis_type in enumerate(self.wcs.get_axis_types()):
+            if axis_type == "stokes":
+                return index
+        return None  # not found
+
+    @property
+    def spatial_slices(self):
+        """
+        An iterator over the spatial 'slices' of the cube.
+
+        Returns
+        -------
+        out : iter
+            The iterator over the spatial 'slices' of the cube.
+        """
+        if self.stokes_axis:
+            return iter(
+                self._array.squeeze(self._stokes_index).transpose(
+                    (self.wcs.wcs.spec, self.wcs.wcs.lng, self.wcs.wcs.lat)
+                )
+            )
+        else:
+            return iter(
+                self._array.transpose(
+                    (self.wcs.wcs.spec, self.wcs.wcs.lng, self.wcs.wcs.lat)
+                )
+            )
+
+    @property
+    def spectra(self):
+        """
+        An iterator over the spectra (one in each spatial pixel).
+
+        Returns
+        -------
+        out : iter
+            The iterator over the spectra making up the cube.
+        """
+        if self.stokes_axis:
+            return iter(
+                self._array.squeeze(self._stokes_index)
+                .transpose((self.wcs.wcs.lng, self.wcs.wcs.lat, self.wcs.wcs.spec))
+                .reshape(self.n_px_x * self.n_px_y, self.n_channels)
+            )
+        else:
+            return iter(
+                self._array.transpose(
+                    (self.wcs.wcs.lng, self.wcs.wcs.lat, self.wcs.wcs.spec)
+                ).reshape(self.n_px_x * self.n_px_y, self.n_channels)
+            )
 
     def add_pad(self, pad):
         """
@@ -293,7 +576,7 @@ def add_pad(self, pad):
         extend_crpix = [pad[0], pad[1], 0]
         if self.stokes_axis:
             extend_crpix.append(0)
-        self.wcs.wcs.crpix += np.array(extend_crpix)
+        self._wcs.wcs.crpix = self.wcs.wcs.crpix + np.array(extend_crpix)
         self.padx, self.pady = pad
         return
 
@@ -315,7 +598,7 @@ def drop_pad(self):
         retract_crpix = [self.padx, self.pady, 0]
         if self.stokes_axis:
             retract_crpix.append(0)
-        self.wcs.wcs.crpix -= np.array(retract_crpix)
+        self._wcs.wcs.crpix = self.wcs.wcs.crpix - np.array(retract_crpix)
         self.padx, self.pady = 0, 0
         return
 
@@ -328,27 +611,24 @@ def copy(self):
 
         Returns
         -------
-        out : martini.datacube.DataCube
+        out : ~martini.datacube.DataCube
             Copy of the :class:`~martini.datacube.DataCube` object.
         """
-        in_freq_channel_mode = self._freq_channel_mode
-        if in_freq_channel_mode:
-            self.velocity_channels()
         copy = DataCube(
             self.n_px_x,
             self.n_px_y,
             self.n_channels,
             self.px_size,
             self.channel_width,
-            self.velocity_centre,
+            self.spectral_centre,
             self.ra,
             self.dec,
         )
         copy.padx, copy.pady = self.padx, self.pady
-        copy.wcs = self.wcs
+        copy._wcs = self.wcs.copy()
         copy._freq_channel_mode = self._freq_channel_mode
-        copy.channel_edges = self.channel_edges
-        copy.channel_mids = self.channel_mids
+        copy._channel_edges = self._channel_edges
+        copy._channel_mids = self._channel_mids
         copy._array = self._array.copy()
         return copy
 
@@ -390,11 +670,11 @@ def save_state(self, filename, overwrite=False):
                 channel_width_unit
             )
             f["_array"].attrs["channel_width_unit"] = str(channel_width_unit)
-            velocity_centre_unit = self.velocity_centre.unit
-            f["_array"].attrs["velocity_centre"] = self.velocity_centre.to_value(
-                velocity_centre_unit
+            spectral_centre_unit = self.spectral_centre.unit
+            f["_array"].attrs["spectral_centre"] = self.spectral_centre.to_value(
+                spectral_centre_unit
             )
-            f["_array"].attrs["velocity_centre_unit"] = str(velocity_centre_unit)
+            f["_array"].attrs["spectral_centre_unit"] = str(spectral_centre_unit)
             ra_unit = self.ra.unit
             f["_array"].attrs["ra"] = self.ra.to_value(ra_unit)
             f["_array"].attrs["ra_unit"] = str(ra_unit)
@@ -405,6 +685,7 @@ def save_state(self, filename, overwrite=False):
             f["_array"].attrs["pady"] = self.pady
             f["_array"].attrs["_freq_channel_mode"] = int(self._freq_channel_mode)
             f["_array"].attrs["stokes_axis"] = self.stokes_axis
+            f["_array"].attrs["wcs_hdr"] = self.wcs.to_header_string()
         return
 
     @classmethod
@@ -422,7 +703,7 @@ def load_state(cls, filename):
 
         Returns
         -------
-        out : martini.datacube.DataCube
+        out : ~martini.datacube.DataCube
             A suitably initialized :class:`~martini.datacube.DataCube` object.
 
         See Also
@@ -441,8 +722,8 @@ def load_state(cls, filename):
             channel_width = f["_array"].attrs["channel_width"] * U.Unit(
                 f["_array"].attrs["channel_width_unit"]
             )
-            velocity_centre = f["_array"].attrs["velocity_centre"] * U.Unit(
-                f["_array"].attrs["velocity_centre_unit"]
+            spectral_centre = f["_array"].attrs["spectral_centre"] * U.Unit(
+                f["_array"].attrs["spectral_centre_unit"]
             )
             ra = f["_array"].attrs["ra"] * U.Unit(f["_array"].attrs["ra_unit"])
             dec = f["_array"].attrs["dec"] * U.Unit(f["_array"].attrs["dec_unit"])
@@ -453,16 +734,15 @@ def load_state(cls, filename):
                 n_channels=n_channels,
                 px_size=px_size,
                 channel_width=channel_width,
-                velocity_centre=velocity_centre,
+                spectral_centre=spectral_centre,
                 ra=ra,
                 dec=dec,
                 stokes_axis=stokes_axis,
             )
-            D._init_wcs()
             D.add_pad((f["_array"].attrs["padx"], f["_array"].attrs["pady"]))
-            if bool(f["_array"].attrs["_freq_channel_mode"]):
-                D.freq_channels()
             D._array = f["_array"] * U.Unit(f["_array"].attrs["datacube_unit"])
+            # must be after add_pad:
+            D._wcs = wcs.WCS(f["_array"].attrs["wcs_hdr"])
         return D
 
     def __repr__(self):
@@ -491,17 +771,23 @@ class _GlobalProfileDataCube(DataCube):
         Step size along the spectral axis. Can be provided as a velocity or a
         frequency. (Default: ``4 U.km * U.s**-1``)
 
-    velocity_centre : ~astropy.units.Quantity, optional
+    spectral_centre : ~astropy.units.Quantity, optional
         :class:`~astropy.units.Quantity` with dimensions of velocity or frequency.
         Velocity (or frequency) of the centre along the spectral axis.
         (Default: ``0 * U.km * U.s**-1``)
+
+    specsys : str, optional
+        The spectral reference frame (standard of rest) of the World Coordinate System
+        (WCS) associated with the data cube, selected from the list ``"gcrs"``,
+        ``"icrs"``, ``"hcrs"``, ``"lsrk"``, ``"lsrd"``, ``"lsr"``. (Default: ``"icrs"``)
     """
 
     def __init__(
         self,
         n_channels=64,
         channel_width=4.0 * U.km * U.s**-1,
-        velocity_centre=0.0 * U.km * U.s**-1,
+        spectral_centre=0.0 * U.km * U.s**-1,
+        specsys="icrs",
     ):
         super().__init__(
             n_px_x=1,
@@ -509,10 +795,12 @@ def __init__(
             n_channels=n_channels,
             px_size=1 * U.deg,  # must be >0, ignored for insertion, needed for units
             channel_width=channel_width,
-            velocity_centre=velocity_centre,
+            spectral_centre=spectral_centre,
             ra=0.0 * U.deg,
             dec=0.0 * U.deg,
             stokes_axis=False,
+            coordinate_frame=ICRS(),
+            specsys=specsys,
         )
 
         return
diff --git a/martini/datacube.pyi b/martini/datacube.pyi
index ebe578b..4ecdd7e 100644
--- a/martini/datacube.pyi
+++ b/martini/datacube.pyi
@@ -1,6 +1,7 @@
 import typing as T
 import astropy.units as U
 from astropy.wcs.wcs import WCS
+from astropy.coordinates.builtin_frames.baseradec import BaseRADecFrame
 
 HIfreq: U.Quantity[U.Hz]
 
@@ -13,7 +14,7 @@ class DataCube:
         T.Callable[[U.Quantity[U.Jy * U.arcsec**-2]], U.Quantity[U.Jy * U.pix**-2]],
     ]
     channel_width: U.Quantity[U.km / U.s]
-    velocity_centre: U.Quantity[U.km / U.s]
+    spectral_centre: U.Quantity[U.km / U.s]
     ra: U.Quantity[U.deg]
     dec: U.Quantity[U.deg]
     padx: int
@@ -23,12 +24,16 @@ class DataCube:
         | U.Quantity[U.Jy * U.arcsec**-2]
         | U.Quantity[U.Jy * U.beam**-1]
     )
-    wcs: WCS
-    units: T.Tuple[U.Quantity[U.deg], U.Quantity[U.deg], U.Quantity[U.m / U.s]]
+    _wcs: T.Optional[WCS]
     n_px_x: int
     n_px_y: int
     n_channels: int
     stokes_axis: bool
+    coordinate_frame: BaseRADecFrame
+    specsys: str
+    _freq_channel_mode: bool
+    _channel_edges: T.Optional[T.Union[U.Quantity[U.Hz], U.Quantity[U.m / U.s]]]
+    _channel_mids: T.Optional[T.Union[U.Quantity[U.Hz], U.Quantity[U.m / U.s]]]
 
     def __init__(
         self,
@@ -37,26 +42,64 @@ class DataCube:
         n_channels: int = ...,
         px_size: U.Quantity[U.arcsec] = ...,
         channel_width: U.Quantity[U.arcsec] = ...,
-        velocity_centre: U.Quantity[U.km / U.s] = ...,
+        spectral_centre: U.Quantity[U.km / U.s] = ...,
         ra: U.Quantity[U.deg] = ...,
         dec: U.Quantity[U.deg] = ...,
         stokes_axis: bool = ...,
+        coordinate_frame: BaseRADecFrame = ...,
+        specsys: str = ...,
     ) -> None: ...
+    @classmethod
+    def from_wcs(cls, input_wcs: WCS, specsys=T.Optional[str]) -> T.Self: ...
+    @property
+    def units(
+        self,
+    ) -> T.Union[
+        T.Tuple[
+            U.Quantity[U.deg],
+            U.Quantity[U.deg],
+            T.Union[U.Quantity[U.Hz], U.Quantity[U.m / U.s]],
+        ],
+        T.Tuple[
+            U.Quantity[U.deg],
+            U.Quantity[U.deg],
+            T.Union[U.Quantity[U.Hz], U.Quantity[U.m / U.s]],
+            U.Quantity[U.dimensionless_unscaled],
+        ],
+    ]: ...
+    @property
+    def wcs(self) -> WCS: ...
+    @property
+    def channel_mids(self) -> T.Union[U.Quantity[U.Hz], U.Quantity[U.m / U.s]]: ...
+    @property
+    def channel_edges(self) -> T.Union[U.Quantity[U.Hz], U.Quantity[U.m / U.s]]: ...
+    @property
+    def velocity_channel_mids(self) -> U.Quantity[U.m / U.s]: ...
+    @property
+    def velocity_channel_edges(self) -> U.Quantity[U.m / U.s]: ...
+    @property
+    def frequency_channel_mids(self) -> U.Quantity[U.Hz]: ...
+    @property
+    def frequency_channel_edges(self) -> U.Quantity[U.Hz]: ...
+    @property
+    def _stokes_index(self) -> T.Optional[int]: ...
+    @property
     def spatial_slices(self) -> T.Iterator[U.Quantity]: ...
+    @property
     def spectra(self) -> T.Iterator[U.Quantity]: ...
-    def freq_channels(self) -> None: ...
-    def velocity_channels(self) -> None: ...
     def add_pad(self, pad: T.Tuple[int, int]) -> None: ...
     def drop_pad(self) -> None: ...
-    def copy(self) -> "DataCube": ...
+    def copy(self) -> T.Self: ...
     def save_state(self, filename: str, overwrite: bool = ...) -> None: ...
     @classmethod
-    def load_state(cls, filename: str) -> "DataCube": ...
+    def load_state(cls, filename: str) -> T.Self: ...
+    def __repr__(self) -> str: ...
 
 class _GlobalProfileDataCube(DataCube):
     def __init__(
         self,
         n_channels: int = ...,
         channel_width: U.Quantity[U.arcsec] = ...,
-        velocity_centre: U.Quantity[U.km / U.s] = ...,
+        spectral_centre: U.Quantity[U.km / U.s] = ...,
+        specsys: str = ...,
     ) -> None: ...
diff --git a/martini/martini.py b/martini/martini.py
index ec1f7ad..6c0a94d 100644
--- a/martini/martini.py
+++ b/martini/martini.py
@@ -10,7 +10,7 @@
 from itertools import product
 from .__version__ import __version__ as martini_version
 from warnings import warn
-from martini.datacube import DataCube, _GlobalProfileDataCube, HIfreq
+from martini.datacube import DataCube, _GlobalProfileDataCube
 from martini.sph_kernels import DiracDeltaKernel
 
 try:
@@ -70,8 +70,8 @@ class _BaseMartini:
         other models is straightforward. See
         :doc:`sub-module documentation </spectral_models/index>`.
 
-    quiet : bool
-        If True, suppress output to stdout. (Default: ``False``)
+    quiet : bool, optional
+        If ``True``, suppress output to stdout. (Default: ``False``)
 
     See Also
     --------
@@ -142,10 +142,10 @@ def _prune_particles(self, spatial=True, spectral=True, obj_type_str="data cube"
         Parameters
         ----------
         spatial : bool
-            If True, prune particles that fall outside the spatial aperture.
+            If ``True``, prune particles that fall outside the spatial aperture.
             (Default: ``True``)
         spectral : bool
-            If True, prune particles that fall outside the spectral bandwidth.
+            If ``True``, prune particles that fall outside the spectral bandwidth.
             (Default: ``True``)
         obj_type_str : str
             String describing the object to be pruned for messages.
@@ -157,8 +157,8 @@ def _prune_particles(self, spatial=True, spectral=True, obj_type_str="data cube"
                 f"Source module contained {self.source.npart} particles with total HI"
                 f" mass of {self.source.mHI_g.sum():.2e}."
             )
-        spectrum_half_width = (
-            self.spectral_model.half_width(self.source) / self._datacube.channel_width
+        spectrum_half_width = self.spectral_model.half_width(self.source) / np.max(
+            np.abs(np.diff(self._datacube.velocity_channel_edges))
         )
         spatial_reject_conditions = (
             (
@@ -184,6 +184,7 @@ def _prune_particles(self, spatial=True, spectral=True, obj_type_str="data cube"
             else tuple()
         )
         reject_mask = np.zeros(self.source.pixcoords[0].shape)
+        # this could be a logical_or.reduce?:
         for condition in spatial_reject_conditions + spectral_reject_conditions:
             reject_mask = np.logical_or(reject_mask, condition)
         self.source.apply_mask(np.logical_not(reject_mask))
@@ -218,6 +219,9 @@ def _evaluate_pixel_spectrum(self, ranks_and_ij_pxs, progressbar=True):
             A 2-tuple containing an integer (cpu "rank" in the case of parallel execution)
             and a list of 2-tuples specifying the indices (i, j) of pixels in the grid.
 
+        progressbar : bool, optional
+            Whether to display a :mod:`tqdm` progressbar. (Default: ``True``)
+
         Returns
         -------
         out : list
@@ -298,7 +302,7 @@ def _insert_source_in_cube(
             `multiprocessing`). (Default: ``1``)
 
         quiet : bool, optional
-            If True, suppress output to stdout. If specified, takes precedence over
+            If ``True``, suppress output to stdout. If specified, takes precedence over
             quiet parameter of class. (Default: ``None``)
         """
 
@@ -345,15 +349,22 @@ def _insert_source_in_cube(
             if self._datacube.padx > 0 and self._datacube.pady > 0
             else np.s_[...]
         )
-        inserted_flux_density = (
-            self._datacube._array[pad_mask].sum() * self._datacube.px_size**2
+        inserted_flux_density = np.sum(
+            self._datacube._array[pad_mask] * self._datacube.px_size**2
         ).to(U.Jy)
         inserted_mass = (
             2.36e5
             * U.Msun
             * self.source.distance.to_value(U.Mpc) ** 2
-            * inserted_flux_density.to_value(U.Jy)
-            * self._datacube.channel_width.to_value(U.km / U.s)
+            * np.sum(
+                (self._datacube._array[pad_mask] * self._datacube.px_size**2)
+                .sum((0, 1))
+                .squeeze()
+                .to_value(U.Jy)
+                * np.abs(np.diff(self._datacube.velocity_channel_edges)).to_value(
+                    U.km / U.s
+                )
+            )
         )
         if (quiet is None and not self.quiet) or (quiet is not None and not quiet):
             print(
@@ -381,7 +392,7 @@ def reset(self):
             n_channels=self._datacube.n_channels,
             px_size=self._datacube.px_size,
             channel_width=self._datacube.channel_width,
-            velocity_centre=self._datacube.velocity_centre,
+            spectral_centre=self._datacube.spectral_centre,
             ra=self._datacube.ra,
             dec=self._datacube.dec,
             stokes_axis=self._datacube.stokes_axis,
@@ -471,7 +482,7 @@ def preview(
         z_cube = ((self._datacube.dec - self.source.dec) * self.source.distance).to(
             U.kpc, U.dimensionless_angles()
         )
-        v_cube = (self._datacube.velocity_centre - self.source.vsys).to(U.km / U.s)
+        v_cube = (self._datacube.spectral_centre - self.source.vsys).to(U.km / U.s)
         dy_cube = 0.5 * (
             self._datacube.px_size * self._datacube.n_px_x * self.source.distance
         ).to(
@@ -681,6 +692,9 @@ class Martini(_BaseMartini):
         other models is straightforward. See
         :doc:`sub-module documentation </spectral_models/index>`.
 
+    quiet : bool, optional
+        If ``True``, suppress output to stdout. (Default: ``False``)
+
     See Also
     --------
     ~martini.sources.sph_source.SPHSource
@@ -709,7 +723,7 @@ class Martini(_BaseMartini):
             def f(r):
                 return L - 0.5 * (2 - np.exp(-r) * (np.power(r, 2) + 2 * r + 2))
 
-            r.append(fsolve(f, 1.0)[0])
+        r.append(fsolve(f, 1.0)[0])
         r = np.array(r)
         # exponential disk
         r *= 3 / np.sort(r)[N // 2]
@@ -751,7 +765,7 @@ def f(r):
             n_channels=32,
             px_size=10.0 * U.arcsec,
             channel_width=10.0 * U.km * U.s**-1,
-            velocity_centre=source.vsys,
+            spectral_centre=source.vsys,
         )
 
         beam = GaussianBeam(
@@ -776,11 +790,11 @@ def f(r):
         M.insert_source_in_cube()
         M.add_noise()
         M.convolve_beam()
-        M.write_beam_fits(beamfile, channels="velocity")
-        M.write_fits(cubefile, channels="velocity")
+        M.write_beam_fits(beamfile)
+        M.write_fits(cubefile)
         print(f"Wrote demo fits output to {cubefile}, and beam image to {beamfile}.")
         try:
-            M.write_hdf5(hdf5file, channels="velocity")
+            M.write_hdf5(hdf5file)
         except ModuleNotFoundError:
             print("h5py package not present, skipping hdf5 output demo.")
         else:
@@ -813,6 +827,12 @@ def __init__(
     def datacube(self):
         """
         The :class:`~martini.datacube.DataCube` object for this mock observation.
+
+        Returns
+        -------
+        out : ~martini.datacube.DataCube
+            The :class:`~martini.datacube.DataCube` contained by this
+            :class:`~martini.martini.Martini` instance.
         """
         return self._datacube
 
@@ -869,7 +889,7 @@ def convolve_beam(self):
             )
 
         unit = self._datacube._array.unit
-        for spatial_slice in self._datacube.spatial_slices():
+        for spatial_slice in self._datacube.spatial_slices:
             # use a view [...] to force in-place modification
             spatial_slice[...] = (
                 fftconvolve(spatial_slice, self.beam.kernel, mode="same") * unit
@@ -926,7 +946,6 @@ def add_noise(self):
     def write_fits(
         self,
         filename,
-        channels="frequency",
         overwrite=True,
     ):
         """
@@ -938,24 +957,11 @@ def write_fits(
             Name of the file to write. ``'.fits'`` will be appended if not already
             present.
 
-        channels : str, optional
-            Type of units (``"velocity"`` or ``"frequency"``) used along the spectral axis
-            in output file. (Default: ``"frequency"``)
-
         overwrite: bool, optional
             Whether to allow overwriting existing files. (Default: ``True``)
         """
 
         self._datacube.drop_pad()
-        if channels == "frequency":
-            self._datacube.freq_channels()
-        elif channels == "velocity":
-            self._datacube.velocity_channels()
-        else:
-            raise ValueError(
-                "Martini.write_fits: Unknown 'channels' value "
-                "(use 'frequency' or 'velocity')."
-            )
 
         filename = filename if filename[-5:] == ".fits" else filename + ".fits"
 
@@ -995,7 +1001,6 @@ def write_fits(
             header.append(("CUNIT4", "PAR"))
         header.append(("EPOCH", 2000))
         header.append(("INSTRUME", "MARTINI", martini_version))
-        # header.append(('BLANK', -32768)) #only for integer data
         header.append(("BSCALE", 1.0))
         header.append(("BZERO", 0.0))
         datacube_array_units = self._datacube._array.unit
@@ -1011,22 +1016,15 @@ def write_fits(
         if self.beam is not None:
             header.append(("BPA", self.beam.bpa.to_value(U.deg)))
         header.append(("OBSERVER", "K. Oman"))
-        # header.append(('NITERS', ???))
-        # header.append(('RMS', ???))
-        # header.append(('LWIDTH', ???))
-        # header.append(('LSTEP', ???))
         header.append(("BUNIT", datacube_array_units.to_string("fits")))
-        # header.append(('PCDEC', ???))
-        # header.append(('LSTART', ???))
         header.append(("DATE-OBS", Time.now().to_value("fits")))
-        # header.append(('LTYPE', ???))
-        # header.append(('PCRA', ???))
-        # header.append(('CELLSCAL', ???))
+        header.append(("MJD-OBS", Time.now().to_value("mjd")))
         if self.beam is not None:
             header.append(("BMAJ", self.beam.bmaj.to_value(U.deg)))
             header.append(("BMIN", self.beam.bmin.to_value(U.deg)))
         header.append(("BTYPE", "Intensity"))
         header.append(("SPECSYS", wcs_header["SPECSYS"]))
+        header.append(("RESTFRQ", wcs_header["RESTFRQ"]))
 
         # flip axes to write
         hdu = fits.PrimaryHDU(
@@ -1034,11 +1032,9 @@ def write_fits(
         )
         hdu.writeto(filename, overwrite=overwrite)
 
-        if channels == "frequency":
-            self._datacube.velocity_channels()
         return
 
-    def write_beam_fits(self, filename, channels="frequency", overwrite=True):
+    def write_beam_fits(self, filename, overwrite=True):
         """
         Output the beam to a FITS-format file.
 
@@ -1051,10 +1047,6 @@ def write_beam_fits(self, filename, channels="frequency", overwrite=True):
             Name of the file to write. ``".fits"`` will be appended if not already
             present.
 
-        channels : str, optional
-            Type of units (``"velocity"`` or ``"frequency"``) used along the spectral axis
-            in output file. (Default: ``"frequency"``)
-
         overwrite: bool, optional
             Whether to allow overwriting existing files. (Default: ``True``)
 
@@ -1069,15 +1061,6 @@ def write_beam_fits(self, filename, channels="frequency", overwrite=True):
                 "Martini.write_beam_fits: Called with beam set " "to 'None'."
             )
         assert self.beam.kernel is not None
-        if channels == "frequency":
-            self._datacube.freq_channels()
-        elif channels == "velocity":
-            self._datacube.velocity_channels()
-        else:
-            raise ValueError(
-                "Martini.write_beam_fits: Unknown 'channels' "
-                "value (use 'frequency' or 'velocity'."
-            )
 
         filename = filename if filename[-5:] == ".fits" else filename + ".fits"
 
@@ -1087,7 +1070,6 @@ def write_beam_fits(self, filename, channels="frequency", overwrite=True):
         header = fits.Header()
         header.append(("SIMPLE", "T"))
         header.append(("BITPIX", 16))
-        # header.append(('NAXIS', self.beam.kernel.ndim))
         header.append(("NAXIS", 3))
         header.append(("NAXIS1", self.beam.kernel.shape[0]))
         header.append(("NAXIS2", self.beam.kernel.shape[1]))
@@ -1133,14 +1115,11 @@ def write_beam_fits(self, filename, channels="frequency", overwrite=True):
         )
         hdu.writeto(filename, overwrite=True)
 
-        if channels == "frequency":
-            self._datacube.velocity_channels()
         return
 
     def write_hdf5(
         self,
         filename,
-        channels="frequency",
         overwrite=True,
         memmap=False,
         compact=False,
@@ -1155,10 +1134,6 @@ def write_hdf5(
             Name of the file to write. ``'.hdf5'`` will be appended if not already
             present.
 
-        channels : str, optional
-            Type of units (``"velocity"`` or ``"frequency"``) used along the spectral axis
-            in output file. (Default: ``"frequency"``)
-
         overwrite: bool, optional
             Whether to allow overwriting existing files. (Default: ``True``)
 
@@ -1175,15 +1150,6 @@ def write_hdf5(
         import h5py
 
         self._datacube.drop_pad()
-        if channels == "frequency":
-            self._datacube.freq_channels()
-        elif channels == "velocity":
-            pass
-        else:
-            raise ValueError(
-                "Martini.write_fits: Unknown 'channels' value "
-                "(use 'frequency' or 'velocity')."
-            )
 
         filename = filename if filename[-5:] == ".hdf5" else filename + ".hdf5"
 
@@ -1232,6 +1198,16 @@ def write_hdf5(
             f["Dec"].attrs["Unit"] = wcs_header["CUNIT2"]
             f["channel_mids"] = chgrid
             f["channel_mids"].attrs["Unit"] = wcs_header["CUNIT3"]
+            for dataset_name in (
+                "velocity_channel_mids",
+                "velocity_channel_edges",
+                "frequency_channel_mids",
+                "frequency_channel_edges",
+            ):
+                f[dataset_name] = getattr(self._datacube, dataset_name)
+                f[dataset_name].attrs["Unit"] = str(
+                    getattr(self._datacube, dataset_name).unit
+                )
         c.attrs["AxisOrder"] = "(RA,Dec,Channels)"
         c.attrs["FluxCubeUnit"] = str(self._datacube._array.unit)
         c.attrs["deltaRA_in_RAUnit"] = wcs_header["CDELT1"]
@@ -1249,6 +1225,7 @@ def write_hdf5(
         c.attrs["V0_in_VUnit"] = wcs_header["CRVAL3"]
         c.attrs["VUnit"] = wcs_header["CUNIT3"]
         c.attrs["VProjType"] = wcs_header["CTYPE3"]
+        c.attrs["SpecSys"] = wcs_header["SPECSYS"]
         if self.beam is not None:
             c.attrs["BeamPA"] = self.beam.bpa.to_value(U.deg)
             c.attrs["BeamMajor_in_deg"] = self.beam.bmaj.to_value(U.deg)
@@ -1288,8 +1265,6 @@ def write_hdf5(
             b.attrs["MartiniVersion"] = martini_version
             b.attrs["AstropyVersion"] = astropy_version
 
-        if channels == "frequency":
-            self._datacube.velocity_channels()
         if memmap:
             return f
         else:
@@ -1324,14 +1299,14 @@ class GlobalProfile(_BaseMartini):
 
     Parameters
     ----------
-    source : SPHSource
+    source : ~martini.sources.sph_source.SPHSource
         An instance of a class derived from
         :class:`~martini.sources.sph_source.SPHSource`.
         A description of the HI emitting object, including position, geometry
         and an interface to the simulation data (SPH particle masses,
         positions, etc.). See :doc:`sub-module documentation </sources/index>`.
 
-    spectral_model : _BaseSpectrum
+    spectral_model : ~martini.spectral_models._BaseSpectrum
         An instance of a class derived from
         :class:`~martini.spectral_models._BaseSpectrum`.
         A description of the HI line produced by a particle of given
@@ -1348,16 +1323,12 @@ class GlobalProfile(_BaseMartini):
         Step size along the spectral axis. Can be provided as a velocity or a
         frequency. (Default: ``4 * U.km / U.s``)
 
-    velocity_centre : ~astropy.units.Quantity, optional
+    spectral_centre : ~astropy.units.Quantity, optional
         :class:`~astropy.units.Quantity` with dimensions of velocity or frequency.
         Velocity (or frequency) of the centre along the spectral axis.
         (Default: ``0 * U.km / U.s``)
 
-    channels : str, optional
-        Type of units (``"velocity"`` or ``"frequency"``) used along the spectral
-        axis. (Default: ``"frequency"``)
-
-    quiet : bool
+    quiet : bool, optional
         If ``True``, suppress output to stdout. (Default: ``False``)
 
     Examples
@@ -1416,8 +1387,7 @@ def f(r):
             spectral_model=spectral_model,
             n_channels=32,
             channel_width=10 * U.km * U.s**-1,
-            velocity_centre=source.vsys,
-            channels="frequency",
+            spectral_centre=source.vsys,
         )
 
         # spectrum and channel edges and centres can be accessed as:
@@ -1441,8 +1411,7 @@ def __init__(
         spectral_model=None,
         n_channels=64,
         channel_width=4 * U.km * U.s**-1,
-        velocity_centre=0 * U.km * U.s**-1,
-        channels="frequency",
+        spectral_centre=0 * U.km * U.s**-1,
         quiet=False,
     ):
         super().__init__(
@@ -1450,7 +1419,7 @@ def __init__(
             datacube=_GlobalProfileDataCube(
                 n_channels=n_channels,
                 channel_width=channel_width,
-                velocity_centre=velocity_centre,
+                spectral_centre=spectral_centre,
             ),
             beam=None,
             noise=None,
@@ -1463,15 +1432,6 @@ def __init__(
             ),
             quiet=quiet,
         )
-        if channels == "velocity":
-            self._datacube.velocity_channels()
-        elif channels == "frequency":
-            self._datacube.freq_channels()
-        else:
-            raise ValueError(
-                'GlobalProfile: `channels` must be "velocity" or "frequency".'
-            )
-        self.channels = channels
         self.source.pixcoords[:2] = 0
 
         return
@@ -1552,11 +1512,15 @@ def channel_edges(self):
         out : ~astropy.units.Quantity
             :class:`~astropy.units.Quantity` with dimensions of frequency or velocity.
             Edges of the channels with units depending on
-            :class:`~martini.martini.GlobalProfile`'s ``channels`` argument.
+            :class:`~martini.martini.GlobalProfile`'s native channel spacing.
 
         See Also
         --------
         ~martini.martini.GlobalProfile.channel_mids
+        ~martini.martini.GlobalProfile.velocity_channel_mids
+        ~martini.martini.GlobalProfile.velocity_channel_edges
+        ~martini.martini.GlobalProfile.frequency_channel_mids
+        ~martini.martini.GlobalProfile.frequency_channel_edges
         """
         return self._datacube.channel_edges
 
@@ -1570,11 +1534,91 @@ def channel_mids(self):
         out : ~astropy.units.Quantity
             :class:`~astropy.units.Quantity` with dimensions of frequency or velocity.
             Edges of the channels with units depending on
-            :class:`~martini.martini.GlobalProfile`'s ``channels`` argument.
+            :class:`~martini.martini.GlobalProfile`'s native channel spacing.
 
         See Also
         --------
         ~martini.martini.GlobalProfile.channel_edges
+        ~martini.martini.GlobalProfile.velocity_channel_mids
+        ~martini.martini.GlobalProfile.velocity_channel_edges
+        ~martini.martini.GlobalProfile.frequency_channel_mids
+        ~martini.martini.GlobalProfile.frequency_channel_edges
+        """
+        return self._datacube.channel_mids
+
+    @property
+    def frequency_channel_edges(self):
+        """
+        The edges of the frequency channels for the spectrum.
+
+        Returns
+        -------
+        out : ~astropy.units.Quantity
+            :class:`~astropy.units.Quantity` with dimensions of frequency.
+            Edges of the channels with frequency units.
+
+        See Also
+        --------
+        ~martini.martini.GlobalProfile.velocity_channel_mids
+        ~martini.martini.GlobalProfile.velocity_channel_edges
+        ~martini.martini.GlobalProfile.frequency_channel_mids
+        """
+        return self._datacube.channel_edges
+
+    @property
+    def frequency_channel_mids(self):
+        """
+        The centres of the frequency channels for the spectrum.
+
+        Returns
+        -------
+        out : ~astropy.units.Quantity
+            :class:`~astropy.units.Quantity` with dimensions of frequency.
+            Edges of the channels with frequency units.
+
+        See Also
+        --------
+        ~martini.martini.GlobalProfile.velocity_channel_mids
+        ~martini.martini.GlobalProfile.velocity_channel_edges
+        ~martini.martini.GlobalProfile.frequency_channel_edges
+        """
+        return self._datacube.channel_mids
+
+    @property
+    def velocity_channel_edges(self):
+        """
+        The edges of the channels for the spectrum in velocity units.
+
+        Returns
+        -------
+        out : ~astropy.units.Quantity
+            :class:`~astropy.units.Quantity` with dimensions of velocity.
+            Edges of the channels with velocity units.
+
+        See Also
+        --------
+        ~martini.martini.GlobalProfile.velocity_channel_mids
+        ~martini.martini.GlobalProfile.frequency_channel_mids
+        ~martini.martini.GlobalProfile.frequency_channel_edges
+        """
+        return self._datacube.channel_edges
+
+    @property
+    def velocity_channel_mids(self):
+        """
+        The centres of the channels for the spectrum.
+
+        Returns
+        -------
+        out : ~astropy.units.Quantity
+            :class:`~astropy.units.Quantity` with dimensions of velocity.
+            Edges of the channels with velocity units.
+
+        See Also
+        --------
+        ~martini.martini.GlobalProfile.velocity_channel_edges
+        ~martini.martini.GlobalProfile.frequency_channel_mids
+        ~martini.martini.GlobalProfile.frequency_channel_edges
         """
         return self._datacube.channel_mids
 
@@ -1605,6 +1649,7 @@ def plot_spectrum(
         self,
         fig=1,
         title="",
+        channels="velocity",
         show_vsys=True,
         save=None,
     ):
@@ -1620,6 +1665,10 @@ def plot_spectrum(
         title : str, optional
             A title for the figure can be provided. (Default: ``""``)
 
+        channels : str, optional
+            The type of spectral axis for the plot, either ``"velocity"`` or
+            ``"frequency"``. (Default: ``"velocity"``)
+
         show_vsys : bool, optional
             If ``True``, draw a vertical line at the source systemic velocity.
             (Default: ``True``)
@@ -1635,15 +1684,24 @@ def plot_spectrum(
         """
         import matplotlib.pyplot as plt
 
+        if channels == "velocity":
+            channel_mids = self.velocity_channel_mids
+        elif channels == "frequency":
+            channel_mids = self.frequency_channel_mids
+        else:
+            raise ValueError(
+                "`plot_spectrum` argument `channels` must be 'velocity' or 'frequency'."
+            )
+
         fig = plt.figure(fig, figsize=(4, 3))
         fig.clf()
         fig.suptitle(title)
 
-        xunit = dict(velocity=U.km * U.s**-1, frequency=U.GHz)[self.channels]
+        xunit = dict(velocity=U.km * U.s**-1, frequency=U.GHz)[channels]
 
         ax = fig.add_subplot(1, 1, 1)
         ax.plot(
-            self.channel_mids.to_value(xunit),
+            channel_mids.to_value(xunit),
             self.spectrum.to_value(U.Jy),
             ls="solid",
             color="black",
@@ -1651,15 +1709,15 @@ def plot_spectrum(
         )
         if show_vsys:
             ax.axvline(
-                self.source.vsys.to_value(xunit, equivalencies=U.doppler_radio(HIfreq)),
+                self.source.vsys.to_value(xunit),
                 linestyle="dotted",
                 lw=1.5,
                 color="black",
             )
         ax.set_ylabel(r"Flux density $[\mathrm{Jy}]$")
-        if self.channels == "velocity":
+        if channels == "velocity":
             ax.set_xlabel(r"Velocity $[\mathrm{km}\,\mathrm{s}^{-1}]$")
-        elif self.channels == "frequency":
+        elif channels == "frequency":
             ax.set_xlabel(r"Frequency $[\mathrm{GHz}]$")
 
         if save is not None:
diff --git a/martini/martini.pyi b/martini/martini.pyi
index 8561ce4..8acc44f 100644
--- a/martini/martini.pyi
+++ b/martini/martini.pyi
@@ -10,6 +10,7 @@ from matplotlib.figure import Figure
 import astropy.units as U
 
 gc: bytes
+martini_version: str
 
 class _BaseMartini:
     source: SPHSource
@@ -82,16 +83,11 @@ class Martini:
     ) -> None: ...
     def convolve_beam(self) -> None: ...
     def add_noise(self) -> None: ...
-    def write_fits(
-        self, filename: str, channels: str = ..., overwrite: bool = ...
-    ) -> None: ...
-    def write_beam_fits(
-        self, filename: str, channels: str = ..., overwrite: bool = ...
-    ) -> None: ...
+    def write_fits(self, filename: str, overwrite: bool = ...) -> None: ...
+    def write_beam_fits(self, filename: str, overwrite: bool = ...) -> None: ...
     def write_hdf5(
         self,
         filename: str,
-        channels: str = ...,
         overwrite: bool = ...,
         memmap: bool = ...,
         compact: bool = ...,
@@ -104,8 +100,7 @@ class GlobalProfile(_BaseMartini):
         spectral_model: T.Optional[_BaseSpectrum] = ...,
         n_channels: int = ...,
         channel_width: U.Quantity[U.km / U.s] = ...,
-        velocity_centre: U.Quantity[U.km / U.s] = ...,
-        channels: str = ...,
+        spectral_centre: U.Quantity[U.km / U.s] = ...,
         quiet: bool = ...,
     ) -> None: ...
     def insert_source_in_spectrum(self) -> None: ...
@@ -116,11 +111,21 @@ class GlobalProfile(_BaseMartini):
     @property
     def channel_mids(self) -> T.Union[U.Quantity[U.Hz], U.Quantity[U.km / U.s]]: ...
     @property
-    def channel_width(self) -> U.Quantity[U.km / U.s]: ...
+    def velocity_channel_edges(self) -> U.Quantity[U.km / U.s]: ...
+    @property
+    def velocity_channel_mids(self) -> U.Quantity[U.km / U.s]: ...
+    @property
+    def frequency_channel_edges(self) -> U.Quantity[U.Hz]: ...
+    @property
+    def frequency_channel_mids(self) -> U.Quantity[U.Hz]: ...
+    @property
+    def channel_width(self) -> T.Union[U.Quantity[U.Hz], U.Quantity[U.km / U.s]]: ...
+    def reset(self) -> None: ...
     def plot_spectrum(
         self,
         fig: int = ...,
         title: str = ...,
+        channels: str = ...,
         show_vsys: bool = ...,
         save: T.Optional[str] = ...,
     ) -> Figure: ...
diff --git a/martini/sources/colibre_source.py b/martini/sources/colibre_source.py
index 8666cbb..5843c11 100644
--- a/martini/sources/colibre_source.py
+++ b/martini/sources/colibre_source.py
@@ -1,5 +1,6 @@
 import numpy as np
 from astropy import units as U
+from astropy.coordinates import ICRS
 from .swiftgalaxy_source import SWIFTGalaxySource
 
 
@@ -53,6 +54,16 @@ class ColibreSource(SWIFTGalaxySource):
         :class:`~astropy.units.Quantity`, with dimensions of angle.
         Declination for the source centroid. (Default: ``0 * U.deg``)
 
+    coordinate_frame : ~astropy.coordinates.builtin_frames.baseradec.BaseRADecFrame, \
+    optional
+        The coordinate frame assumed in converting particle coordinates to RA and Dec, and
+        for transforming coordinates and velocities to the data cube frame. The frame
+        needs to have a well-defined velocity as well as spatial origin. Recommended
+        frames are :class:`~astropy.coordinates.GCRS`, :class:`~astropy.coordinates.ICRS`,
+        :class:`~astropy.coordinates.HCRS`, :class:`~astropy.coordinates.LSRK`,
+        :class:`~astropy.coordinates.LSRD` or :class:`~astropy.coordinates.LSR`. The frame
+        should be passed initialized, e.g. ``ICRS()`` (not just ``ICRS``).
+        (Default: ``astropy.coordinates.ICRS()``)
     """
 
     def __init__(
@@ -63,6 +74,7 @@ def __init__(
         rotation={"rotmat": np.eye(3)},
         ra=0.0 * U.deg,
         dec=0.0 * U.deg,
+        coordinate_frame=ICRS(),
     ):
         # No special functionality wanted/needed:
         super().__init__(
@@ -72,5 +84,6 @@ def __init__(
             rotation=rotation,
             ra=ra,
             dec=dec,
+            coordinate_frame=coordinate_frame,
         )
         return
diff --git a/martini/sources/eagle_source.py b/martini/sources/eagle_source.py
index 19c7f08..38dbfa6 100644
--- a/martini/sources/eagle_source.py
+++ b/martini/sources/eagle_source.py
@@ -3,6 +3,7 @@
 from ..sph_kernels import _WendlandC2Kernel, find_fwhm
 from os.path import join, normpath, sep
 import astropy.units as U
+from astropy.coordinates import ICRS
 
 
 class EAGLESource(SPHSource):
@@ -39,7 +40,7 @@ class EAGLESource(SPHSource):
         Database username.
 
     db_key : str, optional
-        Database password, or omit for a prompt at runtime. (Default: None.)
+        Database password, or omit for a prompt at runtime. (Default: ``None``)
 
     subBoxSize : ~astropy.units.Quantity
         :class:`~astropy.units.Quantity`, with dimensions of length.
@@ -89,9 +90,20 @@ class EAGLESource(SPHSource):
         :class:`~astropy.units.Quantity`, with dimensions of angle.
         Declination for the source centroid. (Default: ``0 * U.deg``)
 
+    coordinate_frame : ~astropy.coordinates.builtin_frames.baseradec.BaseRADecFrame, \
+    optional
+        The coordinate frame assumed in converting particle coordinates to RA and Dec, and
+        for transforming coordinates and velocities to the data cube frame. The frame
+        needs to have a well-defined velocity as well as spatial origin. Recommended
+        frames are :class:`~astropy.coordinates.GCRS`, :class:`~astropy.coordinates.ICRS`,
+        :class:`~astropy.coordinates.HCRS`, :class:`~astropy.coordinates.LSRK`,
+        :class:`~astropy.coordinates.LSRD` or :class:`~astropy.coordinates.LSR`. The frame
+        should be passed initialized, e.g. ``ICRS()`` (not just ``ICRS``).
+        (Default: ``astropy.coordinates.ICRS()``)
+
     print_query : bool, optional
         If True, the SQL query submitted to the EAGLE database is printed.
-        (Default: False.)
+        (Default: ``False``)
     """
 
     def __init__(
@@ -108,6 +120,7 @@ def __init__(
         rotation={"rotmat": np.eye(3)},
         ra=0.0 * U.deg,
         dec=0.0 * U.deg,
+        coordinate_frame=ICRS(),
         print_query=False,
     ):
         if snapPath is None:
@@ -230,6 +243,7 @@ def fetch(att, ptype=0):
             ra=ra,
             dec=dec,
             h=h,
+            coordinate_frame=coordinate_frame,
             **particles,
         )
         return
diff --git a/martini/sources/magneticum_source.py b/martini/sources/magneticum_source.py
index f2ce0de..b89f89e 100644
--- a/martini/sources/magneticum_source.py
+++ b/martini/sources/magneticum_source.py
@@ -1,5 +1,6 @@
 import numpy as np
 import astropy.units as U
+from astropy.coordinates import ICRS
 from ..sph_kernels import _WendlandC6Kernel, find_fwhm
 from .sph_source import SPHSource
 
@@ -100,6 +101,16 @@ class MagneticumSource(SPHSource):
         :class:`~astropy.units.Quantity`, with dimensions of angle.
         Declination for the source centroid. (Default: ``0 * U.deg``)
 
+    coordinate_frame : ~astropy.coordinates.builtin_frames.baseradec.BaseRADecFrame, \
+    optional
+        The coordinate frame assumed in converting particle coordinates to RA and Dec, and
+        for transforming coordinates and velocities to the data cube frame. The frame
+        needs to have a well-defined velocity as well as spatial origin. Recommended
+        frames are :class:`~astropy.coordinates.GCRS`, :class:`~astropy.coordinates.ICRS`,
+        :class:`~astropy.coordinates.HCRS`, :class:`~astropy.coordinates.LSRK`,
+        :class:`~astropy.coordinates.LSRD` or :class:`~astropy.coordinates.LSR`. The frame
+        should be passed initialized, e.g. ``ICRS()`` (not just ``ICRS``).
+        (Default: ``astropy.coordinates.ICRS()``)
     """
 
     def __init__(
@@ -120,6 +131,7 @@ def __init__(
         rotation={"rotmat": np.eye(3)},
         ra=0 * U.deg,
         dec=0 * U.deg,
+        coordinate_frame=ICRS(),
     ):
         from g3t.stable.g3read import GadgetFile, read_particles_in_box
 
@@ -196,6 +208,7 @@ def __init__(
             ra=ra,
             dec=dec,
             h=h,
+            coordinate_frame=coordinate_frame,
             **particles,
         )
         return
diff --git a/martini/sources/simba_source.py b/martini/sources/simba_source.py
index 998036e..b5645f0 100644
--- a/martini/sources/simba_source.py
+++ b/martini/sources/simba_source.py
@@ -3,6 +3,7 @@
 from ..sph_kernels import _CubicSplineKernel, find_fwhm
 from os.path import join
 from astropy import units as U, constants as C
+from astropy.coordinates import ICRS
 
 
 class SimbaSource(SPHSource):
@@ -77,6 +78,16 @@ class SimbaSource(SPHSource):
         :class:`~astropy.units.Quantity`, with dimensions of angle.
         Declination for the source centroid. (Default: ``0 * U.deg``)
 
+    coordinate_frame : ~astropy.coordinates.builtin_frames.baseradec.BaseRADecFrame, \
+    optional
+        The coordinate frame assumed in converting particle coordinates to RA and Dec, and
+        for transforming coordinates and velocities to the data cube frame. The frame
+        needs to have a well-defined velocity as well as spatial origin. Recommended
+        frames are :class:`~astropy.coordinates.GCRS`, :class:`~astropy.coordinates.ICRS`,
+        :class:`~astropy.coordinates.HCRS`, :class:`~astropy.coordinates.LSRK`,
+        :class:`~astropy.coordinates.LSRD` or :class:`~astropy.coordinates.LSR`. The frame
+        should be passed initialized, e.g. ``ICRS()`` (not just ``ICRS``).
+        (Default: ``astropy.coordinates.ICRS()``)
     """
 
     def __init__(
@@ -92,6 +103,7 @@ def __init__(
         rotation={"rotmat": np.eye(3)},
         ra=0.0 * U.deg,
         dec=0.0 * U.deg,
+        coordinate_frame=ICRS(),
     ):
         if snapPath is None:
             raise ValueError("Provide snapPath argument to SimbaSource.")
@@ -175,6 +187,7 @@ def __init__(
             ra=ra,
             dec=dec,
             h=h,
+            coordinate_frame=coordinate_frame,
             **particles,
         )
         return
diff --git a/martini/sources/so_source.py b/martini/sources/so_source.py
index 1818c27..9c6ea36 100644
--- a/martini/sources/so_source.py
+++ b/martini/sources/so_source.py
@@ -1,5 +1,6 @@
 import numpy as np
 import astropy.units as U
+from astropy.coordinates import ICRS
 from .sph_source import SPHSource
 
 
@@ -54,6 +55,17 @@ class SOSource(SPHSource):
         :class:`~astropy.units.Quantity`, with dimensions of angle.
         Declination for the source centroid. (Default: ``0 * U.deg``)
 
+    coordinate_frame : ~astropy.coordinates.builtin_frames.baseradec.BaseRADecFrame, \
+    optional
+        The coordinate frame assumed in converting particle coordinates to RA and Dec, and
+        for transforming coordinates and velocities to the data cube frame. The frame
+        needs to have a well-defined velocity as well as spatial origin. Recommended
+        frames are :class:`~astropy.coordinates.GCRS`, :class:`~astropy.coordinates.ICRS`,
+        :class:`~astropy.coordinates.HCRS`, :class:`~astropy.coordinates.LSRK`,
+        :class:`~astropy.coordinates.LSRD` or :class:`~astropy.coordinates.LSR`. The frame
+        should be passed initialized, e.g. ``ICRS()`` (not just ``ICRS``).
+        (Default: ``astropy.coordinates.ICRS()``)
+
     SO_args : dict, optional
         Dictionary of keyword arguments to pass to a call to
         :class:`simobj.simobj.SimObj`.
@@ -74,6 +86,7 @@ def __init__(
         rotation={"rotmat": np.eye(3)},
         ra=0.0 * U.deg,
         dec=0.0 * U.deg,
+        coordinate_frame=ICRS(),
         SO_args=None,
         SO_instance=None,
         rescale_hsm_g=1,
@@ -88,19 +101,29 @@ def __init__(
             )
         elif SO_args is not None:
             with SimObj(**self._SO_args) as SO:
+                particles = dict(
+                    T_g=SO.T_g,
+                    mHI_g=SO.mHI_g,
+                    xyz_g=SO.xyz_g,
+                    vxyz_g=SO.vxyz_g,
+                    hsm_g=SO.hsm_g * self.rescale_hsm_g,
+                )
                 super().__init__(
                     distance=distance,
                     rotation=rotation,
                     ra=ra,
                     dec=dec,
                     h=SO.h,
-                    T_g=SO.T_g,
-                    mHI_g=SO.mHI_g,
-                    xyz_g=SO.xyz_g,
-                    vxyz_g=SO.vxyz_g,
-                    hsm_g=SO.hsm_g * self.rescale_hsm_g,
+                    **particles,
                 )
         elif SO_instance is not None:
+            particles = dict(
+                T_g=SO_instance.T_g,
+                mHI_g=SO_instance.mHI_g,
+                xyz_g=SO_instance.xyz_g,
+                vxyz_g=SO_instance.vxyz_g,
+                hsm_g=SO_instance.hsm_g,
+            )
             super().__init__(
                 distance=distance,
                 vpeculiar=vpeculiar,
@@ -108,11 +131,8 @@ def __init__(
                 ra=ra,
                 dec=dec,
                 h=SO_instance.h,
-                T_g=SO_instance.T_g,
-                mHI_g=SO_instance.mHI_g,
-                xyz_g=SO_instance.xyz_g,
-                vxyz_g=SO_instance.vxyz_g,
-                hsm_g=SO_instance.hsm_g,
+                coordinate_frame=coordinate_frame,
+                **particles,
             )
         else:
             raise ValueError(
diff --git a/martini/sources/sph_source.py b/martini/sources/sph_source.py
index 128a126..18ebc81 100644
--- a/martini/sources/sph_source.py
+++ b/martini/sources/sph_source.py
@@ -1,9 +1,16 @@
 import numpy as np
-from astropy.coordinates import CartesianRepresentation, CartesianDifferential, ICRS
+from astropy.coordinates import (
+    CartesianRepresentation,
+    CartesianDifferential,
+    SkyCoord,
+    SpectralCoord,
+    ICRS,
+)
 from astropy.coordinates.matrix_utilities import rotation_matrix
 import astropy.units as U
 from ._L_align import L_align
 from ._cartesian_translation import translate, translate_d
+from ..datacube import HIfreq
 
 # Extend CartesianRepresentation to allow coordinate translation
 setattr(CartesianRepresentation, "translate", translate)
@@ -12,6 +19,11 @@
 # translation
 setattr(CartesianDifferential, "translate", translate_d)
 
+_origin = CartesianRepresentation(
+    np.zeros((3, 1)) * U.kpc,
+    differentials={"s": CartesianDifferential(np.zeros((3, 1)) * U.km / U.s)},
+)
+
 
 class SPHSource(object):
     """
@@ -102,6 +114,17 @@ class SPHSource(object):
         particle. I.e. ``coordinate_axis=0`` if shape is (3, N), or ``1`` if (N, 3).
         Usually prefer to omit this as it can be determined automatically, but is
         ambiguous for sources with exactly 3 particles. (Default: ``None``)
+
+    coordinate_frame : ~astropy.coordinates.builtin_frames.baseradec.BaseRADecFrame, \
+    optional
+        The coordinate frame assumed in converting particle coordinates to RA and Dec, and
+        for transforming coordinates and velocities to the data cube frame. The frame
+        needs to have a well-defined velocity as well as spatial origin. Recommended
+        frames are :class:`~astropy.coordinates.GCRS`, :class:`~astropy.coordinates.ICRS`,
+        :class:`~astropy.coordinates.HCRS`, :class:`~astropy.coordinates.LSRK`,
+        :class:`~astropy.coordinates.LSRD` or :class:`~astropy.coordinates.LSR`. The frame
+        should be passed initialized, e.g. ``ICRS()`` (not just ``ICRS``).
+        (Default: ``astropy.coordinates.ICRS()``)
     """
 
     def __init__(
@@ -118,6 +141,7 @@ def __init__(
         vxyz_g=None,
         hsm_g=None,
         coordinate_axis=None,
+        coordinate_frame=ICRS(),
     ):
         if coordinate_axis is None:
             if (xyz_g.shape[0] == 3) and (xyz_g.shape[1] != 3):
@@ -147,6 +171,7 @@ def __init__(
         if coordinate_axis == 0:
             xyz_g = xyz_g.T
             vxyz_g = vxyz_g.T
+        self.coordinate_frame = coordinate_frame
         self.h = h
         self.T_g = T_g
         self.mHI_g = mHI_g
@@ -169,6 +194,7 @@ def __init__(
         self.current_rotation = np.eye(3)
         self.rotate(**rotation)
         self.skycoords = None
+        self.spectralcoords = None
         self.pixcoords = None
         return
 
@@ -187,8 +213,27 @@ def _init_skycoords(self, _reset=True):
         self.rotate(axis_angle=("z", self.ra))
         self.translate(distance_vector)
         self.boost(vsys_vector)
-        self.skycoords = ICRS(self.coordinates_g, copy=True)
-        # pixels indexed from 0 (not like in FITS!) for better use with numpy
+        self.skycoords = SkyCoord(
+            self.coordinates_g, frame=self.coordinate_frame, copy=True
+        )
+        origin_skycoord = SkyCoord(
+            x=0 * U.kpc,
+            y=0 * U.kpc,
+            z=0 * U.kpc,
+            v_x=0 * U.km / U.s,
+            v_y=0 * U.km / U.s,
+            v_z=0 * U.km / U.s,
+            representation_type="cartesian",
+            differential_type="cartesian",
+            frame=self.coordinate_frame,
+        )
+        self.spectralcoords = SpectralCoord(
+            self.skycoords.radial_velocity,
+            doppler_convention="radio",
+            doppler_rest=HIfreq,
+            target=self.skycoords,
+            observer=origin_skycoord,
+        )
         if _reset:
             self.boost(-vsys_vector)
             self.translate(-distance_vector)
@@ -197,12 +242,17 @@ def _init_skycoords(self, _reset=True):
         return
 
     def _init_pixcoords(self, datacube, origin=0):
+        skycoords_df_frame = self.skycoords.transform_to(datacube.coordinate_frame)
+        spectralcoords_df_specsys = (
+            self.spectralcoords.with_observer_stationary_relative_to(datacube.specsys)
+        )
+        # pixels indexed from 0 (not like in FITS!) for better use with numpy
         self.pixcoords = (
             np.vstack(
                 datacube.wcs.sub(3).wcs_world2pix(
-                    self.skycoords.ra.to(datacube.units[0]),
-                    self.skycoords.dec.to(datacube.units[1]),
-                    self.skycoords.radial_velocity.to(datacube.units[2]),
+                    skycoords_df_frame.ra.to(datacube.units[0]),
+                    skycoords_df_frame.dec.to(datacube.units[1]),
+                    spectralcoords_df_specsys.to(datacube.units[2]),
                     origin,
                 )
             )
@@ -234,6 +284,8 @@ def apply_mask(self, mask):
         self.coordinates_g = self.coordinates_g[mask]
         if self.skycoords is not None:
             self.skycoords = self.skycoords[mask]
+        if self.spectralcoords is not None:
+            self.spectralcoords = self.spectralcoords[mask]
         if self.pixcoords is not None:
             self.pixcoords = self.pixcoords[:, mask]
         if not self.hsm_g.isscalar:
@@ -394,7 +446,7 @@ def preview(
         lim : ~astropy.units.Quantity, optional
             :class:`~astropy.units.Quantity`, with dimensions of length.
             The coordinate axes extend from -lim to lim. If unspecified, the maximum
-            absolute coordinate of particles in the source is used. (Default: None)
+            absolute coordinate of particles in the source is used. (Default: ``None``)
 
         vlim : ~astropy.units.Quantity, optional
             :class:`~astropy.units.Quantity`, with dimensions of speed.
diff --git a/martini/sources/sph_source.pyi b/martini/sources/sph_source.pyi
index b5cce8d..8c027d8 100644
--- a/martini/sources/sph_source.pyi
+++ b/martini/sources/sph_source.pyi
@@ -4,6 +4,7 @@ from martini.datacube import DataCube
 from numpy import ndarray
 import typing as T
 from matplotlib.figure import Figure
+from astropy.coordinates.builtin_frames.baseradec import BaseRADecFrame
 
 class SPHSource:
     h: float
@@ -20,6 +21,7 @@ class SPHSource:
     vhubble: U.Quantity[U.km / U.s]
     vsys: U.Quantity[U.km / U.s]
     sky_coordinates: ICRS
+    coordinate_frame: BaseRADecFrame
 
     def __init__(
         self,
@@ -41,6 +43,7 @@ class SPHSource:
         vxyz_g: T.Optional[U.Quantity[U.km / U.s]] = ...,
         hsm_g: T.Optional[U.Quantity[U.kpc]] = ...,
         coordinate_axis: T.Optional[int] = ...,
+        coordinate_frame: BaseRADecFrame = ...,
     ) -> None: ...
     def _init_skycoords(self, _reset: bool = ...) -> None: ...
     def _init_pixcoords(self, datacube: DataCube, origin: int = ...) -> None: ...
diff --git a/martini/sources/swiftgalaxy_source.py b/martini/sources/swiftgalaxy_source.py
index 6b4f4bb..39342c8 100644
--- a/martini/sources/swiftgalaxy_source.py
+++ b/martini/sources/swiftgalaxy_source.py
@@ -1,6 +1,7 @@
 import numpy as np
 from .sph_source import SPHSource
 from astropy import units as U
+from astropy.coordinates import ICRS
 
 
 class SWIFTGalaxySource(SPHSource):
@@ -53,6 +54,16 @@ class SWIFTGalaxySource(SPHSource):
         :class:`~astropy.units.Quantity`, with dimensions of angle.
         Declination for the source centroid. (Default: ``0 * U.deg``)
 
+    coordinate_frame : ~astropy.coordinates.builtin_frames.baseradec.BaseRADecFrame, \
+    optional
+        The coordinate frame assumed in converting particle coordinates to RA and Dec, and
+        for transforming coordinates and velocities to the data cube frame. The frame
+        needs to have a well-defined velocity as well as spatial origin. Recommended
+        frames are :class:`~astropy.coordinates.GCRS`, :class:`~astropy.coordinates.ICRS`,
+        :class:`~astropy.coordinates.HCRS`, :class:`~astropy.coordinates.LSRK`,
+        :class:`~astropy.coordinates.LSRD` or :class:`~astropy.coordinates.LSR`. The frame
+        should be passed initialized, e.g. ``ICRS()`` (not just ``ICRS``).
+        (Default: ``astropy.coordinates.ICRS()``)
     """
 
     def __init__(
@@ -63,6 +74,7 @@ def __init__(
         rotation={"rotmat": np.eye(3)},
         ra=0.0 * U.deg,
         dec=0.0 * U.deg,
+        coordinate_frame=ICRS(),
     ):
         h = galaxy.metadata.cosmology.h
         particles = dict(
@@ -81,6 +93,7 @@ def __init__(
             ra=ra,
             dec=dec,
             h=h,
+            coordinate_frame=coordinate_frame,
             **particles,
         )
         return
diff --git a/martini/sources/tng_source.py b/martini/sources/tng_source.py
index 81b3b9b..21e34a8 100644
--- a/martini/sources/tng_source.py
+++ b/martini/sources/tng_source.py
@@ -1,8 +1,8 @@
 import io
 import os
 import numpy as np
-import astropy.units as U
-import astropy.constants as C
+from astropy import units as U, constants as C
+from astropy.coordinates import ICRS
 from .sph_source import SPHSource
 from ..sph_kernels import _CubicSplineKernel, find_fwhm
 
@@ -153,6 +153,16 @@ class TNGSource(SPHSource):
         :class:`~astropy.units.Quantity`, with dimensions of angle.
         Declination for the source centroid. (Default: ``0 * U.deg``)
 
+    coordinate_frame : ~astropy.coordinates.builtin_frames.baseradec.BaseRADecFrame, \
+    optional
+        The coordinate frame assumed in converting particle coordinates to RA and Dec, and
+        for transforming coordinates and velocities to the data cube frame. The frame
+        needs to have a well-defined velocity as well as spatial origin. Recommended
+        frames are :class:`~astropy.coordinates.GCRS`, :class:`~astropy.coordinates.ICRS`,
+        :class:`~astropy.coordinates.HCRS`, :class:`~astropy.coordinates.LSRK`,
+        :class:`~astropy.coordinates.LSRD` or :class:`~astropy.coordinates.LSR`. The frame
+        should be passed initialized, e.g. ``ICRS()`` (not just ``ICRS``).
+        (Default: ``astropy.coordinates.ICRS()``)
     """
 
     def __init__(
@@ -167,6 +177,7 @@ def __init__(
         rotation={"rotmat": np.eye(3)},
         ra=0.0 * U.deg,
         dec=0.0 * U.deg,
+        coordinate_frame=ICRS(),
     ):
         # optional dependencies for this source class
         import h5py
diff --git a/martini/spectral_models.py b/martini/spectral_models.py
index ca6713f..1371d76 100644
--- a/martini/spectral_models.py
+++ b/martini/spectral_models.py
@@ -41,8 +41,8 @@ class _BaseSpectrum(metaclass=ABCMeta):
 
     See Also
     --------
-    martini.spectral_models.GaussianSpectrum
-    martini.spectral_models.DiracDeltaSpectrum
+    ~martini.spectral_models.GaussianSpectrum
+    ~martini.spectral_models.DiracDeltaSpectrum
     """
 
     def __init__(self, ncpu=None, spec_dtype=np.float64):
@@ -71,16 +71,16 @@ def init_spectra(self, source, datacube):
 
         Parameters
         ----------
-        source : martini.sources.sph_source.SPHSource
+        source : ~martini.sources.sph_source.SPHSource
             Source object containing arrays of particle properties.
 
-        datacube : martini.datacube.DataCube
+        datacube : ~martini.datacube.DataCube
             :class:`~martini.datacube.DataCube` object defining the observational
             parameters, including spectral channels.
         """
 
-        self.channel_edges = datacube.channel_edges
-        channel_widths = np.diff(self.channel_edges).to(U.km * U.s**-1)
+        self.channel_edges = datacube.velocity_channel_edges
+        channel_widths = np.abs(np.diff(self.channel_edges).to(U.km * U.s**-1))
         self.vmids = source.skycoords.radial_velocity
         A = source.mHI_g * np.power(source.skycoords.distance.to(U.Mpc), -2)
         MHI_Jy = (
@@ -134,10 +134,10 @@ def evaluate_spectra(self, source, datacube, mask=np.s_[...]):
 
         Parameters
         ----------
-        source : martini.sources.sph_source.SPHSource
+        source : ~martini.sources.sph_source.SPHSource
             Source object containing arrays of particle properties.
 
-        datacube : martini.datacube.DataCube
+        datacube : ~martini.datacube.DataCube
             :class:`~martini.datacube.DataCube` object defining the observational
             parameters, including spectral channels.
 
@@ -147,17 +147,29 @@ def evaluate_spectra(self, source, datacube, mask=np.s_[...]):
         """
         vmids = self.vmids[mask]
         self.init_spectral_function_extra_data(source, datacube, mask=mask)
+        if all(np.diff(self.channel_edges) > 0):
+            lower_edges_slice = np.s_[:-1]
+            upper_edges_slice = np.s_[1:]
+        elif all(np.diff(self.channel_edges) < 0):
+            lower_edges_slice = np.s_[1:]
+            upper_edges_slice = np.s_[:-1]
+        else:
+            raise ValueError("Channel edges are not monotonic sequence.")
         return self.spectral_function(
             (
                 np.tile(
-                    self.channel_edges.to_value(self.channel_edges.unit)[:-1],
+                    self.channel_edges.to_value(self.channel_edges.unit)[
+                        lower_edges_slice
+                    ],
                     vmids.shape + (1,),
                 )
                 * self.channel_edges.unit
             ).astype(self.spec_dtype),
             (
                 np.tile(
-                    self.channel_edges.to_value(self.channel_edges.unit)[1:],
+                    self.channel_edges.to_value(self.channel_edges.unit)[
+                        upper_edges_slice
+                    ],
                     vmids.shape + (1,),
                 )
                 * self.channel_edges.unit
@@ -179,7 +191,7 @@ def half_width(self, source):
 
         Parameters
         ----------
-        source : martini.sources.sph_source.SPHSource
+        source : ~martini.sources.sph_source.SPHSource
             The source object will be provided to allow access to particle
             properties.
         """
@@ -355,7 +367,7 @@ def half_width(self, source):
 
         Parameters
         ----------
-        source : martini.sources.sph_source.SPHSource
+        source : ~martini.sources.sph_source.SPHSource
             Source object, making particle properties available.
 
         Returns
@@ -427,7 +439,7 @@ def half_width(self, source):
 
         Parameters
         ----------
-        source : martini.sources.sph_source.SPHSource
+        source : ~martini.sources.sph_source.SPHSource
             Source object, making particle properties available.
 
         Returns
diff --git a/martini/sph_kernels.py b/martini/sph_kernels.py
index 894f648..357cc9b 100644
--- a/martini/sph_kernels.py
+++ b/martini/sph_kernels.py
@@ -208,9 +208,10 @@ def _init_sm_lengths(self, source=None, datacube=None):
         datacube : martini.datacube.DataCube
             The datacube providing the pixel scale.
         """
-        self.sm_lengths = np.arctan(source.hsm_g / source.skycoords.distance).to(
-            U.pix, U.pixel_scale(datacube.px_size / U.pix)
-        )
+        self.sm_lengths = np.arctan(
+            source.hsm_g
+            / source.skycoords.transform_to(datacube.coordinate_frame).distance
+        ).to(U.pix, U.pixel_scale(datacube.px_size / U.pix))
 
         return
 


Test patch:
diff --git a/tests/conftest.py b/tests/conftest.py
index 9b72312..b43b821 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,8 +1,11 @@
 import pytest
+import os
 import numpy as np
 from astropy import units as U
+from astropy import wcs
+from astropy.coordinates import ICRS
 from martini.martini import Martini, GlobalProfile
-from martini.datacube import DataCube
+from martini.datacube import DataCube, HIfreq
 from martini.beams import GaussianBeam
 from martini.noise import GaussianNoise
 from martini.sources import SPHSource
@@ -20,6 +23,7 @@ def sps_sourcegen(
     ra=0 * U.deg,
     dec=0 * U.deg,
     vpeculiar=0 * U.km / U.s,
+    coordinate_frame=ICRS(),
 ):
     """
     Creates a single particle test source.
@@ -40,6 +44,7 @@ def sps_sourcegen(
         ra=ra,
         dec=dec,
         vpeculiar=vpeculiar,
+        coordinate_frame=coordinate_frame,
     )
 
 
@@ -155,14 +160,25 @@ def cross_sourcegen(
     )
 
 
-@pytest.fixture(scope="function")
-def m():
+@pytest.fixture(scope="function", params=[True, False])
+def m(request):
     source = sps_sourcegen()
+    spectral_centre = source.distance * source.h * 100 * U.km / U.s / U.Mpc
+    channel_width = 4 * U.km / U.s
+    if request.param:
+        channel_width = np.abs(
+            (spectral_centre + 0.5 * channel_width).to(
+                U.Hz, equivalencies=U.doppler_radio(HIfreq)
+            )
+            - (spectral_centre - 0.5 * channel_width).to(
+                U.Hz, equivalencies=U.doppler_radio(HIfreq)
+            )
+        )
     datacube = DataCube(
         n_px_x=16,
         n_px_y=16,
         n_channels=16,
-        velocity_centre=source.distance * source.h * 100 * U.km / U.s / U.Mpc,
+        spectral_centre=spectral_centre,
     )
     beam = GaussianBeam(bmaj=20.0 * U.arcsec, bmin=15.0 * U.arcsec)
     noise = GaussianNoise(rms=1.0e-9 * U.Jy * U.beam**-1, seed=0)
@@ -190,7 +206,7 @@ def m_init():
         n_px_x=16,
         n_px_y=16,
         n_channels=16,
-        velocity_centre=source.distance * source.h * 100 * U.km / U.s / U.Mpc,
+        spectral_centre=source.distance * source.h * 100 * U.km / U.s / U.Mpc,
     )
     beam = GaussianBeam(bmaj=20.0 * U.arcsec, bmin=15.0 * U.arcsec)
     noise = GaussianNoise(rms=1.0e-9 * U.Jy * U.beam**-1, seed=0)
@@ -215,7 +231,7 @@ def m_nn():
         n_px_x=16,
         n_px_y=16,
         n_channels=16,
-        velocity_centre=source.distance * source.h * 100 * U.km / U.s / U.Mpc,
+        spectral_centre=source.distance * source.h * 100 * U.km / U.s / U.Mpc,
     )
     beam = GaussianBeam(bmaj=20.0 * U.arcsec, bmin=15.0 * U.arcsec)
     noise = None
@@ -235,14 +251,33 @@ def m_nn():
     yield m
 
 
-@pytest.fixture(scope="function", params=[True, False])
+@pytest.fixture(
+    scope="function",
+    params=[(True, True), (True, False), (False, True), (False, False)],
+)
 def dc_random(request):
+    stokes_axis, freq_channels = request.param
+    spectral_centre = 3 * 70 * U.km / U.s
+    channel_width = 4 * U.km / U.s
+    if freq_channels:
+        channel_width = np.abs(
+            (spectral_centre + 0.5 * channel_width).to(
+                U.Hz, equivalencies=U.doppler_radio(HIfreq)
+            )
+            - (spectral_centre - 0.5 * channel_width).to(
+                U.Hz, equivalencies=U.doppler_radio(HIfreq)
+            )
+        )
+        spectral_centre = spectral_centre.to(
+            U.Hz, equivalencies=U.doppler_radio(HIfreq)
+        )
     dc = DataCube(
         n_px_x=16,
         n_px_y=16,
         n_channels=16,
-        velocity_centre=3 * 70 * U.km / U.s,
-        stokes_axis=request.param,
+        channel_width=channel_width,
+        spectral_centre=spectral_centre,
+        stokes_axis=stokes_axis,
     )
 
     dc._array[...] = (
@@ -252,14 +287,60 @@ def dc_random(request):
     yield dc
 
 
-@pytest.fixture(scope="function", params=[True, False])
+@pytest.fixture(
+    scope="function",
+    params=[
+        "IC_2574_NA_CUBE_THINGS.HEADER",
+        "comb_10tracks_J1337_28_HI_r10_t90_mg095_2.image.header",
+        "WALLABY_PILOT_CUTOUT_APPROX.HEADER",
+        # as previous but with axes reordered:
+        "comb_10tracks_J1337_28_HI_r10_t90_mg095_2.image.header.permuted",
+    ],
+)
+def dc_wcs(request):
+    with open(os.path.join("tests/data/", request.param), "r") as f:
+        hdr = f.read()
+    with pytest.warns(wcs.FITSFixedWarning):
+        hdr_wcs = wcs.WCS(hdr)
+    if hdr_wcs.wcs.specsys == "":
+        dc = DataCube.from_wcs(hdr_wcs, specsys="icrs")
+    elif hdr_wcs.wcs.specsys == "BARYCENT":
+        with pytest.warns(
+            UserWarning, match="Assuming ICRS barycentric reference system."
+        ):
+            dc = DataCube.from_wcs(hdr_wcs)
+    else:
+        dc = DataCube.from_wcs(hdr_wcs)
+    yield dc
+
+
+@pytest.fixture(
+    scope="function",
+    params=[(True, True), (True, False), (False, True), (False, False)],
+)
 def dc_zeros(request):
+    stokes_axis, freq_channels = request.param
+    spectral_centre = 3 * 70 * U.km / U.s
+    channel_width = 4 * U.km / U.s
+    if freq_channels:
+        channel_width = np.abs(
+            (spectral_centre + 0.5 * channel_width).to(
+                U.Hz, equivalencies=U.doppler_radio(HIfreq)
+            )
+            - (spectral_centre - 0.5 * channel_width).to(
+                U.Hz, equivalencies=U.doppler_radio(HIfreq)
+            )
+        )
+        spectral_centre = spectral_centre.to(
+            U.Hz, equivalencies=U.doppler_radio(HIfreq)
+        )
     dc = DataCube(
         n_px_x=16,
         n_px_y=16,
         n_channels=16,
-        velocity_centre=3 * 70 * U.km / U.s,
-        stokes_axis=request.param,
+        channel_width=channel_width,
+        spectral_centre=spectral_centre,
+        stokes_axis=stokes_axis,
     )
 
     yield dc
@@ -272,7 +353,7 @@ def adaptive_kernel_test_datacube():
         n_px_y=16,
         n_channels=16,
         px_size=((1 * U.kpc) / (3 * U.Mpc)).to(U.arcsec, U.dimensionless_angles()),
-        velocity_centre=3 * 70 * U.km / U.s,
+        spectral_centre=3 * 70 * U.km / U.s,
     )
 
     yield dc
@@ -348,7 +429,7 @@ def gp():
         source=source,
         spectral_model=spectral_model,
         n_channels=16,
-        velocity_centre=source.distance * source.h * 100 * U.km / U.s / U.Mpc,
+        spectral_centre=source.distance * source.h * 100 * U.km / U.s / U.Mpc,
     )
     m.insert_source_in_spectrum()
     yield m
diff --git a/tests/data/IC_2574_NA_CUBE_THINGS.HEADER b/tests/data/IC_2574_NA_CUBE_THINGS.HEADER
new file mode 100644
index 0000000..37c80db
--- /dev/null
+++ b/tests/data/IC_2574_NA_CUBE_THINGS.HEADER
@@ -0,0 +1,1 @@
+SIMPLE  =                    T /                                                BITPIX  =                  -32 /                                                NAXIS   =                    4 /                                                NAXIS1  =                   32 /                                                NAXIS2  =                   32 /                                                NAXIS3  =                   19 /                                                NAXIS4  =                    1 /                                                EXTEND  =                    T /Tables following main image                     BLOCKED =                    T /Tape may be blocked                             OBJECT  = 'UGC5666 '           /Source name                                     TELESCOP= 'VLA     '           /                                                INSTRUME= 'VLA     '           /                                                OBSERVER= 'AP217   '           /                                                DATE-OBS= '1991-03-03'         /Obs start date YYYY-MM-DD                       DATE-MAP= '2005-04-15'         /Last processing date YYYY-MM-DD                 BSCALE  =    1.00000000000E+00 /REAL = TAPE * BSCALE + BZERO                    BZERO   =    0.00000000000E+00 /                                                BUNIT   = 'JY/BEAM '           /Units of flux                                   EPOCH   =      2.000000000E+03 /Epoch of RA DEC                                 VELREF  =                    2 />256 RADIO, 1 LSR 2 HEL 3 OBS                   ALTRVAL =    1.41937248245E+09 /Altenate FREQ/VEL ref value                     ALTRPIX =     -2.000000000E+01 /Altenate FREQ/VEL ref pixel                     OBSRA   =    1.57121075175E+02 /Antenna pointing RA                             OBSDEC  =    6.84111442272E+01 /Antenna pointing DEC                            RESTFREQ=    1.42040575200E+09 /Rest frequency                                  DATAMAX =      2.854876034E-02 /Maximum pixel value                             DATAMIN =     -8.901759982E-03 /Minimum pixel value                             CTYPE1  = 'RA---SIN'           /                                                CRVAL1  =    1.57121075175E+02 /                                                CDELT1  =     -4.166666768E-04 /                                                CRPIX1  =      5.120000000E+02 /                                                CROTA1  =      0.000000000E+00 /                                                CTYPE2  = 'DEC--SIN'           /                                                CRVAL2  =    6.84111442272E+01 /                                                CDELT2  =      4.166666768E-04 /                                                CRPIX2  =      5.130000000E+02 /                                                CROTA2  =     -3.014686704E-01 /                                                CTYPE3  = 'FELO-HEL'           /                                                CRVAL3  =    3.80000000000E+04 /                                                CDELT3  =     -2.577235840E+03 /                                                CRPIX3  =      4.300000000E+01 /                                                CROTA3  =      0.000000000E+00 /                                                CTYPE4  = 'STOKES  '           /                                                CRVAL4  =    1.00000000000E+00 /                                                CDELT4  =      1.000000000E+00 /                                                CRPIX4  =      1.000000000E+00 /                                                CROTA4  =      0.000000000E+00 /                                                HISTORY AIPS HEADER2  PARANGLE =  1.798391724E+02 /AIPS Catalog Header Keyword  HISTORY AIPS HEADER2  ZENANGLE =  3.456053925E+01 /AIPS Catalog Header Keyword  HISTORY /--------------------------------------------------------------------   HISTORY /Begin "HISTORY" information found in FITS tape header by FITLD         HISTORY BLOCKED =                    T /Tape may be blocked                     HISTORY  / Where baseline = 256*ant1 + ant2 + (array#-1)/100                    HISTORY FILLM / Image created by user 1276 at 11-FEB-2003   18:48:05            HISTORY FILLM OUTNAME='NGC3077-C   '   OUTCLASS='LINE  '                        HISTORY FILLM OUTSEQ=    1   OUTDISK=  1                                        HISTORY FILLM INTAPE =  1, NFILES =    3                                        HISTORY FILLM BAND = 'L', QUAL =     1,  CALC = '    '                          HISTORY FILLM VLAMODE ='  '                                                     HISTORY FILLM / Control program ID =                                            HISTORY FILLM / VLA conf. = C                                                   HISTORY FILLM / correlator mode = 2AD                                           HISTORY FILLM / AP options = H                                                  HISTORY FILLM /TIMERANG =    0/22:59:60.00 to    1/08:00:00.00                  HISTORY FILLM  TIMERANG =   9.583333E-01  1.333333E+00  / days                  HISTORY FILLM BCHAN =    1 ECHAN =  127 / Spectral channels                     HISTORY FILLM CPARM(1) =  0.000 / Integration (sec)                             HISTORY FILLM CPARM(3) =   3. / Max. IF stat. to pass                           HISTORY FILLM CPARM(4) =   0. / .lt. 0 => no shadow flag                        HISTORY FILLM CPARM(6) =   0. / Subarray                                        HISTORY FILLM CPARM(7) =    -1.000 / FQ entry tolerance                         HISTORY FILLM CPARM(8) =   5.00 / CL table time increment                       HISTORY FILLM CPARM(9) =   0.00 / TY table time increment                       HISTORY FILLM  No opacity correction in CL table.                               HISTORY FILLM  No gain curve correction in CL table.                            HISTORY FILLM / Telescope = VLA      Program = AP217                            HISTORY FILLM / Weighted with nominal sensitivities                             HISTORY FILLM / Data compressed, weighting info reduced                         HISTORY FILLM RELEASE = '31DEC03'                                               HISTORY TACOP Release ='31DEC03 '  /********* Start 13-FEB-2003   02:26:25      HISTORY TACOP INNAME='NGC3077-C   '   INCLASS='CH 0  '                          HISTORY TACOP INSEQ=    1   INDISK=  1                                          HISTORY TACOP  INEXT='FG' INVERS=   1 OUTVERS=   0                              HISTORY TACOP  NCOUNT=    1 /Number of tables to copy                           HISTORY TACOP  / Copied      1 extension files                                  HISTORY TACOP Release ='31DEC03 '  /********* Start 13-FEB-2003   02:26:37      HISTORY TACOP INNAME='NGC3077-C   '   INCLASS='CH 0  '                          HISTORY TACOP INSEQ=    1   INDISK=  1                                          HISTORY TACOP  INEXT='CL' INVERS=   2 OUTVERS=   0                              HISTORY TACOP  NCOUNT=    1 /Number of tables to copy                           HISTORY TACOP  / Copied      1 extension files                                  HISTORY BPASS Release ='31DEC03 '  /********* Start 13-FEB-2003   02:28:00      HISTORY BPASS /Calibrators included:                                            HISTORY BPASS CALSOUR = '1328+307        ','                '                   HISTORY BPASS QUAL =    1 CALCODE = *                                           HISTORY BPASS BPVER =     1 /Version of BP table                                HISTORY BPASS FLAGVER =   1 /Flagging table used                                HISTORY BPASS UVRANGE(1)= 0.00000E+00 /Min. uv used                             HISTORY BPASS UVRANGE(2)= 0.00000E+00 /Max. uv used                             HISTORY BPASS IN2NAME='            '   IN2CLASS='      '                        HISTORY BPASS IN2SEQ=    0   IN2DISK=  0                                        HISTORY BPASS INVER =     2 /CC file version no.                                HISTORY BPASS NMAPS =   0 /Number of clean images used                          HISTORY BPASS /TIMERANG = beginning to end                                      HISTORY BPASS SOLINT = 0.0 /Scan average                                        HISTORY BPASS SUBARRAY =   0                                                    HISTORY BPASS REFANT =    2 /Reference antenna                                  HISTORY BPASS / Dividing data by channel 0 before average                       HISTORY BPASS / Dividing data by channel 0 before average                       HISTORY BPASS / Ch. 0 Avgd: Start, Stop, Inc    17  111   1  IF=  1             HISTORY BPASS / External channel 0 filename:                                    HISTORY BPASS IN3NAME='NGC3077-C   '   IN3CLASS='CH 0  '                        HISTORY BPASS IN3SEQ=    1   IN3DISK=  1                                        HISTORY BPASS ANTWT=  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0 /Ant. wt      HISTORY BPASS        1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0                HISTORY BPASS        1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0                HISTORY BPASS        1.0  1.0  1.0                                              HISTORY TACOP Release ='31DEC03 '  /********* Start 13-FEB-2003   02:55:22      HISTORY TACOP INNAME='NGC3077-C   '   INCLASS='CH 0  '                          HISTORY TACOP INSEQ=    1   INDISK=  1                                          HISTORY TACOP  INEXT='FG' INVERS=   1 OUTVERS=   0                              HISTORY TACOP  NCOUNT=    1 /Number of tables to copy                           HISTORY TACOP  / Copied      1 extension files                                  HISTORY TACOP Release ='31DEC03 '  /********* Start 13-FEB-2003   02:55:52      HISTORY TACOP INNAME='NGC3077-C   '   INCLASS='CH 0  '                          HISTORY TACOP INSEQ=    1   INDISK=  1                                          HISTORY TACOP  INEXT='CL' INVERS=   3 OUTVERS=   0                              HISTORY TACOP  NCOUNT=    1 /Number of tables to copy                           HISTORY TACOP  / Copied      1 extension files                                  HISTORY BPASS Release ='31DEC03 '  /********* Start 13-FEB-2003   02:57:23      HISTORY BPASS /Calibrators included:                                            HISTORY BPASS CALSOUR = '1328+307        ','                '                   HISTORY BPASS QUAL =    2 CALCODE = *                                           HISTORY BPASS BPVER =     2 /Version of BP table                                HISTORY BPASS FLAGVER =   1 /Flagging table used                                HISTORY BPASS UVRANGE(1)= 0.00000E+00 /Min. uv used                             HISTORY BPASS UVRANGE(2)= 0.00000E+00 /Max. uv used                             HISTORY BPASS IN2NAME='            '   IN2CLASS='      '                        HISTORY BPASS IN2SEQ=    0   IN2DISK=  0                                        HISTORY BPASS INVER =     1 /CC file version no.                                HISTORY BPASS NMAPS =   0 /Number of clean images used                          HISTORY BPASS /TIMERANG = beginning to end                                      HISTORY BPASS SOLINT = 0.0 /Scan average                                        HISTORY BPASS SUBARRAY =   0                                                    HISTORY BPASS REFANT =    2 /Reference antenna                                  HISTORY BPASS / Dividing data by channel 0 before average                       HISTORY BPASS / Dividing data by channel 0 before average                       HISTORY BPASS / Ch. 0 Avgd: Start, Stop, Inc    17  111   1  IF=  1             HISTORY BPASS / External channel 0 filename:                                    HISTORY BPASS IN3NAME='NGC3077-C   '   IN3CLASS='CH 0  '                        HISTORY BPASS IN3SEQ=    1   IN3DISK=  1                                        HISTORY BPASS ANTWT=  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0 /Ant. wt      HISTORY BPASS        1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0                HISTORY BPASS        1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0                HISTORY BPASS        1.0  1.0  1.0                                              HISTORY SPLIT RELEASE ='31DEC03 '  /********* Start 13-FEB-2003   14:22:57      HISTORY SPLIT INNAME='NGC3077-C   '   INCLASS='LINE  '                          HISTORY SPLIT INSEQ=    1   INDISK=  1                                          HISTORY SPLIT OUTNAME='UGC5666     '   OUTCLASS='SPLIT '                        HISTORY SPLIT OUTSEQ=    1   OUTDISK=  1                                        HISTORY SPLIT /TIMERANG = beginning to end                                      HISTORY SPLIT STOKES = '    ' / Stokes type                                     HISTORY SPLIT BIF =   1, EIF =   1/ IF range                                    HISTORY SPLIT BCHAN =   1, ECHAN = 127/ Chan range                              HISTORY SPLIT SUBARRAY =   0                                                    HISTORY SPLIT FLAGVER=   1  / Edited using FG table version #                   HISTORY SPLIT / Output data in compressed format                                HISTORY SPLIT GAINUSE =  3 / CL table                                           HISTORY SPLIT DOBAND =  1  / TYpe of BP correction done                         HISTORY SPLIT BPVER=  2  / BP correction used BP table #                        HISTORY SPLIT / Weights calibrated                                              HISTORY SPLIT /            Previously flagged   flagged by gain         kept    HISTORY SPLIT / Partially              50                   0             50    HISTORY SPLIT / Fully                   0                   0          40025    HISTORY DBCON RELEASE ='31DEC03 '  /********* Start 13-FEB-2003   14:33:43      HISTORY DBCON  /******Second input UV file history                              HISTORY FILLM / Image created by user 1276 at 11-FEB-2003   18:58:22            HISTORY FILLM OUTNAME='NGC3077-D   '   OUTCLASS='LINE  '                        HISTORY FILLM OUTSEQ=    1   OUTDISK=  1                                        HISTORY FILLM INTAPE =  1, NFILES =    6                                        HISTORY FILLM BAND = 'L', QUAL =     1,  CALC = '    '                          HISTORY FILLM VLAMODE ='  '                                                     HISTORY FILLM / Control program ID =                                            HISTORY FILLM / VLA conf. = D                                                   HISTORY FILLM / correlator mode = 2AD                                           HISTORY FILLM / AP options = H                                                  HISTORY FILLM /TIMERANG =    0/13:00:00.00 to    0/19:59:60.00                  HISTORY FILLM  TIMERANG =   5.416667E-01  8.333333E-01  / days                  HISTORY FILLM BCHAN =    1 ECHAN =  127 / Spectral channels                     HISTORY FILLM CPARM(1) =  0.000 / Integration (sec)                             HISTORY FILLM CPARM(3) =   3. / Max. IF stat. to pass                           HISTORY FILLM CPARM(4) =   0. / .lt. 0 => no shadow flag                        HISTORY FILLM CPARM(6) =   0. / Subarray                                        HISTORY FILLM CPARM(7) =    -1.000 / FQ entry tolerance                         HISTORY FILLM CPARM(8) =   5.00 / CL table time increment                       HISTORY FILLM CPARM(9) =   0.00 / TY table time increment                       HISTORY FILLM  No opacity correction in CL table.                               HISTORY FILLM  No gain curve correction in CL table.                            HISTORY FILLM / Telescope = VLA      Program = AP217                            HISTORY FILLM / Weighted with nominal sensitivities                             HISTORY FILLM / Data compressed, weighting info reduced                         HISTORY FILLM RELEASE = '31DEC03'                                               HISTORY TACOP Release ='31DEC03 '  /********* Start 13-FEB-2003   03:43:47      HISTORY TACOP INNAME='NGC3077-D   '   INCLASS='CH 0  '                          HISTORY TACOP INSEQ=    1   INDISK=  1                                          HISTORY TACOP  INEXT='FG' INVERS=   1 OUTVERS=   0                              HISTORY TACOP  NCOUNT=    1 /Number of tables to copy                           HISTORY TACOP  / Copied      1 extension files                                  HISTORY TACOP Release ='31DEC03 '  /********* Start 13-FEB-2003   03:43:58      HISTORY TACOP INNAME='NGC3077-D   '   INCLASS='CH 0  '                          HISTORY TACOP INSEQ=    1   INDISK=  1                                          HISTORY TACOP  INEXT='CL' INVERS=   2 OUTVERS=   0                              HISTORY TACOP  NCOUNT=    1 /Number of tables to copy                           HISTORY TACOP  / Copied      1 extension files                                  HISTORY BPASS Release ='31DEC03 '  /********* Start 13-FEB-2003   03:47:40      HISTORY BPASS /Calibrators included:                                            HISTORY BPASS CALSOUR = '0917+624        ','                '                   HISTORY BPASS QUAL =    1 CALCODE = *                                           HISTORY BPASS BPVER =     1 /Version of BP table                                HISTORY BPASS FLAGVER =   1 /Flagging table used                                HISTORY BPASS UVRANGE(1)= 0.00000E+00 /Min. uv used                             HISTORY BPASS UVRANGE(2)= 0.00000E+00 /Max. uv used                             HISTORY BPASS IN2NAME='            '   IN2CLASS='      '                        HISTORY BPASS IN2SEQ=    0   IN2DISK=  0                                        HISTORY BPASS INVER =     1 /CC file version no.                                HISTORY BPASS NMAPS =   0 /Number of clean images used                          HISTORY BPASS /TIMERANG = beginning to end                                      HISTORY BPASS SOLINT = 0.0 /Scan average                                        HISTORY BPASS SUBARRAY =   0                                                    HISTORY BPASS REFANT =    5 /Reference antenna                                  HISTORY BPASS / Dividing data by channel 0 before average                       HISTORY BPASS / Dividing data by channel 0 before average                       HISTORY BPASS / Ch. 0 Avgd: Start, Stop, Inc    17  111   1  IF=  1             HISTORY BPASS / External channel 0 filename:                                    HISTORY BPASS IN3NAME='NGC3077-D   '   IN3CLASS='CH 0  '                        HISTORY BPASS IN3SEQ=    1   IN3DISK=  1                                        HISTORY BPASS ANTWT=  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0 /Ant. wt      HISTORY BPASS        1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0                HISTORY BPASS        1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0                HISTORY BPASS        1.0  1.0  1.0                                              HISTORY TACOP Release ='31DEC03 '  /********* Start 13-FEB-2003   04:10:11      HISTORY TACOP INNAME='NGC3077-D   '   INCLASS='CH 0  '                          HISTORY TACOP INSEQ=    1   INDISK=  1                                          HISTORY TACOP  INEXT='CL' INVERS=   3 OUTVERS=   0                              HISTORY TACOP  NCOUNT=    1 /Number of tables to copy                           HISTORY TACOP  / Copied      1 extension files                                  HISTORY BPASS Release ='31DEC03 '  /********* Start 13-FEB-2003   04:15:56      HISTORY BPASS /Calibrators included:                                            HISTORY BPASS CALSOUR = '1031+567        ','                '                   HISTORY BPASS QUAL =    2 CALCODE = *                                           HISTORY BPASS BPVER =     2 /Version of BP table                                HISTORY BPASS FLAGVER =   1 /Flagging table used                                HISTORY BPASS UVRANGE(1)= 0.00000E+00 /Min. uv used                             HISTORY BPASS UVRANGE(2)= 0.00000E+00 /Max. uv used                             HISTORY BPASS IN2NAME='            '   IN2CLASS='      '                        HISTORY BPASS IN2SEQ=    0   IN2DISK=  0                                        HISTORY BPASS INVER =     2 /CC file version no.                                HISTORY BPASS NMAPS =   0 /Number of clean images used                          HISTORY BPASS /TIMERANG = beginning to end                                      HISTORY BPASS SOLINT = 0.0 /Scan average                                        HISTORY BPASS SUBARRAY =   0                                                    HISTORY BPASS REFANT =    5 /Reference antenna                                  HISTORY BPASS / Dividing data by channel 0 before average                       HISTORY BPASS / Dividing data by channel 0 before average                       HISTORY BPASS / Ch. 0 Avgd: Start, Stop, Inc    17  111   1  IF=  1             HISTORY BPASS / External channel 0 filename:                                    HISTORY BPASS IN3NAME='NGC3077-D   '   IN3CLASS='CH 0  '                        HISTORY BPASS IN3SEQ=    1   IN3DISK=  1                                        HISTORY BPASS ANTWT=  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0 /Ant. wt      HISTORY BPASS        1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0                HISTORY BPASS        1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0                HISTORY BPASS        1.0  1.0  1.0                                              HISTORY SPLIT RELEASE ='31DEC03 '  /********* Start 13-FEB-2003   14:24:37      HISTORY SPLIT INNAME='NGC3077-D   '   INCLASS='LINE  '                          HISTORY SPLIT INSEQ=    1   INDISK=  1                                          HISTORY SPLIT OUTNAME='UGC5666     '   OUTCLASS='SPLIT '                        HISTORY SPLIT OUTSEQ=    2   OUTDISK=  1                                        HISTORY SPLIT /TIMERANG = beginning to end                                      HISTORY SPLIT STOKES = '    ' / Stokes type                                     HISTORY SPLIT BIF =   1, EIF =   1/ IF range                                    HISTORY SPLIT BCHAN =   1, ECHAN = 127/ Chan range                              HISTORY SPLIT SUBARRAY =   0                                                    HISTORY SPLIT FLAGVER=   1  / Edited using FG table version #                   HISTORY SPLIT / Output data in compressed format                                HISTORY SPLIT GAINUSE =  3 / CL table                                           HISTORY SPLIT / Weights calibrated                                              HISTORY SPLIT /            Previously flagged   flagged by gain         kept    HISTORY SPLIT / Partially              72                   0             72    HISTORY SPLIT / Fully                   0                   0          31867    HISTORY DBCON INNAME='UGC5666     '   INCLASS='SPLIT '                          HISTORY DBCON INSEQ=    1   INDISK=  1                                          HISTORY DBCON IN2NAME='UGC5666     '   IN2CLASS='SPLIT '                        HISTORY DBCON IN2SEQ=    2   IN2DISK=  1                                        HISTORY DBCON  /Second file has   1 arrays                                      HISTORY DBCON OUTNAME='DUMMY       '   OUTCLASS='DBCON '                        HISTORY DBCON OUTSEQ=    1   OUTDISK=  1                                        HISTORY DBCON  REWEIGHT =  1.00000E+00 1.00000E+00                              HISTORY DBCON RELEASE ='31DEC03 '  /********* Start 13-FEB-2003   14:34:52      HISTORY DBCON  /******Second input UV file history                              HISTORY FILLM / Image created by user 1276 at 11-FEB-2003   19:13:59            HISTORY FILLM OUTNAME='IC2574-B1   '   OUTCLASS='LINE  '                        HISTORY FILLM OUTSEQ=    1   OUTDISK=  1                                        HISTORY FILLM INTAPE =  1, NFILES =    6                                        HISTORY FILLM BAND = 'L', QUAL =     1,  CALC = '    '                          HISTORY FILLM VLAMODE ='  '                                                     HISTORY FILLM / Control program ID =                                            HISTORY FILLM / VLA conf. = B                                                   HISTORY FILLM / correlator mode = 2AD                                           HISTORY FILLM / AP options = H                                                  HISTORY FILLM /TIMERANG =    0/04:59:60.00 to    0/13:59:60.00                  HISTORY FILLM  TIMERANG =   2.083333E-01  5.833333E-01  / days                  HISTORY FILLM BCHAN =    1 ECHAN =  127 / Spectral channels                     HISTORY FILLM CPARM(1) =  0.000 / Integration (sec)                             HISTORY FILLM CPARM(3) =   3. / Max. IF stat. to pass                           HISTORY FILLM CPARM(4) =   0. / .lt. 0 => no shadow flag                        HISTORY FILLM CPARM(6) =   0. / Subarray                                        HISTORY FILLM CPARM(7) =    -1.000 / FQ entry tolerance                         HISTORY FILLM CPARM(8) =   5.00 / CL table time increment                       HISTORY FILLM CPARM(9) =   0.00 / TY table time increment                       HISTORY FILLM  No opacity correction in CL table.                               HISTORY FILLM  No gain curve correction in CL table.                            HISTORY FILLM / Telescope = VLA      Program = AP217                            HISTORY FILLM / Weighted with nominal sensitivities                             HISTORY FILLM / Data compressed, weighting info reduced                         HISTORY FILLM RELEASE = '31DEC03'                                               HISTORY TACOP Release ='31DEC03 '  /********* Start 12-FEB-2003   15:30:58      HISTORY TACOP INNAME='IC2574-B1   '   INCLASS='CH 0  '                          HISTORY TACOP INSEQ=    1   INDISK=  1                                          HISTORY TACOP  INEXT='FG' INVERS=   1 OUTVERS=   0                              HISTORY TACOP  NCOUNT=    1 /Number of tables to copy                           HISTORY TACOP  / Copied      1 extension files                                  HISTORY TACOP Release ='31DEC03 '  /********* Start 12-FEB-2003   15:31:06      HISTORY TACOP INNAME='IC2574-B1   '   INCLASS='CH 0  '                          HISTORY TACOP INSEQ=    1   INDISK=  1                                          HISTORY TACOP  INEXT='CL' INVERS=   2 OUTVERS=   0                              HISTORY TACOP  NCOUNT=    1 /Number of tables to copy                           HISTORY TACOP  / Copied      1 extension files                                  HISTORY BPASS Release ='31DEC03 '  /********* Start 12-FEB-2003   15:32:10      HISTORY BPASS /Calibrators included:                                            HISTORY BPASS CALSOUR = '1328+307        ','                '                   HISTORY BPASS QUAL =   -1 CALCODE = *                                           HISTORY BPASS BPVER =     1 /Version of BP table                                HISTORY BPASS FLAGVER =   1 /Flagging table used                                HISTORY BPASS UVRANGE(1)= 0.00000E+00 /Min. uv used                             HISTORY BPASS UVRANGE(2)= 0.00000E+00 /Max. uv used                             HISTORY BPASS IN2NAME='            '   IN2CLASS='      '                        HISTORY BPASS IN2SEQ=    0   IN2DISK=  0                                        HISTORY BPASS INVER =     2 /CC file version no.                                HISTORY BPASS NMAPS =   0 /Number of clean images used                          HISTORY BPASS /TIMERANG = beginning to end                                      HISTORY BPASS SOLINT = 0.0 /Scan average                                        HISTORY BPASS SUBARRAY =   0                                                    HISTORY BPASS REFANT =   21 /Reference antenna                                  HISTORY BPASS / Dividing data by channel 0 before average                       HISTORY BPASS / Dividing data by channel 0 before average                       HISTORY BPASS / Ch. 0 Avgd: Start, Stop, Inc    17  111   1  IF=  1             HISTORY BPASS / External channel 0 filename:                                    HISTORY BPASS IN3NAME='IC2574-B1   '   IN3CLASS='CH 0  '                        HISTORY BPASS IN3SEQ=    1   IN3DISK=  1                                        HISTORY BPASS ANTWT=  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0 /Ant. wt      HISTORY BPASS        1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0                HISTORY BPASS        1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0                HISTORY BPASS        1.0  1.0  1.0                                              HISTORY UVFLG RELEASE ='31DEC03 '  /********* Start 13-FEB-2003   01:07:37      HISTORY SPLIT RELEASE ='31DEC03 '  /********* Start 13-FEB-2003   14:26:33      HISTORY SPLIT INNAME='IC2574-B1   '   INCLASS='LINE  '                          HISTORY SPLIT INSEQ=    1   INDISK=  1                                          HISTORY SPLIT OUTNAME='UGC5666     '   OUTCLASS='SPLIT '                        HISTORY SPLIT OUTSEQ=    3   OUTDISK=  1                                        HISTORY SPLIT /TIMERANG = beginning to end                                      HISTORY SPLIT STOKES = '    ' / Stokes type                                     HISTORY SPLIT BIF =   1, EIF =   1/ IF range                                    HISTORY SPLIT BCHAN =   1, ECHAN = 127/ Chan range                              HISTORY SPLIT SUBARRAY =   0                                                    HISTORY SPLIT FLAGVER=   1  / Edited using FG table version #                   HISTORY SPLIT / Output data in compressed format                                HISTORY SPLIT GAINUSE =  2 / CL table                                           HISTORY SPLIT DOBAND =  1  / TYpe of BP correction done                         HISTORY SPLIT BPVER=  1  / BP correction used BP table #                        HISTORY SPLIT / Weights calibrated                                              HISTORY SPLIT /            Previously flagged   flagged by gain         kept    HISTORY SPLIT / Partially            4397                   0           4397    HISTORY SPLIT / Fully                   0                   0          99268    HISTORY DBCON INNAME='DUMMY       '   INCLASS='DBCON '                          HISTORY DBCON INSEQ=    1   INDISK=  1                                          HISTORY DBCON IN2NAME='UGC5666     '   IN2CLASS='SPLIT '                        HISTORY DBCON IN2SEQ=    3   IN2DISK=  1                                        HISTORY DBCON  /Second file has   1 arrays                                      HISTORY DBCON OUTNAME='DUMMY       '   OUTCLASS='DBCON '                        HISTORY DBCON OUTSEQ=    2   OUTDISK=  1                                        HISTORY DBCON  REWEIGHT =  1.00000E+00 1.00000E+00                              HISTORY DBCON RELEASE ='31DEC03 '  /********* Start 13-FEB-2003   14:35:58      HISTORY DBCON  /******Second input UV file history                              HISTORY FILLM / Image created by user 1276 at 11-FEB-2003   20:20:50            HISTORY FILLM OUTNAME='IC2574-B2   '   OUTCLASS='LINE  '                        HISTORY FILLM OUTSEQ=    1   OUTDISK=  1                                        HISTORY FILLM INTAPE =  1, NFILES =    9                                        HISTORY FILLM BAND = 'L', QUAL =     1,  CALC = '    '                          HISTORY FILLM VLAMODE ='  '                                                     HISTORY FILLM / Control program ID =                                            HISTORY FILLM / VLA conf. = B                                                   HISTORY FILLM / correlator mode = 2AD                                           HISTORY FILLM / AP options = H                                                  HISTORY FILLM /TIMERANG =    0/04:59:60.00 to    0/13:59:60.00                  HISTORY FILLM  TIMERANG =   2.083333E-01  5.833333E-01  / days                  HISTORY FILLM BCHAN =    1 ECHAN =  127 / Spectral channels                     HISTORY FILLM CPARM(1) =  0.000 / Integration (sec)                             HISTORY FILLM CPARM(3) =   3. / Max. IF stat. to pass                           HISTORY FILLM CPARM(4) =   0. / .lt. 0 => no shadow flag                        HISTORY FILLM CPARM(6) =   0. / Subarray                                        HISTORY FILLM CPARM(7) =    -1.000 / FQ entry tolerance                         HISTORY FILLM CPARM(8) =   5.00 / CL table time increment                       HISTORY FILLM CPARM(9) =   0.00 / TY table time increment                       HISTORY FILLM  No opacity correction in CL table.                               HISTORY FILLM  No gain curve correction in CL table.                            HISTORY FILLM / Telescope = VLA      Program = AP217                            HISTORY FILLM / Weighted with nominal sensitivities                             HISTORY FILLM / Data compressed, weighting info reduced                         HISTORY FILLM RELEASE = '31DEC03'                                               HISTORY TACOP Release ='31DEC03 '  /********* Start 12-FEB-2003   23:50:35      HISTORY TACOP INNAME='IC2574-B2   '   INCLASS='CH 0  '                          HISTORY TACOP INSEQ=    1   INDISK=  1                                          HISTORY TACOP  INEXT='FG' INVERS=   1 OUTVERS=   0                              HISTORY TACOP  NCOUNT=    1 /Number of tables to copy                           HISTORY TACOP  / Copied      1 extension files                                  HISTORY TACOP Release ='31DEC03 '  /********* Start 12-FEB-2003   23:50:58      HISTORY TACOP INNAME='IC2574-B2   '   INCLASS='CH 0  '                          HISTORY TACOP INSEQ=    1   INDISK=  1                                          HISTORY TACOP  INEXT='CL' INVERS=   2 OUTVERS=   0                              HISTORY TACOP  NCOUNT=    1 /Number of tables to copy                           HISTORY TACOP  / Copied      1 extension files                                  HISTORY BPASS Release ='31DEC03 '  /********* Start 12-FEB-2003   23:51:57      HISTORY BPASS /Calibrators included:                                            HISTORY BPASS CALSOUR = '1328+307        ','                '                   HISTORY BPASS QUAL =   -1 CALCODE = *                                           HISTORY BPASS BPVER =     1 /Version of BP table                                HISTORY BPASS FLAGVER =   1 /Flagging table used                                HISTORY BPASS UVRANGE(1)= 0.00000E+00 /Min. uv used                             HISTORY BPASS UVRANGE(2)= 0.00000E+00 /Max. uv used                             HISTORY BPASS IN2NAME='            '   IN2CLASS='      '                        HISTORY BPASS IN2SEQ=    0   IN2DISK=  0                                        HISTORY BPASS INVER =     2 /CC file version no.                                HISTORY BPASS NMAPS =   0 /Number of clean images used                          HISTORY BPASS /TIMERANG = beginning to end                                      HISTORY BPASS SOLINT = 0.0 /Scan average                                        HISTORY BPASS SUBARRAY =   0                                                    HISTORY BPASS REFANT =   21 /Reference antenna                                  HISTORY BPASS / Dividing data by channel 0 before average                       HISTORY BPASS / Dividing data by channel 0 before average                       HISTORY BPASS / Ch. 0 Avgd: Start, Stop, Inc    17  111   1  IF=  1             HISTORY BPASS / External channel 0 filename:                                    HISTORY BPASS IN3NAME='IC2574-B2   '   IN3CLASS='CH 0  '                        HISTORY BPASS IN3SEQ=    1   IN3DISK=  1                                        HISTORY BPASS ANTWT=  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0 /Ant. wt      HISTORY BPASS        1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0                HISTORY BPASS        1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0                HISTORY BPASS        1.0  1.0  1.0                                              HISTORY UVFLG RELEASE ='31DEC03 '  /********* Start 13-FEB-2003   01:07:52      HISTORY SPLIT RELEASE ='31DEC03 '  /********* Start 13-FEB-2003   14:26:59      HISTORY SPLIT INNAME='IC2574-B2   '   INCLASS='LINE  '                          HISTORY SPLIT INSEQ=    1   INDISK=  1                                          HISTORY SPLIT OUTNAME='UGC5666     '   OUTCLASS='SPLIT '                        HISTORY SPLIT OUTSEQ=    4   OUTDISK=  1                                        HISTORY SPLIT /TIMERANG = beginning to end                                      HISTORY SPLIT STOKES = '    ' / Stokes type                                     HISTORY SPLIT BIF =   1, EIF =   1/ IF range                                    HISTORY SPLIT BCHAN =   1, ECHAN = 127/ Chan range                              HISTORY SPLIT SUBARRAY =   0                                                    HISTORY SPLIT FLAGVER=   1  / Edited using FG table version #                   HISTORY SPLIT / Output data in compressed format                                HISTORY SPLIT GAINUSE =  2 / CL table                                           HISTORY SPLIT DOBAND =  1  / TYpe of BP correction done                         HISTORY SPLIT BPVER=  1  / BP correction used BP table #                        HISTORY SPLIT / Weights calibrated                                              HISTORY SPLIT /            Previously flagged   flagged by gain         kept    HISTORY SPLIT / Partially            3757                   0           3757    HISTORY SPLIT / Fully                   0                   0          93380    HISTORY DBCON INNAME='DUMMY       '   INCLASS='DBCON '                          HISTORY DBCON INSEQ=    2   INDISK=  1                                          HISTORY DBCON IN2NAME='UGC5666     '   IN2CLASS='SPLIT '                        HISTORY DBCON IN2SEQ=    4   IN2DISK=  1                                        HISTORY DBCON  /Second file has   1 arrays                                      HISTORY DBCON OUTNAME='DUMMY       '   OUTCLASS='DBCON '                        HISTORY DBCON OUTSEQ=    3   OUTDISK=  1                                        HISTORY DBCON  REWEIGHT =  1.00000E+00 1.00000E+00                              HISTORY DBCON RELEASE ='31DEC03 '  /********* Start 13-FEB-2003   14:37:10      HISTORY DBCON  /******Second input UV file history                              HISTORY FILLM / Image created by user 1276 at 11-FEB-2003   20:32:25            HISTORY FILLM OUTNAME='IC2574-D    '   OUTCLASS='LINE  '                        HISTORY FILLM OUTSEQ=    1   OUTDISK=  1                                        HISTORY FILLM INTAPE =  1, NFILES =   10                                        HISTORY FILLM BAND = 'L', QUAL =     1,  CALC = '    '                          HISTORY FILLM VLAMODE ='  '                                                     HISTORY FILLM / Control program ID =                                            HISTORY FILLM / VLA conf. = D                                                   HISTORY FILLM / correlator mode = 2AD                                           HISTORY FILLM / AP options = H                                                  HISTORY FILLM /TIMERANG =    0/08:00:00.00 to    0/13:59:60.00                  HISTORY FILLM  TIMERANG =   3.333333E-01  5.833333E-01  / days                  HISTORY FILLM BCHAN =    1 ECHAN =  127 / Spectral channels                     HISTORY FILLM CPARM(1) =  0.000 / Integration (sec)                             HISTORY FILLM CPARM(3) =   3. / Max. IF stat. to pass                           HISTORY FILLM CPARM(4) =   0. / .lt. 0 => no shadow flag                        HISTORY FILLM CPARM(6) =   0. / Subarray                                        HISTORY FILLM CPARM(7) =    -1.000 / FQ entry tolerance                         HISTORY FILLM CPARM(8) =   5.00 / CL table time increment                       HISTORY FILLM CPARM(9) =   0.00 / TY table time increment                       HISTORY FILLM  No opacity correction in CL table.                               HISTORY FILLM  No gain curve correction in CL table.                            HISTORY FILLM / Telescope = VLA      Program = TEST03                           HISTORY FILLM / Weighted with nominal sensitivities                             HISTORY FILLM / Data compressed, weighting info reduced                         HISTORY FILLM RELEASE = '31DEC03'                                               HISTORY TACOP Release ='31DEC03 '  /********* Start 11-FEB-2003   22:21:07      HISTORY TACOP INNAME='IC2574-D    '   INCLASS='CH 0  '                          HISTORY TACOP INSEQ=    1   INDISK=  1                                          HISTORY TACOP  INEXT='FG' INVERS=   1 OUTVERS=   0                              HISTORY TACOP  NCOUNT=    1 /Number of tables to copy                           HISTORY TACOP  / Copied      1 extension files                                  HISTORY TACOP Release ='31DEC03 '  /********* Start 11-FEB-2003   22:21:22      HISTORY TACOP INNAME='IC2574-D    '   INCLASS='CH 0  '                          HISTORY TACOP INSEQ=    1   INDISK=  1                                          HISTORY TACOP  INEXT='CL' INVERS=   2 OUTVERS=   0                              HISTORY TACOP  NCOUNT=    1 /Number of tables to copy                           HISTORY TACOP  / Copied      1 extension files                                  HISTORY BPASS Release ='31DEC03 '  /********* Start 11-FEB-2003   22:24:17      HISTORY BPASS /Calibrators included:                                            HISTORY BPASS CALSOUR = '1328+307        ','                '                   HISTORY BPASS QUAL =   -1 CALCODE = *                                           HISTORY BPASS BPVER =     1 /Version of BP table                                HISTORY BPASS FLAGVER =   1 /Flagging table used                                HISTORY BPASS UVRANGE(1)= 0.00000E+00 /Min. uv used                             HISTORY BPASS UVRANGE(2)= 0.00000E+00 /Max. uv used                             HISTORY BPASS IN2NAME='            '   IN2CLASS='      '                        HISTORY BPASS IN2SEQ=    0   IN2DISK=  0                                        HISTORY BPASS INVER =     2 /CC file version no.                                HISTORY BPASS NMAPS =   0 /Number of clean images used                          HISTORY BPASS /TIMERANG = beginning to end                                      HISTORY BPASS SOLINT = 0.0 /Scan average                                        HISTORY BPASS SUBARRAY =   0                                                    HISTORY BPASS REFANT =   13 /Reference antenna                                  HISTORY BPASS / Dividing data by channel 0 before average                       HISTORY BPASS / Dividing data by channel 0 before average                       HISTORY BPASS / Ch. 0 Avgd: Start, Stop, Inc    17  111   1  IF=  1             HISTORY BPASS / External channel 0 filename:                                    HISTORY BPASS IN3NAME='IC2574-D    '   IN3CLASS='CH 0  '                        HISTORY BPASS IN3SEQ=    1   IN3DISK=  1                                        HISTORY BPASS ANTWT=  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0 /Ant. wt      HISTORY BPASS        1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0                HISTORY BPASS        1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0                HISTORY BPASS        1.0  1.0  1.0                                              HISTORY SPLIT RELEASE ='31DEC03 '  /********* Start 13-FEB-2003   14:27:20      HISTORY SPLIT INNAME='IC2574-D    '   INCLASS='LINE  '                          HISTORY SPLIT INSEQ=    1   INDISK=  1                                          HISTORY SPLIT OUTNAME='U5666       '   OUTCLASS='SPLIT '                        HISTORY SPLIT OUTSEQ=    1   OUTDISK=  1                                        HISTORY SPLIT /TIMERANG = beginning to end                                      HISTORY SPLIT STOKES = '    ' / Stokes type                                     HISTORY SPLIT BIF =   1, EIF =   1/ IF range                                    HISTORY SPLIT BCHAN =   1, ECHAN = 127/ Chan range                              HISTORY SPLIT SUBARRAY =   0                                                    HISTORY SPLIT FLAGVER=   1  / Edited using FG table version #                   HISTORY SPLIT / Output data in compressed format                                HISTORY SPLIT GAINUSE =  2 / CL table                                           HISTORY SPLIT DOBAND =  1  / TYpe of BP correction done                         HISTORY SPLIT BPVER=  1  / BP correction used BP table #                        HISTORY SPLIT / Weights calibrated                                              HISTORY SPLIT /            Previously flagged   flagged by gain         kept    HISTORY SPLIT / Partially              75                   0             75    HISTORY SPLIT / Fully                   0                   0          43179    HISTORY DBCON INNAME='DUMMY       '   INCLASS='DBCON '                          HISTORY DBCON INSEQ=    3   INDISK=  1                                          HISTORY DBCON IN2NAME='U5666       '   IN2CLASS='SPLIT '                        HISTORY DBCON IN2SEQ=    1   IN2DISK=  1                                        HISTORY DBCON  /Second file has   1 arrays                                      HISTORY DBCON OUTNAME='IC2574      '   OUTCLASS='DBCON '                        HISTORY DBCON OUTSEQ=    1   OUTDISK=  1                                        HISTORY DBCON  REWEIGHT =  1.00000E+00 1.00000E+00                              HISTORY MOVE  INNAME='IC2574      '   INCLASS='DBCON '                          HISTORY MOVE  INSEQ=    1   INDISK=  1                                          HISTORY MOVE  OUTNAME='IC2574      '   OUTCLASS='DBCON '                        HISTORY MOVE  OUTSEQ=    1   OUTDISK=  4                                        HISTORY       / Where T means TIME (IAT)                                        HISTORY       / Where B means BASELINE NUM                                      HISTORY /End FITS tape header "HISTORY" information                             HISTORY FITLD RELEASE= '31DEC04 ' /-------------------------------------------- HISTORY FITLD OUTNAME='IC2574      '   OUTCLASS='DBCON '                        HISTORY FITLD OUTSEQ=    1   OUTDISK=  5                                        HISTORY FITLD RELEASE= '31DEC04 ' /-------------------------------------------- HISTORY UVFLG RELEASE ='31DEC04 '  /********* Start 06-APR-2005   19:11:36      HISTORY UVLIN RELEASE ='31DEC04 '  /********* Start 06-APR-2005   19:13:02      HISTORY UVLIN INNAME='IC2574      '   INCLASS='DBCON '                          HISTORY UVLIN INSEQ=    1   INDISK=  5                                          HISTORY UVLIN OUTNAME='IC2574      '   OUTCLASS='UVLIN '                        HISTORY UVLIN OUTSEQ=    1   OUTDISK=  5                                        HISTORY UVLIN / Weights (  1/    1)  0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1    HISTORY UVLIN / Weights (  1/   21)  1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0    HISTORY UVLIN / Weights (  1/   41)  0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0    HISTORY UVLIN / Weights (  1/   61)  0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0    HISTORY UVLIN / Weights (  1/   81)  0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0    HISTORY UVLIN / Weights (  1/  101)  0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0    HISTORY UVLIN / Weights (  1/  121)  0 0 0 0 0 0 0                              HISTORY UVLIN / Flagging threshold for unit weight = ******** Jy                HISTORY UVLIN / Best continuum subtracted                                       HISTORY UVLIN / Correlators flagged:       0                                    HISTORY UVLIN / Continuum SHIFT =       0.00         0.00 arcsec                HISTORY UVLIN ORDER =  1          / order of polynomial fit                     HISTORY IMAGR RELEASE ='31DEC04 '  /********* Start 15-APR-2005   11:50:04      HISTORY IMAGR INNAME ='IC2574'                                                  HISTORY IMAGR INCLASS ='UVLIN'                                                  HISTORY IMAGR INSEQ =       1                                                   HISTORY IMAGR QUAL =      -1                                                    HISTORY IMAGR SELBAND =-1.00000E+00                                             HISTORY IMAGR SELFREQ =-1.00000E+00                                             HISTORY IMAGR FREQID =      -1                                                  HISTORY IMAGR DOCALIB =-1.00000E+00                                             HISTORY IMAGR DOPOL =      -1                                                   HISTORY IMAGR BLVER =      -1                                                   HISTORY IMAGR FLAGVER =      -1                                                 HISTORY IMAGR DOBAND =      -1                                                  HISTORY IMAGR BPVER =      -1                                                   HISTORY IMAGR STOKES ='I'                                                       HISTORY IMAGR BCHAN =      22                                                   HISTORY IMAGR ECHAN =     104                                                   HISTORY IMAGR NCHAV =       1                                                   HISTORY IMAGR CHINC =       1                                                   HISTORY IMAGR BIF =       1                                                     HISTORY IMAGR EIF =       1                                                     HISTORY IMAGR OUTNAME ='IC2574_NA'                                              HISTORY IMAGR CELLSIZE(  1) = 1.50000E+00                                       HISTORY IMAGR CELLSIZE(  2) = 1.50000E+00                                       HISTORY IMAGR NFIELD =       1                                                  HISTORY IMAGR UVBXFN =       1                                                  HISTORY IMAGR XTYPE =       5                                                   HISTORY IMAGR YTYPE =       5                                                   HISTORY IMAGR NGAUSS =       1                                                  HISTORY IMAGR FGAUSS(  1) = 1.50000E-03                                         HISTORY IMAGR FGAUSS(  2) = 1.50000E-03                                         HISTORY IMAGR FGAUSS(  3) = 1.50000E-03                                         HISTORY IMAGR FGAUSS(  4) = 1.50000E-03                                         HISTORY IMAGR FGAUSS(  5) = 1.50000E-03                                         HISTORY IMAGR FGAUSS(  6) = 1.50000E-03                                         HISTORY IMAGR FGAUSS(  7) = 1.50000E-03                                         HISTORY IMAGR FGAUSS(  8) = 1.50000E-03                                         HISTORY IMAGR FGAUSS(  9) = 1.50000E-03                                         HISTORY IMAGR FGAUSS( 10) = 1.50000E-03                                         HISTORY IMAGR ROBUST =   5.000 / Weighting robustness parm                      HISTORY IMAGR NITER =  100000                                                   HISTORY IMAGR GAIN = 1.00000E-01                                                HISTORY IMAGR FLUX = 1.50000E-03                                                HISTORY IMAGR MINPATCH =      51                                                HISTORY IMAGR IMSIZE(*, 1)  =  1024 ,  1024                                     HISTORY IMAGR FLDSIZE(*, 1) =  1014 ,  1014                                     HISTORY IMAGR RASHIFT( 1)   =  0.00000E+00                                      HISTORY IMAGR DECSHIFT( 1)  =  0.00000E+00                                      HISTORY IMAGR NBOXES( 1)    =  1                                                HISTORY IMAGR WIN(*, 1, 1) =    6,    6, 1019, 1019                             HISTORY IMAGR TFLUX =  8.37200E-03         / Total cleaned flux                 HISTORY IMAGR NCOMP( 1) =    2851                                               HISTORY IMAGR CFLUX( 1) =  8.37200E-03     / Cleaned flux in field              HISTORY IMAGR RESMAX( 1) =  1.49975E-03    / Peak residual in field windows     ORIGIN  = 'AIPSaida32       UN-REGISTERED!!!!!!! 31DEC05'    /                  DATE    = '2005-07-08'   / File written on Greenwich yyyy-mm-dd                 HISTORY AIPS   IMNAME='IC2574_NA   ' IMCLASS='ICL001' IMSEQ=   1     /          HISTORY AIPS   USERNO= 1008            /                                        COMMENT   FITS (Flexible Image Transport System) format is defined in 'AstronomyCOMMENT   and Astrophysics', volume 376, page 359; bibcode: 2001A&A...376..359H HISTORY AIPS   CLEAN BMAJ=  3.5593E-03 BMIN=  3.3050E-03 BPA=  46.81            HISTORY AIPS   CLEAN NITER=     2851 PRODUCT=1   / NORMAL                       END                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
\ No newline at end of file
diff --git a/tests/data/WALLABY_PILOT_CUTOUT_APPROX.HEADER b/tests/data/WALLABY_PILOT_CUTOUT_APPROX.HEADER
new file mode 100644
index 0000000..1a93d61
--- /dev/null
+++ b/tests/data/WALLABY_PILOT_CUTOUT_APPROX.HEADER
@@ -0,0 +1,1 @@
+SIMPLE  =                      T   / Standard FITS                              BITPIX  =                    -32   / Floating point (32 bit)                    NAXIS   =                      4                                                NAXIS1  =                     33   / K Oman: reduced for testing, was odd       NAXIS2  =                     32   / K Oman: reduced for testing		              NAXIS3  =                      1                                                NAXIS4  =                     16   / K Oman: reduced for testing                BSCALE  =     1.000000000000E+00   / PHYSICAL = PIXEL*BSCALE + BZERO            BZERO   =     0.000000000000E+00                                                BUNIT   =   'Jy/beam '             /  Brightness (pixel) unit                   EQUINOX =     2.000000000000E+03                                                RADESYS =   'FK5     '                                                          LONPOLE =     1.800000000000E+02                                                LATPOLE =    -5.900878888889E+01                                                PC1_1   =     1.000000000000E+00                                                PC2_1   =     0.000000000000E+00                                                PC3_1   =     0.000000000000E+00                                                PC4_1   =     0.000000000000E+00                                                PC1_2   =     0.000000000000E+00                                                PC2_2   =     1.000000000000E+00                                                PC3_2   =     0.000000000000E+00                                                PC4_2   =     0.000000000000E+00                                                PC1_3   =     0.000000000000E+00                                                PC2_3   =     0.000000000000E+00                                                PC3_3   =     1.000000000000E+00                                                PC4_3   =     0.000000000000E+00                                                PC1_4   =     0.000000000000E+00                                                PC2_4   =     0.000000000000E+00                                                PC3_4   =     0.000000000000E+00                                                PC4_4   =     1.000000000000E+00                                                CTYPE1  =   'RA---SIN'                                                          CRVAL1  =     2.529844500000E+02                                                CDELT1  =    -1.666666666667E-03                                                CRPIX1  =     2.742000000000E+03                                                CUNIT1  =   'deg     '                                                          CTYPE2  =   'DEC--SIN'                                                          CRVAL2  =    -5.900878888889E+01                                                CDELT2  =     1.666666666667E-03                                                CRPIX2  =     2.754000000000E+03                                                CUNIT2  =   'deg     '                                                          CTYPE3  =   'STOKES  '                                                          CRVAL3  =     1.000000000000E+00                                                CDELT3  =     1.000000000000E+00                                                CRPIX3  =     1.000000000000E+00                                                CUNIT3  =   '        '                                                          CTYPE4  =   'FREQ    '                                                          CRVAL4  =     1.295500000000E+09                                                CDELT4  =     1.851851851845E+04                                                CRPIX4  =     1.000000000000E+00                                                CUNIT4  =   'Hz      '                                                          PV2_1   =     0.000000000000E+00                                                PV2_2   =     0.000000000000E+00                                                RESTFRQ =     1.420405751786E+09   / Rest Frequency (Hz)                        SPECSYS =   'BARYCENT'             / Spectral reference frame                   ALTRVAL =     2.890451744212E+07   / Alternate frequency reference value        ALTRPIX =     1.000000000000E+00   / Alternate frequency reference pixel        VELREF  =                      2   / 1 LSR, 2 HEL, 3 OBS, +256 Radio            COMMENT casacore non-standard usage: 4 LSD, 5 GEO, 6 SOU, 7 GAL                 TELESCOP=   'ASKAP   '                                                          DATE-OBS=   '2020-03-13T17:43:41.400000'                                        TIMESYS =   'UTC     '                                                          OBSGEO-X=    -2.558266717765E+06                                                OBSGEO-Y=     5.095672176508E+06                                                OBSGEO-Z=    -2.849020838078E+06                                                DATE    =   '2022-06-02T00:11:39.354000'   / Date FITS file was written         ORIGIN  =   'ASKAPsoft'                                                         BMAJ    =    0.00836479001448455   / Restoring beam major axis                  BMIN    =    0.00836187566153038   / Restoring beam minor axis                  BPA     =      -5.80386275991322   / Restoring beam position angle              BTYPE   =   'Intensity'                                                         END                                                                                                                                                             
\ No newline at end of file
diff --git a/tests/data/comb_10tracks_J1337_28_HI_r10_t90_mg095_2.image.header b/tests/data/comb_10tracks_J1337_28_HI_r10_t90_mg095_2.image.header
new file mode 100644
index 0000000..e5f4e7d
--- /dev/null
+++ b/tests/data/comb_10tracks_J1337_28_HI_r10_t90_mg095_2.image.header
@@ -0,0 +1,1 @@
+SIMPLE  =                    T / conforms to FITS standard                      BITPIX  =                  -32 / array data type                                NAXIS   =                    3 / number of array dimensions                     NAXIS1  =                   30                                                  NAXIS2  =                   30                                                  NAXIS3  =                   48                                                  COMMENT   FITS (Flexible Image Transport System) format is defined in 'AstronomyCOMMENT   and Astrophysics', volume 376, page 359; bibcode: 2001A&A...376..359H BUNIT   = 'JY/BEAM '           / Units are in Jansky per beam                   BMAJ    =   0.0264671109891892                                                  BMIN    =   0.0253660271938545                                                  BPA     =     54.4160471536633                                                  EQUINOX =                2000. / J2000                                          BTYPE   = 'Intensity'                                                           TELESCOP= 'MeerKAT '                                                            OBSERVER= 'Erwin de Blok'                                                       OBJECT  = 'J1337-28'                                                            ORIGIN  = 'WSClean '           / W-stacking imager written by Andre Offringa    CTYPE1  = 'RA---SIN'           / Right ascension angle cosine                   CRPIX1  =                  91.                                                  CRVAL1  =    -155.666708333333                                                  CDELT1  = -0.00833333333333333                                                  CUNIT1  = 'deg     '                                                            CTYPE2  = 'DEC--SIN'           / Declination angle cosine                       CRPIX2  =                  91.                                                  CRVAL2  =              -28.045                                                  CDELT2  =  0.00833333333333333                                                  CUNIT2  = 'deg     '                                                            CTYPE3  = 'VRAD    '           / Central frequency                              CRPIX3  =                    1                                                  CRVAL3  =    1075002.301226052                                                  CDELT3  =   -1378.419202784513                                                  DATE-OBS= '2021-03-31T18:20:04.7'                                               WSCDATAC= 'DATA    '                                                            WSCVDATE= '2021-08-26'                                                          WSCVERSI= '3.0.1   '                                                            WSCWEIGH= 'Briggs''(1)'                                                         WSCCHANE=                 692.                                                  WSCCHANS=                   0.                                                  WSCENVIS=     3133809.10531049                                                  WSCFIELD=                   0.                                                  WSCGAIN =                  0.1                                                  WSCGKRNL=                   7.                                                  WSCIMGWG=     12289918.1961939                                                  WSCMAJOR=                   1.                                                  WSCMGAIN=                 0.95                                                  WSCMINOR=                   0.                                                  WSCNEGCM=                   1.                                                  WSCNEGST=                   0.                                                  WSCNITER=             1000000.                                                  WSCNORMF=     12289918.1961939                                                  WSCNVIS =            17770227.                                                  WSCNWLAY=                  64.                                                  WSCTHRES=                   0.                                                  WSCVWSUM=     71083721.1280799                                                  BMAJ1   =   0.0264700279359025                                                  BMIN1   =   0.0253720089790828                                                  BPA1    =     54.4215430039207                                                  BMAJ2   =   0.0264701023305262                                                  BMIN2   =   0.0253718092940115                                                  BPA2    =     54.4162305421328                                                  BMAJ3   =   0.0264701285294781                                                  BMIN3   =   0.0253717037702978                                                  BPA3    =     54.4128580868511                                                  BMAJ4   =   0.0264703271312511                                                  BMIN4   =   0.0253715301976362                                                  BPA4    =     54.4187486341482                                                  BMAJ5   =   0.0264702561650425                                                  BMIN5   =   0.0253715257295387                                                  BPA5    =     54.4223931574097                                                  BMAJ6   =   0.0264701943126539                                                  BMIN6   =   0.0253715711113809                                                  BPA6    =      54.423561028441                                                  BMAJ7   =     0.02647001693325                                                  BMIN7   =    0.025371544106404                                                  BPA7    =     54.4173882692566                                                  BMAJ8   =    0.026470120473701                                                  BMIN8   =   0.0253715301947336                                                  BPA8    =     54.4179553164685                                                  BMAJ9   =   0.0264701568402116                                                  BMIN9   =    0.025371578289262                                                  BPA9    =     54.4196110272656                                                  BMAJ10  =   0.0264702886416774                                                  BMIN10  =   0.0253716077502704                                                  BPA10   =     54.4215682607917                                                  BMAJ11  =   0.0264702530794663                                                  BMIN11  =   0.0253715449797759                                                  BPA11   =     54.4220380463569                                                  BMAJ12  =   0.0264702167310501                                                  BMIN12  =   0.0253716139616904                                                  BPA12   =     54.4174371219569                                                  BMAJ13  =   0.0264703600034541                                                  BMIN13  =   0.0253714281416106                                                  BPA13   =     54.4194424285409                                                  BMAJ14  =   0.0264703822346629                                                  BMIN14  =   0.0253714085815968                                                  BPA14   =     54.4193406191641                                                  BMAJ15  =   0.0264703346588065                                                  BMIN15  =   0.0253713660630336                                                  BPA15   =     54.4212699175777                                                  BMAJ16  =   0.0264702890833775                                                  BMIN16  =   0.0253713252343039                                                  BPA16   =     54.4246238351535                                                  BMAJ17  =   0.0264702617001442                                                  BMIN17  =   0.0253713638712059                                                  BPA17   =     54.4256164269153                                                  BMAJ18  =   0.0264702012168061                                                  BMIN18  =   0.0253713593204748                                                  BPA18   =       54.42427430678                                                  BMAJ19  =   0.0264702426827752                                                  BMIN19  =   0.0253713392206336                                                  BPA19   =     54.4227226084309                                                  BMAJ20  =   0.0264702101014086                                                  BMIN20  =   0.0253713094470152                                                  BPA20   =     54.4221984931825                                                  BMAJ21  =   0.0264703540965099                                                  BMIN21  =   0.0253712005775172                                                  BPA21   =     54.4263386198423                                                  BMAJ22  =   0.0264703646935621                                                  BMIN22  =   0.0253710504910329                                                  BPA22   =     54.4295185758518                                                  BMAJ23  =   0.0264704290465881                                                  BMIN23  =   0.0253710679440695                                                  BPA23   =     54.4292061467251                                                  BMAJ24  =   0.0264704697638011                                                  BMIN24  =   0.0253710573133101                                                  BPA24   =     54.4265296987057                                                  BMAJ25  =   0.0264703844198242                                                  BMIN25  =   0.0253711836897521                                                  BPA25   =     54.4247535513563                                                  BMAJ26  =   0.0264703169163012                                                  BMIN26  =   0.0253711887441819                                                  BPA26   =     54.4236021337442                                                  BMAJ27  =   0.0264702194213844                                                  BMIN27  =   0.0253711660066966                                                  BPA27   =     54.4258803329922                                                  BMAJ28  =   0.0264702298459821                                                  BMIN28  =   0.0253711397213868                                                  BPA28   =     54.4241591899816                                                  BMAJ29  =   0.0264702465151459                                                  BMIN29  =   0.0253710151517175                                                  BPA29   =     54.4253129439189                                                  BMAJ30  =   0.0264702684250475                                                  BMIN30  =   0.0253708897438864                                                  BPA30   =     54.4249513853991                                                  BMAJ31  =   0.0264702590760759                                                  BMIN31  =   0.0253708271224751                                                  BPA31   =     54.4266514653242                                                  BMAJ32  =   0.0264701642744678                                                  BMIN32  =    0.025370995227306                                                  BPA32   =     54.4282875433465                                                  BMAJ33  =   0.0264700322241307                                                  BMIN33  =   0.0253709420874612                                                  BPA33   =     54.4292375796957                                                  BMAJ34  =   0.0264700285819585                                                  BMIN34  =    0.025370863375746                                                  BPA34   =     54.4302736842796                                                  BMAJ35  =   0.0264700127921955                                                  BMIN35  =   0.0253707544524987                                                  BPA35   =     54.4301556797598                                                  BMAJ36  =   0.0264700705715735                                                  BMIN36  =   0.0253707519049336                                                  BPA36   =     54.4313729951934                                                  BMAJ37  =   0.0264698949536725                                                  BMIN37  =   0.0253708040570249                                                  BPA37   =     54.4274737237586                                                  BMAJ38  =   0.0264698010798738                                                  BMIN38  =   0.0253707690651117                                                  BPA38   =     54.4269160407906                                                  BMAJ39  =   0.0264697521108695                                                  BMIN39  =   0.0253707623541836                                                  BPA39   =     54.4222132773679                                                  BMAJ40  =   0.0264697169178471                                                  BMIN40  =   0.0253708213097464                                                  BPA40   =     54.4263779021142                                                  BMAJ41  =   0.0264697709957894                                                  BMIN41  =   0.0253707806412153                                                  BPA41   =       54.42757713696                                                  BMAJ42  =   0.0264698958792511                                                  BMIN42  =   0.0253707013405314                                                  BPA42   =     54.4317099764168                                                  BMAJ43  =   0.0264699621230423                                                  BMIN43  =   0.0253705702967981                                                  BPA43   =     54.4292676850553                                                  BMAJ44  =   0.0264699376377247                                                  BMIN44  =   0.0253705073063414                                                  BPA44   =     54.4272789710574                                                  BMAJ45  =    0.026469898166211                                                  BMIN45  =   0.0253704742367252                                                  BPA45   =     54.4288929056925                                                  BMAJ46  =   0.0264698420297898                                                  BMIN46  =   0.0253704441787224                                                  BPA46   =     54.4292170307252                                                  BMAJ47  =   0.0264697776386536                                                  BMIN47  =   0.0253704931308099                                                  BPA47   =     54.4279624605829                                                  BMAJ48  =   0.0264698053199623                                                  BMIN48  =    0.025370506700612                                                  BPA48   =     54.4242919129883                                                  BMAJ49  =   0.0264698004027445                                                  BMIN49  =   0.0253704568124392                                                  BPA49   =     54.4274303766766                                                  BMAJ50  =   0.0264698379383825                                                  BMIN50  =   0.0253704654604671                                                  BPA50   =     54.4311776214989                                                  BMAJ51  =   0.0264698271653507                                                  BMIN51  =   0.0253704351038182                                                  BPA51   =     54.4332959368317                                                  BMAJ52  =   0.0264697979866305                                                  BMIN52  =   0.0253704470201049                                                  BPA52   =     54.4307728424628                                                  BMAJ53  =   0.0264697204839548                                                  BMIN53  =   0.0253703434169514                                                  BPA53   =     54.4297134494393                                                  BMAJ54  =   0.0264695974359279                                                  BMIN54  =   0.0253703420773018                                                  BPA54   =     54.4293697409082                                                  BMAJ55  =   0.0264696044190879                                                  BMIN55  =   0.0253703106262339                                                  BPA55   =     54.4285470372015                                                  BMAJ56  =   0.0264696144672424                                                  BMIN56  =   0.0253702292513648                                                  BPA56   =     54.4298076551668                                                  BMAJ57  =   0.0264695058313754                                                  BMIN57  =   0.0253701942988213                                                  BPA57   =     54.4319378775609                                                  BMAJ58  =   0.0264695216608564                                                  BMIN58  =   0.0253702346630475                                                  BPA58   =     54.4344163031095                                                  BMAJ59  =   0.0264694912220949                                                  BMIN59  =   0.0253702601798433                                                  BPA59   =     54.4337360695468                                                  BMAJ60  =   0.0264696442594135                                                  BMIN60  =    0.025370195307099                                                  BPA60   =     54.4319636269283                                                  BMAJ61  =   0.0264699061837241                                                  BMIN61  =   0.0253700038530121                                                  BPA61   =     54.4285606969509                                                  BMAJ62  =   0.0264698257329126                                                  BMIN62  =   0.0253699610482427                                                  BPA62   =      54.431068283124                                                  BMAJ63  =   0.0264697915827017                                                  BMIN63  =   0.0253699626369474                                                  BPA63   =     54.4301027900082                                                  BMAJ64  =    0.026469435665725                                                  BMIN64  =   0.0253701162436546                                                  BPA64   =     54.4336377423087                                                  BMAJ65  =   0.0264694282336617                                                  BMIN65  =    0.025370040744889                                                  BPA65   =     54.4318930956112                                                  BMAJ66  =   0.0264693990091729                                                  BMIN66  =   0.0253700467429223                                                  BPA66   =     54.4309662985593                                                  BMAJ67  =   0.0264693365594208                                                  BMIN67  =   0.0253699433958351                                                  BPA67   =     54.4284156402291                                                  BMAJ68  =   0.0264692962830367                                                  BMIN68  =   0.0253699403955101                                                  BPA68   =     54.4288153718284                                                  BMAJ69  =   0.0264692494161752                                                  BMIN69  =   0.0253699023775947                                                  BPA69   =     54.4250947170055                                                  BMAJ70  =   0.0264693174614861                                                  BMIN70  =   0.0253698543314428                                                  BPA70   =     54.4282268889398                                                  BMAJ71  =   0.0264692721449223                                                  BMIN71  =   0.0253698471633396                                                  BPA71   =     54.4272666244875                                                  BMAJ72  =   0.0264693134292609                                                  BMIN72  =   0.0253699122528587                                                  BPA72   =     54.4300238535141                                                  BMAJ73  =   0.0264692647954191                                                  BMIN73  =   0.0253698918571301                                                  BPA73   =     54.4272805467251                                                  BMAJ74  =   0.0264692256722014                                                  BMIN74  =   0.0253698696920722                                                  BPA74   =     54.4292868443517                                                  BMAJ75  =    0.026469194728207                                                  BMIN75  =   0.0253698318852818                                                  BPA75   =     54.4245154996288                                                  BMAJ76  =   0.0264691042819084                                                  BMIN76  =   0.0253698881206489                                                  BPA76   =      54.426502899992                                                  BMAJ77  =   0.0264691156812489                                                  BMIN77  =   0.0253698752082586                                                  BPA77   =     54.4247419002072                                                  BMAJ78  =   0.0264690767073803                                                  BMIN78  =   0.0253698657658457                                                  BPA78   =     54.4273596841153                                                  BMAJ79  =    0.026469137846379                                                  BMIN79  =   0.0253698010655368                                                  BPA79   =     54.4239830775188                                                  BMAJ80  =   0.0264690603412302                                                  BMIN80  =   0.0253697359558208                                                  BPA80   =     54.4258293252754                                                  BMAJ81  =   0.0264690880267546                                                  BMIN81  =    0.025369627080956                                                  BPA81   =     54.4236419558289                                                  BMAJ82  =   0.0264690096539392                                                  BMIN82  =    0.025369721631401                                                  BPA82   =     54.4242226503837                                                  BMAJ83  =   0.0264690423206448                                                  BMIN83  =   0.0253696794909323                                                  BPA83   =     54.4209802713091                                                  BMAJ84  =    0.026469116139547                                                  BMIN84  =   0.0253697093929591                                                  BPA84   =      54.419779320253                                                  BMAJ85  =   0.0264691669223295                                                  BMIN85  =   0.0253696520999043                                                  BPA85   =     54.4222191943653                                                  BMAJ86  =   0.0264692176457098                                                  BMIN86  =   0.0253696211337374                                                  BPA86   =     54.4283515331528                                                  BMAJ87  =    0.026469057898116                                                  BMIN87  =   0.0253695766323688                                                  BPA87   =     54.4317620612765                                                  BMAJ88  =   0.0264690028591918                                                  BMIN88  =   0.0253694539104918                                                  BPA88   =     54.4383351034801                                                  BMAJ89  =   0.0264689080262408                                                  BMIN89  =    0.025369369854211                                                  BPA89   =     54.4377414716689                                                  BMAJ90  =   0.0264690864433623                                                  BMIN90  =    0.025369262796052                                                  BPA90   =     54.4403456633505                                                  BMAJ91  =   0.0264690437743048                                                  BMIN91  =   0.0253691659559457                                                  BPA91   =     54.4380603094176                                                  BMAJ92  =    0.026469175416301                                                  BMIN92  =   0.0253691131041856                                                  BPA92   =     54.4364933584361                                                  BMAJ93  =   0.0264690278791989                                                  BMIN93  =   0.0253691247554893                                                  BPA93   =     54.4366021305869                                                  BMAJ94  =   0.0264690985421769                                                  BMIN94  =   0.0253690712762668                                                  BPA94   =     54.4345562077389                                                  BMAJ95  =   0.0264690117494752                                                  BMIN95  =   0.0253691362713615                                                  BPA95   =     54.4317304452972                                                  BMAJ96  =   0.0264690821883593                                                  BMIN96  =   0.0253691233206833                                                  BPA96   =     54.4326781846898                                                  BMAJ97  =   0.0264690176057936                                                  BMIN97  =   0.0253691425519328                                                  BPA97   =     54.4339211907806                                                  BMAJ98  =   0.0264690320809051                                                  BMIN98  =   0.0253689451515861                                                  BPA98   =     54.4387693797263                                                  BMAJ99  =   0.0264689503642088                                                  BMIN99  =   0.0253688591122453                                                  BPA99   =     54.4380017516968                                                  BMAJ100 =   0.0264689048754185                                                  BMIN100 =   0.0253686794111436                                                  BPA100  =     54.4372333757074                                                  BMAJ101 =   0.0264689350946826                                                  BMIN101 =   0.0253687037373428                                                  BPA101  =     54.4347611248071                                                  BMAJ102 =   0.0264690525776624                                                  BMIN102 =   0.0253686835999887                                                  BPA102  =     54.4314633802434                                                  BMAJ103 =   0.0264691031848623                                                  BMIN103 =   0.0253687292607303                                                  BPA103  =     54.4339959537004                                                  BMAJ104 =   0.0264690183010081                                                  BMIN104 =   0.0253687206985909                                                  BPA104  =     54.4353470042385                                                  BMAJ105 =   0.0264688298639759                                                  BMIN105 =   0.0253687712759225                                                  BPA105  =      54.437390365735                                                  BMAJ106 =   0.0264688468037827                                                  BMIN106 =   0.0253686484618838                                                  BPA106  =     54.4354549519291                                                  BMAJ107 =   0.0264690078298724                                                  BMIN107 =    0.025368622728063                                                  BPA107  =     54.4315183100882                                                  BMAJ108 =   0.0264690598729327                                                  BMIN108 =   0.0253686168418518                                                  BPA108  =     54.4307314244483                                                  BMAJ109 =   0.0264690421357675                                                  BMIN109 =   0.0253685999124253                                                  BPA109  =     54.4294036770258                                                  BMAJ110 =   0.0264687991167313                                                  BMIN110 =   0.0253685852196515                                                  BPA110  =     54.4343560886069                                                  BMAJ111 =   0.0264686661028525                                                  BMIN111 =   0.0253685422434507                                                  BPA111  =     54.4345440952882                                                  BMAJ112 =   0.0264685864205327                                                  BMIN112 =   0.0253685213198352                                                  BPA112  =     54.4358093953164                                                  BMAJ113 =    0.026468600752762                                                  BMIN113 =   0.0253684986160833                                                  BPA113  =     54.4323948617449                                                  BMAJ114 =     0.02646884440166                                                  BMIN114 =    0.025368431232269                                                  BPA114  =      54.430709165998                                                  BMAJ115 =    0.026468874075038                                                  BMIN115 =   0.0253684965066428                                                  BPA115  =     54.4340148567184                                                  BMAJ116 =   0.0264688969101367                                                  BMIN116 =   0.0253684180035299                                                  BPA116  =     54.4356415924449                                                  BMAJ117 =   0.0264688063872092                                                  BMIN117 =   0.0253684351697365                                                  BPA117  =     54.4383191786937                                                  BMAJ118 =   0.0264687959268641                                                  BMIN118 =   0.0253682415956665                                                  BPA118  =     54.4373353159968                                                  BMAJ119 =   0.0264687519592613                                                  BMIN119 =   0.0253682503690624                                                  BPA119  =     54.4341739316363                                                  BMAJ120 =   0.0264687001860468                                                  BMIN120 =   0.0253682184569685                                                  BPA120  =      54.433298828409                                                  BMAJ121 =   0.0264685948461495                                                  BMIN121 =   0.0253681854527771                                                  BPA121  =     54.4354427120923                                                  BMAJ122 =   0.0264685695751431                                                  BMIN122 =   0.0253681503723534                                                  BPA122  =     54.4327727863884                                                  BMAJ123 =   0.0264684679465003                                                  BMIN123 =   0.0253681271135314                                                  BPA123  =      54.436925326108                                                  BMAJ124 =   0.0264685677119062                                                  BMIN124 =     0.02536806992408                                                  BPA124  =     54.4333806454135                                                  BMAJ125 =    0.026468661244403                                                  BMIN125 =    0.025368014843581                                                  BPA125  =     54.4331929698057                                                  BMAJ126 =   0.0264688108189797                                                  BMIN126 =    0.025367935109942                                                  BPA126  =      54.428689914516                                                  BMAJ127 =   0.0264687385579578                                                  BMIN127 =   0.0253679465774468                                                  BPA127  =     54.4299578028723                                                  BMAJ128 =    0.026468606763189                                                  BMIN128 =   0.0253679524179408                                                  BPA128  =     54.4323225853871                                                  BMAJ129 =    0.026468520375218                                                  BMIN129 =   0.0253678852542372                                                  BPA129  =     54.4316099417944                                                  BMAJ130 =   0.0264684376116066                                                  BMIN130 =   0.0253678822106646                                                  BPA130  =     54.4340646348183                                                  BMAJ131 =   0.0264684843670125                                                  BMIN131 =   0.0253678154634838                                                  BPA131  =     54.4318322343357                                                  BMAJ132 =   0.0264684383102772                                                  BMIN132 =    0.025367803058186                                                  BPA132  =     54.4311717913625                                                  BMAJ133 =   0.0264684776963443                                                  BMIN133 =   0.0253677371153862                                                  BPA133  =     54.4278015531563                                                  BMAJ134 =   0.0264683630171119                                                  BMIN134 =    0.025367742710705                                                  BPA134  =     54.4246603114021                                                  BMAJ135 =   0.0264683656132181                                                  BMIN135 =   0.0253676963006556                                                  BPA135  =     54.4282984051625                                                  BMAJ136 =   0.0264682775530759                                                  BMIN136 =    0.025367775799125                                                  BPA136  =      54.431890555852                                                  BMAJ137 =   0.0264683730753563                                                  BMIN137 =   0.0253677851911932                                                  BPA137  =     54.4330176829482                                                  BMAJ138 =   0.0264683841703374                                                  BMIN138 =   0.0253677487912645                                                  BPA138  =     54.4321271113136                                                  BMAJ139 =   0.0264683518487397                                                  BMIN139 =    0.025367645717211                                                  BPA139  =     54.4266648706562                                                  BMAJ140 =   0.0264681666110196                                                  BMIN140 =   0.0253675976954112                                                  BPA140  =     54.4247210595016                                                  BMAJ141 =   0.0264681221645212                                                  BMIN141 =   0.0253676325524078                                                  BPA141  =     54.4255338065569                                                  BMAJ142 =   0.0264681010694603                                                  BMIN142 =   0.0253676603981828                                                  BPA142  =     54.4321998396348                                                  BMAJ143 =   0.0264682398135631                                                  BMIN143 =   0.0253675776613671                                                  BPA143  =     54.4378998576267                                                  BMAJ144 =   0.0264682176235565                                                  BMIN144 =   0.0253675733409254                                                  BPA144  =     54.4374813930648                                                  BMAJ145 =   0.0264681061928432                                                  BMIN145 =   0.0253675760544273                                                  BPA145  =     54.4341381590154                                                  BMAJ146 =   0.0264681208640389                                                  BMIN146 =   0.0253675838102056                                                  BPA146  =     54.4307494234284                                                  BMAJ147 =    0.026468084840197                                                  BMIN147 =   0.0253675077292769                                                  BPA147  =      54.426394649204                                                  BMAJ148 =   0.0264680410465685                                                  BMIN148 =   0.0253674656791631                                                  BPA148  =     54.4247069836052                                                  BMAJ149 =   0.0264679270028955                                                  BMIN149 =   0.0253674861089311                                                  BPA149  =     54.4215946358453                                                  BMAJ150 =   0.0264679335513643                                                  BMIN150 =   0.0253673811553596                                                  BPA150  =     54.4224872442718                                                  BMAJ151 =   0.0264680194135834                                                  BMIN151 =   0.0253672485008812                                                  BPA151  =     54.4223160411914                                                  BMAJ152 =    0.026467946465773                                                  BMIN152 =   0.0253671649877408                                                  BPA152  =     54.4210051515005                                                  BMAJ153 =   0.0264678742553451                                                  BMIN153 =   0.0253672257208605                                                  BPA153  =       54.42430076266                                                  BMAJ154 =   0.0264678021882686                                                  BMIN154 =   0.0253672320401924                                                  BPA154  =     54.4268797576355                                                  BMAJ155 =   0.0264677199125456                                                  BMIN155 =   0.0253673238125961                                                  BPA155  =     54.4258158217574                                                  BMAJ156 =   0.0264676681025134                                                  BMIN156 =   0.0253670899555857                                                  BPA156  =      54.423558510619                                                  BMAJ157 =    0.026467570221416                                                  BMIN157 =   0.0253671790296747                                                  BPA157  =     54.4245984180623                                                  BMAJ158 =   0.0264675414699516                                                  BMIN158 =   0.0253669486284673                                                  BPA158  =     54.4246886728958                                                  BMAJ159 =   0.0264675245250974                                                  BMIN159 =   0.0253669412963716                                                  BPA159  =     54.4240415056069                                                  BMAJ160 =   0.0264674930881058                                                  BMIN160 =   0.0253669930313367                                                  BPA160  =      54.419682617676                                                  BMAJ161 =   0.0264675970864949                                                  BMIN161 =   0.0253669999567071                                                  BPA161  =     54.4205601033714                                                  BMAJ162 =   0.0264677675391615                                                  BMIN162 =   0.0253668566939324                                                  BPA162  =     54.4218699788173                                                  BMAJ163 =   0.0264677495260443                                                  BMIN163 =   0.0253667027437971                                                  BPA163  =     54.4201187857659                                                  BMAJ164 =   0.0264674974370363                                                  BMIN164 =   0.0253667146853345                                                  BPA164  =     54.4200533426525                                                  BMAJ165 =    0.026467438363492                                                  BMIN165 =   0.0253667900902998                                                  BPA165  =     54.4205167298968                                                  BMAJ166 =   0.0264674120282957                                                  BMIN166 =   0.0253667119921265                                                  BPA166  =     54.4265117017012                                                  BMAJ167 =   0.0264676619647645                                                  BMIN167 =   0.0253666586554924                                                  BPA167  =     54.4266664476163                                                  BMAJ168 =   0.0264676418141024                                                  BMIN168 =   0.0253666642069675                                                  BPA168  =     54.4258875501107                                                  BMAJ169 =    0.026467641688314                                                  BMIN169 =   0.0253665962994392                                                  BPA169  =     54.4210221425364                                                  BMAJ170 =   0.0264675459446987                                                  BMIN170 =   0.0253667003556018                                                  BPA170  =     54.4176672985005                                                  BMAJ171 =    0.026467554586531                                                  BMIN171 =    0.025366534737224                                                  BPA171  =      54.414775129795                                                  BMAJ172 =    0.026467427964022                                                  BMIN172 =   0.0253666084430298                                                  BPA172  =     54.4166177206202                                                  BMAJ173 =   0.0264674146068486                                                  BMIN173 =    0.025366571974494                                                  BPA173  =     54.4198066795586                                                  BMAJ174 =   0.0264673320994769                                                  BMIN174 =   0.0253666619622492                                                  BPA174  =     54.4187702952138                                                  BMAJ175 =   0.0264674217265387                                                  BMIN175 =   0.0253666469926951                                                  BPA175  =     54.4175841782794                                                  BMAJ176 =   0.0264674682999329                                                  BMIN176 =    0.025366593661732                                                  BPA176  =     54.4186192270407                                                  BMAJ177 =   0.0264674291173336                                                  BMIN177 =    0.025366451015413                                                  BPA177  =     54.4212915158075                                                  BMAJ178 =   0.0264672994202607                                                  BMIN178 =   0.0253663376366635                                                  BPA178  =     54.4241929404915                                                  BMAJ179 =   0.0264673090898366                                                  BMIN179 =   0.0253662699420009                                                  BPA179  =     54.4213361559382                                                  BMAJ180 =     0.02646735610001                                                  BMIN180 =   0.0253663078242376                                                  BPA180  =     54.4191395809513                                                  BMAJ181 =   0.0264673196816879                                                  BMIN181 =   0.0253663882087083                                                  BPA181  =     54.4160738197287                                                  BMAJ182 =   0.0264671654842028                                                  BMIN182 =   0.0253663942447947                                                  BPA182  =     54.4169212069921                                                  BMAJ183 =   0.0264671509410369                                                  BMIN183 =   0.0253662096574723                                                  BPA183  =     54.4172971406913                                                  BMAJ184 =   0.0264671529065754                                                  BMIN184 =   0.0253661303760151                                                  BPA184  =     54.4163967523968                                                  BMAJ185 =   0.0264671109891892                                                  BMIN185 =   0.0253660271938545                                                  BPA185  =     54.4160471536633                                                  BMAJ186 =   0.0264670321171293                                                  BMIN186 =   0.0253660259093351                                                  BPA186  =     54.4165250160329                                                  BMAJ187 =   0.0264670346690805                                                  BMIN187 =   0.0253660251491221                                                  BPA187  =     54.4163219657957                                                  BMAJ188 =   0.0264670519862615                                                  BMIN188 =   0.0253659874661272                                                  BPA188  =     54.4179571254267                                                  BMAJ189 =   0.0264670763877663                                                  BMIN189 =   0.0253660041934785                                                  BPA189  =     54.4188216131265                                                  BMAJ190 =   0.0264670175268182                                                  BMIN190 =   0.0253660012451065                                                  BPA190  =     54.4200114402891                                                  BMAJ191 =   0.0264671479100351                                                  BMIN191 =   0.0253659823728342                                                  BPA191  =     54.4197789051322                                                  BMAJ192 =   0.0264671523013946                                                  BMIN192 =   0.0253660453197642                                                  BPA192  =     54.4189836411532                                                  BMAJ193 =   0.0264670939424018                                                  BMIN193 =   0.0253660523085612                                                  BPA193  =     54.4187979072745                                                  BMAJ194 =    0.026466948233412                                                  BMIN194 =   0.0253661108536728                                                  BPA194  =     54.4203737185182                                                  BMAJ195 =   0.0264669458509028                                                  BMIN195 =    0.025366081098862                                                  BPA195  =     54.4220625774417                                                  BMAJ196 =   0.0264670864404436                                                  BMIN196 =   0.0253660279620983                                                  BPA196  =     54.4173567222282                                                  BMAJ197 =   0.0264671170971617                                                  BMIN197 =   0.0253659647795271                                                  BPA197  =     54.4179429325093                                                  BMAJ198 =   0.0264670878189768                                                  BMIN198 =   0.0253658455710906                                                  BPA198  =     54.4172058869077                                                  BMAJ199 =   0.0264670679550732                                                  BMIN199 =   0.0253658498337752                                                  BPA199  =     54.4210920609554                                                  BMAJ200 =   0.0264670477767206                                                  BMIN200 =   0.0253657404509837                                                  BPA200  =     54.4217241558368                                                  BMAJ201 =    0.026467019877934                                                  BMIN201 =    0.025365729009055                                                  BPA201  =     54.4199982158153                                                  BMAJ202 =   0.0264670291386717                                                  BMIN202 =   0.0253656402273421                                                  BPA202  =     54.4152978846271                                                  BMAJ203 =   0.0264669374123612                                                  BMIN203 =   0.0253655445011624                                                  BPA203  =     54.4137819691914                                                  BMAJ204 =    0.026467014986497                                                  BMIN204 =   0.0253655768115041                                                  BPA204  =      54.420541319127                                                  BMAJ205 =   0.0264671365859536                                                  BMIN205 =     0.02536560030152                                                  BPA205  =     54.4209931942902                                                  BMAJ206 =   0.0264672535902123                                                  BMIN206 =   0.0253656459033802                                                  BPA206  =     54.4184529838156                                                  BMAJ207 =   0.0264672409747525                                                  BMIN207 =   0.0253655442780493                                                  BPA207  =     54.4140695568181                                                  BMAJ208 =    0.026467256762455                                                  BMIN208 =   0.0253653808953415                                                  BPA208  =     54.4166123466722                                                  BMAJ209 =   0.0264672101062397                                                  BMIN209 =   0.0253652745268987                                                  BPA209  =     54.4144730680601                                                  BMAJ210 =   0.0264673003078279                                                  BMIN210 =   0.0253652601735571                                                  BPA210  =     54.4162517541619                                                  BMAJ211 =     0.02646712420092                                                  BMIN211 =   0.0253652784414732                                                  BPA211  =     54.4145090782364                                                  BMAJ212 =    0.026467210205315                                                  BMIN212 =   0.0253652647636536                                                  BPA212  =       54.41727064619                                                  BMAJ213 =   0.0264671149735947                                                  BMIN213 =   0.0253653037901652                                                  BPA213  =     54.4205398859977                                                  BMAJ214 =   0.0264672003495672                                                  BMIN214 =   0.0253652352239837                                                  BPA214  =     54.4179465908678                                                  BMAJ215 =   0.0264671663948523                                                  BMIN215 =   0.0253651791755777                                                  BPA215  =     54.4172847442341                                                  BMAJ216 =   0.0264672115574271                                                  BMIN216 =   0.0253651095113534                                                  BPA216  =     54.4186658027177                                                  BMAJ217 =   0.0264672665206061                                                  BMIN217 =   0.0253650599961728                                                  BPA217  =     54.4227590842411                                                  BMAJ218 =   0.0264672680756983                                                  BMIN218 =   0.0253650246828387                                                  BPA218  =     54.4245832983447                                                  BMAJ219 =   0.0264671675201084                                                  BMIN219 =    0.025364968608728                                                  BPA219  =     54.4203801058141                                                  BMAJ220 =   0.0264671116134918                                                  BMIN220 =    0.025364991259117                                                  BPA220  =     54.4164276344623                                                  BMAJ221 =   0.0264669984196357                                                  BMIN221 =     0.02536501796979                                                  BPA221  =     54.4146576581912                                                  BMAJ222 =    0.026467111089368                                                  BMIN222 =   0.0253649664248332                                                  BPA222  =     54.4159601204094                                                  BMAJ223 =   0.0264671663125076                                                  BMIN223 =   0.0253648961200563                                                  BPA223  =     54.4170236504152                                                  BMAJ224 =   0.0264672036378763                                                  BMIN224 =   0.0253648476937136                                                  BPA224  =     54.4199433679043                                                  BMAJ225 =   0.0264671868672056                                                  BMIN225 =   0.0253648313156588                                                  BPA225  =      54.418399054774                                                  BMAJ226 =   0.0264672039877049                                                  BMIN226 =   0.0253647509006449                                                  BPA226  =     54.4190777059099                                                  BMAJ227 =   0.0264670557902316                                                  BMIN227 =   0.0253646348285435                                                  BPA227  =     54.4183622601129                                                  BMAJ228 =   0.0264670234022783                                                  BMIN228 =   0.0253645531699568                                                  BPA228  =     54.4221057757721                                                  BMAJ229 =   0.0264669280517821                                                  BMIN229 =   0.0253644353272469                                                  BPA229  =     54.4171937413285                                                  BMAJ230 =   0.0264670125893279                                                  BMIN230 =   0.0253645346901872                                                  BPA230  =     54.4176647973837                                                  BMAJ231 =   0.0264670289656509                                                  BMIN231 =   0.0253645077586558                                                  BPA231  =     54.4147282197408                                                  BMAJ232 =   0.0264670339196214                                                  BMIN232 =   0.0253646299052019                                                  BPA232  =      54.417625441991                                                  BMAJ233 =   0.0264670760783839                                                  BMIN233 =   0.0253645968965578                                                  BPA233  =     54.4141811237106                                                  BMAJ234 =   0.0264670699719645                                                  BMIN234 =   0.0253646612039745                                                  BPA234  =     54.4095083695095                                                  BMAJ235 =   0.0264669334132361                                                  BMIN235 =   0.0253645864615792                                                  BPA235  =     54.4074524661986                                                  BMAJ236 =   0.0264668330139095                                                  BMIN236 =   0.0253645811975671                                                  BPA236  =     54.4096513093691                                                  BMAJ237 =   0.0264668258858467                                                  BMIN237 =   0.0253644994088281                                                  BPA237  =     54.4166172184863                                                  BMAJ238 =   0.0264668051951882                                                  BMIN238 =   0.0253644692264099                                                  BPA238  =     54.4115959684075                                                  BMAJ239 =   0.0264669039857066                                                  BMIN239 =   0.0253644831644259                                                  BPA239  =     54.4108490198821                                                  BMAJ240 =   0.0264668318161199                                                  BMIN240 =   0.0253643289995569                                                  BPA240  =     54.4072463210157                                                  BMAJ241 =   0.0264669231598524                                                  BMIN241 =   0.0253642331511839                                                  BPA241  =     54.4091407483601                                                  BMAJ242 =   0.0264668509814931                                                  BMIN242 =   0.0253642652959243                                                  BPA242  =     54.4097988681222                                                  BMAJ243 =   0.0264668517826323                                                  BMIN243 =   0.0253642787943222                                                  BPA243  =     54.4117215326244                                                  BMAJ244 =   0.0264667496413521                                                  BMIN244 =   0.0253643736967306                                                  BPA244  =       54.41172340124                                                  BMAJ245 =   0.0264667615114557                                                  BMIN245 =   0.0253641491799703                                                  BPA245  =     54.4118674812277                                                  BMAJ246 =   0.0264667817478503                                                  BMIN246 =   0.0253641095735681                                                  BPA246  =     54.4117832950005                                                  BMAJ247 =   0.0264667665339788                                                  BMIN247 =   0.0253641316604488                                                  BPA247  =     54.4083824516205                                                  BMAJ248 =   0.0264668980632388                                                  BMIN248 =    0.025364105046924                                                  BPA248  =     54.4083788043681                                                  BMAJ249 =   0.0264668473451174                                                  BMIN249 =   0.0253642470205971                                                  BPA249  =     54.4128831301286                                                  BMAJ250 =   0.0264668966210113                                                  BMIN250 =   0.0253641443348738                                                  BPA250  =     54.4149571195136                                                  BMAJ251 =   0.0264668656144826                                                  BMIN251 =   0.0253641540612276                                                  BPA251  =     54.4160786761018                                                  BMAJ252 =   0.0264667599295607                                                  BMIN252 =   0.0253640462942735                                                  BPA252  =     54.4133691885998                                                  BMAJ253 =   0.0264667539085028                                                  BMIN253 =   0.0253639990777173                                                  BPA253  =     54.4162581493189                                                  BMAJ254 =   0.0264668394511635                                                  BMIN254 =   0.0253639089889915                                                  BPA254  =     54.4126440799002                                                  BMAJ255 =   0.0264669529154162                                                  BMIN255 =   0.0253638973787589                                                  BPA255  =     54.4141922979793                                                  BMAJ256 =   0.0264669775865809                                                  BMIN256 =   0.0253638348695541                                                  BPA256  =     54.4106197978063                                                  BMAJ257 =   0.0264669591954419                                                  BMIN257 =   0.0253637216293801                                                  BPA257  =     54.4137862216644                                                  BMAJ258 =    0.026466971148157                                                  BMIN258 =   0.0253636626988976                                                  BPA258  =     54.4151588419491                                                  BMAJ259 =    0.026466913090825                                                  BMIN259 =   0.0253636339728919                                                  BPA259  =     54.4156788969577                                                  BMAJ260 =   0.0264669094589475                                                  BMIN260 =   0.0253636362927416                                                  BPA260  =     54.4172066543988                                                  BMAJ261 =    0.026466873156117                                                  BMIN261 =   0.0253636365113145                                                  BPA261  =     54.4162675880996                                                  BMAJ262 =   0.0264669666081317                                                  BMIN262 =   0.0253635241709949                                                  BPA262  =     54.4202219720421                                                  BMAJ263 =   0.0264669401811438                                                  BMIN263 =   0.0253635299598065                                                  BPA263  =     54.4172781396273                                                  BMAJ264 =   0.0264669088305181                                                  BMIN264 =   0.0253634106708582                                                  BPA264  =     54.4137951253878                                                  BMAJ265 =   0.0264669182494246                                                  BMIN265 =   0.0253634455336633                                                  BPA265  =     54.4093062994918                                                  BMAJ266 =   0.0264669176740666                                                  BMIN266 =   0.0253634250362326                                                  BPA266  =     54.4081135315398                                                  BMAJ267 =   0.0264669242812016                                                  BMIN267 =   0.0253633849153568                                                  BPA267  =     54.4104077159565                                                  BMAJ268 =   0.0264669248578761                                                  BMIN268 =   0.0253633195525992                                                  BPA268  =     54.4092326038208                                                  BMAJ269 =   0.0264668669574297                                                  BMIN269 =   0.0253632761159585                                                  BPA269  =     54.4098934637069                                                  BMAJ270 =    0.026466828084379                                                  BMIN270 =   0.0253633055773547                                                  BPA270  =     54.4085376847232                                                  BMAJ271 =   0.0264667581125448                                                  BMIN271 =   0.0253633874354295                                                  BPA271  =     54.4109038033246                                                  BMAJ272 =   0.0264667015506269                                                  BMIN272 =   0.0253634075453836                                                  BPA272  =     54.4111166823801                                                  BMAJ273 =   0.0264667437742513                                                  BMIN273 =   0.0253632591046822                                                  BPA273  =     54.4098877953479                                                  BMAJ274 =   0.0264666613145063                                                  BMIN274 =   0.0253632097403011                                                  BPA274  =      54.408180510672                                                  BMAJ275 =   0.0264667746862757                                                  BMIN275 =   0.0253631236302786                                                  BPA275  =     54.4090297596084                                                  BMAJ276 =   0.0264668333740184                                                  BMIN276 =   0.0253631146371199                                                  BPA276  =     54.4064420009177                                                  BMAJ277 =   0.0264668297945901                                                  BMIN277 =   0.0253630591514206                                                  BPA277  =     54.4051122434127                                                  BMAJ278 =   0.0264668359061002                                                  BMIN278 =   0.0253630916282703                                                  BPA278  =     54.4026790744161                                                  BMAJ279 =   0.0264667604992033                                                  BMIN279 =   0.0253629399900555                                                  BPA279  =     54.4062707552928                                                  BMAJ280 =   0.0264667528046095                                                  BMIN280 =   0.0253628355557014                                                  BPA280  =     54.4055630645086                                                  BMAJ281 =   0.0264667290838704                                                  BMIN281 =   0.0253627489676856                                                  BPA281  =     54.4111756362161                                                  BMAJ282 =   0.0264667160642911                                                  BMIN282 =   0.0253627238398952                                                  BPA282  =     54.4143996863888                                                  BMAJ283 =    0.026466688732615                                                  BMIN283 =   0.0253627287202778                                                  BPA283  =     54.4170162289764                                                  BMAJ284 =   0.0264668442333424                                                  BMIN284 =    0.025362613448059                                                  BPA284  =     54.4143180252993                                                  BMAJ285 =    0.026466721515908                                                  BMIN285 =    0.025362589762873                                                  BPA285  =     54.4175945927992                                                  BMAJ286 =   0.0264667118864433                                                  BMIN286 =   0.0253626124882997                                                  BPA286  =     54.4201759917822                                                  BMAJ287 =   0.0264667296369054                                                  BMIN287 =   0.0253625207413065                                                  BPA287  =     54.4212401531732                                                  BMAJ288 =   0.0264667480679837                                                  BMIN288 =   0.0253625199729573                                                  BPA288  =     54.4209479044922                                                  BMAJ289 =   0.0264667254506331                                                  BMIN289 =   0.0253624036724243                                                  BPA289  =     54.4208877480296                                                  BMAJ290 =   0.0264667791469395                                                  BMIN290 =   0.0253624192393325                                                  BPA290  =     54.4252980798023                                                  BMAJ291 =   0.0264667613848062                                                  BMIN291 =   0.0253624259894632                                                  BPA291  =     54.4269633923253                                                  BMAJ292 =   0.0264667369390569                                                  BMIN292 =   0.0253624703177262                                                  BPA292  =     54.4276170965384                                                  BMAJ293 =   0.0264666611666369                                                  BMIN293 =   0.0253624666778091                                                  BPA293  =     54.4247328614609                                                  BMAJ294 =   0.0264667098725474                                                  BMIN294 =   0.0253624375730104                                                  BPA294  =     54.4239165534712                                                  BMAJ295 =   0.0264666776217581                                                  BMIN295 =   0.0253624385875848                                                  BPA295  =     54.4286763821706                                                  BMAJ296 =   0.0264666185984773                                                  BMIN296 =   0.0253624428020377                                                  BPA296  =     54.4284487777201                                                  BMAJ297 =   0.0264664358501396                                                  BMIN297 =   0.0253624150190246                                                  BPA297  =     54.4298622194451                                                  BMAJ298 =    0.026466117789699                                                  BMIN298 =   0.0253624463413448                                                  BPA298  =     54.4300899298292                                                  BMAJ299 =   0.0264661920832222                                                  BMIN299 =   0.0253623050791692                                                  BPA299  =     54.4261944066844                                                  BMAJ300 =   0.0264661632322695                                                  BMIN300 =   0.0253623371071508                                                  BPA300  =     54.4247920542758                                                  BMAJ301 =   0.0264667051095709                                                  BMIN301 =   0.0253623562974952                                                  BPA301  =     54.4211994320377                                                  BMAJ302 =   0.0264668128585708                                                  BMIN302 =   0.0253622426395914                                                  BPA302  =     54.4190310935832                                                  BMAJ303 =   0.0264668741336959                                                  BMIN303 =   0.0253621583008386                                                  BPA303  =      54.421349191896                                                  BMAJ304 =   0.0264668641503743                                                  BMIN304 =   0.0253621312262103                                                  BPA304  =      54.423191056946                                                  BMAJ305 =   0.0264667920425954                                                  BMIN305 =   0.0253621685078204                                                  BPA305  =     54.4262439911823                                                  BMAJ306 =    0.026466769264193                                                  BMIN306 =   0.0253622059966892                                                  BPA306  =     54.4259412460176                                                  BMAJ307 =   0.0264666726081048                                                  BMIN307 =   0.0253621911490644                                                  BPA307  =     54.4258321146622                                                  BMAJ308 =   0.0264666674564884                                                  BMIN308 =   0.0253621259208594                                                  BPA308  =     54.4255313091474                                                  BMAJ309 =    0.026466601592835                                                  BMIN309 =   0.0253620293115253                                                  BPA309  =     54.4210135180128                                                  BMAJ310 =   0.0264665621485308                                                  BMIN310 =   0.0253619680354955                                                  BPA310  =     54.4231927643435                                                  BMAJ311 =   0.0264666760145579                                                  BMIN311 =   0.0253620521136653                                                  BPA311  =     54.4265127179758                                                  BMAJ312 =   0.0264668211812605                                                  BMIN312 =     0.02536202178205                                                  BPA312  =      54.429289092576                                                  BMAJ313 =   0.0264667909370316                                                  BMIN313 =    0.025361907080598                                                  BPA313  =     54.4260406304343                                                  BMAJ314 =   0.0264666497211224                                                  BMIN314 =   0.0253617718309257                                                  BPA314  =     54.4252727762951                                                  BMAJ315 =   0.0264663634632322                                                  BMIN315 =   0.0253618904469481                                                  BPA315  =     54.4165187553201                                                  BMAJ316 =   0.0264663233094715                                                  BMIN316 =   0.0253619312605718                                                  BPA316  =     54.4212358204198                                                  BMAJ317 =   0.0264662985329574                                                  BMIN317 =   0.0253617261025425                                                  BPA317  =     54.4192021395365                                                  BMAJ318 =    0.026466529654569                                                  BMIN318 =   0.0253615971320037                                                  BPA318  =     54.4249554693123                                                  BMAJ319 =   0.0264666422883715                                                  BMIN319 =    0.025361422977744                                                  BPA319  =     54.4236049332329                                                  BMAJ320 =    0.026466631154919                                                  BMIN320 =   0.0253614238234076                                                  BPA320  =       54.41911924957                                                  BMAJ321 =   0.0264665750891528                                                  BMIN321 =   0.0253614915855065                                                  BPA321  =     54.4163011906167                                                  BMAJ322 =   0.0264666329681779                                                  BMIN322 =   0.0253615071391933                                                  BPA322  =     54.4203654683554                                                  BMAJ323 =   0.0264666464115354                                                  BMIN323 =   0.0253615088536567                                                  BPA323  =     54.4255529468591                                                  BMAJ324 =   0.0264667129432425                                                  BMIN324 =   0.0253612738736459                                                  BPA324  =     54.4324343697014                                                  BMAJ325 =   0.0264667205978326                                                  BMIN325 =   0.0253612355793013                                                  BPA325  =     54.4338610275633                                                  BMAJ326 =   0.0264667670811682                                                  BMIN326 =   0.0253610669855486                                                  BPA326  =     54.4354921561254                                                  BMAJ327 =   0.0264667388546941                                                  BMIN327 =   0.0253611014319462                                                  BPA327  =     54.4349908363831                                                  BMAJ328 =   0.0264667292699203                                                  BMIN328 =   0.0253610799578497                                                  BPA328  =     54.4331701759656                                                  BMAJ329 =   0.0264666531620921                                                  BMIN329 =   0.0253611572329338                                                  BPA329  =     54.4300272461175                                                  BMAJ330 =   0.0264665923608124                                                  BMIN330 =   0.0253611574535243                                                  BPA330  =     54.4323258190732                                                  BMAJ331 =   0.0264666262029186                                                  BMIN331 =   0.0253610939448689                                                  BPA331  =     54.4272191761837                                                  BMAJ332 =   0.0264665888564448                                                  BMIN332 =   0.0253610112499731                                                  BPA332  =      54.425712318663                                                  BMAJ333 =   0.0264667298346926                                                  BMIN333 =   0.0253608592599444                                                  BPA333  =     54.4252840539832                                                  BMAJ334 =   0.0264666821662823                                                  BMIN334 =   0.0253608485837224                                                  BPA334  =     54.4324003123542                                                  BMAJ335 =   0.0264666695464857                                                  BMIN335 =    0.025360749812786                                                  BPA335  =     54.4375620284792                                                  BMAJ336 =   0.0264666318449447                                                  BMIN336 =   0.0253606799994121                                                  BPA336  =     54.4384561110552                                                  BMAJ337 =   0.0264665788007084                                                  BMIN337 =   0.0253606024791792                                                  BPA337  =     54.4325883026654                                                  BMAJ338 =   0.0264666506483599                                                  BMIN338 =   0.0253605710506501                                                  BPA338  =     54.4320935194344                                                  BMAJ339 =   0.0264667130411995                                                  BMIN339 =   0.0253605364608377                                                  BPA339  =     54.4283621619746                                                  BMAJ340 =    0.026466704390424                                                  BMIN340 =   0.0253605474005406                                                  BPA340  =     54.4335215125739                                                  BMAJ341 =   0.0264667082966237                                                  BMIN341 =   0.0253605609757274                                                  BPA341  =     54.4331498436921                                                  BMAJ342 =   0.0264665778143981                                                  BMIN342 =   0.0253606092842726                                                  BPA342  =     54.4333258527823                                                  BMAJ343 =    0.026466605867266                                                  BMIN343 =   0.0253604864675961                                                  BPA343  =     54.4356573995587                                                  BMAJ344 =    0.026466473360281                                                  BMIN344 =   0.0253605562926727                                                  BPA344  =     54.4379142387139                                                  BMAJ345 =   0.0264665187337149                                                  BMIN345 =   0.0253605840036096                                                  BPA345  =     54.4381984854521                                                  BMAJ346 =   0.0264663883946396                                                  BMIN346 =   0.0253605476407406                                                  BPA346  =     54.4406651752469                                                  BMAJ347 =   0.0264664948126462                                                  BMIN347 =   0.0253604231379315                                                  BPA347  =      54.438615873834                                                  BMAJ348 =   0.0264664816801762                                                  BMIN348 =   0.0253602814500075                                                  BPA348  =     54.4351737031894                                                  BMAJ349 =   0.0264665454617506                                                  BMIN349 =   0.0253602667032368                                                  BPA349  =     54.4351157030919                                                  BMAJ350 =   0.0264664890692609                                                  BMIN350 =   0.0253603262879565                                                  BPA350  =     54.4302688406194                                                  BMAJ351 =   0.0264663810365124                                                  BMIN351 =   0.0253603491232867                                                  BPA351  =      54.431633898173                                                  BMAJ352 =   0.0264663182178394                                                  BMIN352 =    0.025360305873412                                                  BPA352  =     54.4262556933998                                                  BMAJ353 =   0.0264662488418777                                                  BMIN353 =     0.02536017596562                                                  BPA353  =     54.4348261578877                                                  BMAJ354 =   0.0264662227884947                                                  BMIN354 =   0.0253601455708371                                                  BPA354  =     54.4362767719873                                                  BMAJ355 =   0.0264662843660649                                                  BMIN355 =   0.0253601381690527                                                  BPA355  =     54.4383312425303                                                  BMAJ356 =   0.0264663903542903                                                  BMIN356 =   0.0253599761625552                                                  BPA356  =     54.4305280100414                                                  BMAJ357 =   0.0264663818165462                                                  BMIN357 =   0.0253598892099386                                                  BPA357  =     54.4324860351744                                                  BMAJ358 =   0.0264664721634736                                                  BMIN358 =   0.0253598674705266                                                  BPA358  =     54.4363715525985                                                  BMAJ359 =    0.026466359879776                                                  BMIN359 =   0.0253597808190415                                                  BPA359  =     54.4379801899135                                                  BMAJ360 =   0.0264662014207242                                                  BMIN360 =   0.0253598464294796                                                  BPA360  =     54.4400785809428                                                  BMAJ361 =    0.026466081906774                                                  BMIN361 =   0.0253599008925597                                                  BPA361  =      54.441763672258                                                  BMAJ362 =   0.0264661096872819                                                  BMIN362 =   0.0253599390663638                                                  BPA362  =     54.4368479282397                                                  BMAJ363 =   0.0264662547888365                                                  BMIN363 =   0.0253598627512172                                                  BPA363  =     54.4438068631844                                                  BMAJ364 =   0.0264662211560255                                                  BMIN364 =      0.0253597469872                                                  BPA364  =     54.4462817704551                                                  BMAJ365 =   0.0264662761245419                                                  BMIN365 =   0.0253596229101373                                                  BPA365  =     54.4496550764067                                                  BMAJ366 =   0.0264661415615967                                                  BMIN366 =   0.0253595443658212                                                  BPA366  =     54.4451412680333                                                  BMAJ367 =   0.0264661531939931                                                  BMIN367 =   0.0253595089617345                                                  BPA367  =     54.4456810359431                                                  BMAJ368 =   0.0264660884703514                                                  BMIN368 =   0.0253594420542644                                                  BPA368  =     54.4435630811163                                                  BMAJ369 =   0.0264660857789919                                                  BMIN369 =   0.0253595325698213                                                  BPA369  =     54.4427443250381                                                  BMAJ370 =   0.0264661235845437                                                  BMIN370 =   0.0253595587054131                                                  BPA370  =     54.4388091547306                                                  BMAJ371 =   0.0264660445858351                                                  BMIN371 =    0.025359577681729                                                  BPA371  =     54.4411784592161                                                  BMAJ372 =   0.0264661108243037                                                  BMIN372 =   0.0253594837956263                                                  BPA372  =      54.441153421879                                                  BMAJ373 =    0.026465998554095                                                  BMIN373 =   0.0253593620838826                                                  BPA373  =     54.4443784528769                                                  BMAJ374 =    0.026465908534236                                                  BMIN374 =   0.0253594087553132                                                  BPA374  =     54.4457561837227                                                  BMAJ375 =   0.0264657883193599                                                  BMIN375 =    0.025359304610214                                                  BPA375  =     54.4463717860725                                                  BMAJ376 =   0.0264658127146603                                                  BMIN376 =   0.0253593200264389                                                  BPA376  =     54.4449501108502                                                  BMAJ377 =   0.0264658725465612                                                  BMIN377 =    0.025359242148126                                                  BPA377  =     54.4433958049453                                                  BMAJ378 =   0.0264658853649911                                                  BMIN378 =   0.0253593505755086                                                  BPA378  =     54.4463335151273                                                  BMAJ379 =   0.0264658767393297                                                  BMIN379 =    0.025359399569209                                                  BPA379  =     54.4518558685724                                                  BMAJ380 =   0.0264658560331172                                                  BMIN380 =   0.0253594012689472                                                  BPA380  =      54.453737201392                                                  BMAJ381 =   0.0264659101470138                                                  BMIN381 =    0.025359243012042                                                  BPA381  =     54.4497344671691                                                  BMAJ382 =   0.0264658616685334                                                  BMIN382 =   0.0253591596808442                                                  BPA382  =     54.4465718325631                                                  BMAJ383 =   0.0264657189245866                                                  BMIN383 =   0.0253590897499364                                                  BPA383  =     54.4498102636338                                                  BMAJ384 =   0.0264656456508505                                                  BMIN384 =    0.025359167410743                                                  BPA384  =     54.4520030180329                                                  BMAJ385 =   0.0264657780748592                                                  BMIN385 =   0.0253591039109256                                                  BPA385  =     54.4522969204883                                                  BMAJ386 =   0.0264659871380864                                                  BMIN386 =   0.0253590990558375                                                  BPA386  =     54.4518324226628                                                  BMAJ387 =   0.0264659269620196                                                  BMIN387 =   0.0253591493398297                                                  BPA387  =     54.4452292962228                                                  BMAJ388 =    0.026465699563622                                                  BMIN388 =   0.0253591698270251                                                  BPA388  =     54.4436940362004                                                  BMAJ389 =   0.0264656347462637                                                  BMIN389 =   0.0253592821762078                                                  BPA389  =     54.4436590882868                                                  BMAJ390 =   0.0264656431859936                                                  BMIN390 =   0.0253591317490269                                                  BPA390  =      54.448578475989                                                  BMAJ391 =   0.0264657417291631                                                  BMIN391 =   0.0253589686922291                                                  BPA391  =     54.4497571948041                                                  BMAJ392 =   0.0264657200588444                                                  BMIN392 =   0.0253586346116933                                                  BPA392  =      54.450935242429                                                  BMAJ393 =   0.0264655868531086                                                  BMIN393 =   0.0253586164267678                                                  BPA393  =     54.4511696826567                                                  BMAJ394 =   0.0264656009855272                                                  BMIN394 =   0.0253586391243307                                                  BPA394  =     54.4487353099611                                                  BMAJ395 =   0.0264656798878814                                                  BMIN395 =   0.0253587583141993                                                  BPA395  =     54.4474592147033                                                  BMAJ396 =   0.0264655872987192                                                  BMIN396 =   0.0253588220420604                                                  BPA396  =     54.4447321556061                                                  BMAJ397 =   0.0264655364307095                                                  BMIN397 =   0.0253587782412056                                                  BPA397  =      54.448549208691                                                  BMAJ398 =   0.0264654914169742                                                  BMIN398 =   0.0253588359465079                                                  BPA398  =     54.4449338820067                                                  BMAJ399 =   0.0264654151842029                                                  BMIN399 =   0.0253587403785099                                                  BPA399  =     54.4432830560239                                                  BMAJ400 =   0.0264654488204287                                                  BMIN400 =   0.0253587198250684                                                  BPA400  =     54.4376045240304                                                  BMAJ401 =   0.0264653381696924                                                  BMIN401 =    0.025358432906779                                                  BPA401  =     54.4383023490867                                                  BMAJ402 =   0.0264652617681771                                                  BMIN402 =   0.0253583695987138                                                  BPA402  =     54.4429583872128                                                  BMAJ403 =   0.0264651028070733                                                  BMIN403 =   0.0253583687605489                                                  BPA403  =     54.4481530602736                                                  BMAJ404 =   0.0264649926221211                                                  BMIN404 =   0.0253583467562028                                                  BPA404  =     54.4489930107305                                                  BMAJ405 =     0.02646516002026                                                  BMIN405 =    0.025358327022909                                                  BPA405  =      54.446569427634                                                  BMAJ406 =   0.0264650986308994                                                  BMIN406 =   0.0253582885457758                                                  BPA406  =     54.4484982678652                                                  BMAJ407 =   0.0264650305032468                                                  BMIN407 =   0.0253581328879632                                                  BPA407  =     54.4537514076099                                                  BMAJ408 =   0.0264649288081286                                                  BMIN408 =   0.0253580923031361                                                  BPA408  =     54.4579662043899                                                  BMAJ409 =   0.0264648683094873                                                  BMIN409 =   0.0253581525793035                                                  BPA409  =     54.4573993832407                                                  BMAJ410 =    0.026464890817698                                                  BMIN410 =   0.0253582746099326                                                  BPA410  =     54.4541424486274                                                  BMAJ411 =   0.0264648035472559                                                  BMIN411 =   0.0253583525061725                                                  BPA411  =     54.4539122680081                                                  BMAJ412 =   0.0264648420013266                                                  BMIN412 =   0.0253583208803857                                                  BPA412  =     54.4542437022404                                                  BMAJ413 =   0.0264649506054813                                                  BMIN413 =   0.0253582162578228                                                  BPA413  =      54.452309991435                                                  BMAJ414 =   0.0264651147144885                                                  BMIN414 =   0.0253581214227154                                                  BPA414  =     54.4509529769835                                                  BMAJ415 =    0.026465224521612                                                  BMIN415 =   0.0253580574378572                                                  BPA415  =     54.4475657573531                                                  BMAJ416 =   0.0264650430033819                                                  BMIN416 =    0.025358048294361                                                  BPA416  =      54.447437750786                                                  BMAJ417 =   0.0264647640892334                                                  BMIN417 =    0.025358065249026                                                  BPA417  =     54.4442374483754                                                  BMAJ418 =   0.0264645094185344                                                  BMIN418 =   0.0253581029067194                                                  BPA418  =     54.4444299691474                                                  BMAJ419 =   0.0264644373676137                                                  BMIN419 =   0.0253581326061281                                                  BPA419  =     54.4447363252752                                                  BMAJ420 =   0.0264645538942683                                                  BMIN420 =   0.0253580316980962                                                  BPA420  =     54.4411297701255                                                  BMAJ421 =   0.0264646798867282                                                  BMIN421 =   0.0253579585417558                                                  BPA421  =     54.4419220380646                                                  BMAJ422 =   0.0264647537619292                                                  BMIN422 =   0.0253579272150068                                                  BPA422  =     54.4381305701407                                                  BMAJ423 =   0.0264647345297856                                                  BMIN423 =   0.0253578367590412                                                  BPA423  =     54.4404159090809                                                  BMAJ424 =   0.0264646575702535                                                  BMIN424 =   0.0253580107233465                                                  BPA424  =     54.4422898425892                                                  BMAJ425 =   0.0264646541183704                                                  BMIN425 =   0.0253580802124081                                                  BPA425  =     54.4438335048984                                                  BMAJ426 =   0.0264645159257309                                                  BMIN426 =   0.0253581084858522                                                  BPA426  =     54.4409022912806                                                  BMAJ427 =   0.0264644547749863                                                  BMIN427 =   0.0253580690888045                                                  BPA427  =     54.4391679482383                                                  BMAJ428 =   0.0264643489329239                                                  BMIN428 =   0.0253580370356334                                                  BPA428  =     54.4384758184159                                                  BMAJ429 =    0.026464312754277                                                  BMIN429 =   0.0253580561591572                                                  BPA429  =     54.4431976772123                                                  BMAJ430 =   0.0264643245583008                                                  BMIN430 =   0.0253580976281311                                                  BPA430  =     54.4407876142971                                                  BMAJ431 =   0.0264642563879574                                                  BMIN431 =   0.0253580562865774                                                  BPA431  =     54.4400662207906                                                  BMAJ432 =   0.0264640861623178                                                  BMIN432 =   0.0253580205983418                                                  BPA432  =     54.4416128898721                                                  BMAJ433 =   0.0264640994738887                                                  BMIN433 =   0.0253579882134231                                                  BPA433  =     54.4406228706006                                                  BMAJ434 =   0.0264641203400428                                                  BMIN434 =   0.0253579937938163                                                  BPA434  =     54.4426865807756                                                  BMAJ435 =   0.0264641967616239                                                  BMIN435 =   0.0253579492503817                                                  BPA435  =     54.4399485481279                                                  BMAJ436 =   0.0264639670982681                                                  BMIN436 =    0.025358015031204                                                  BPA436  =     54.4426859103955                                                  BMAJ437 =   0.0264638504411382                                                  BMIN437 =   0.0253578925040625                                                  BPA437  =     54.4446261402445                                                  BMAJ438 =   0.0264638220676522                                                  BMIN438 =   0.0253579569118127                                                  BPA438  =     54.4446956724316                                                  BMAJ439 =   0.0264639706285375                                                  BMIN439 =   0.0253579306497829                                                  BPA439  =     54.4467351399687                                                  BMAJ440 =   0.0264639758230815                                                  BMIN440 =   0.0253579008820114                                                  BPA440  =     54.4442719260642                                                  BMAJ441 =   0.0264638909861885                                                  BMIN441 =   0.0253578205991653                                                  BPA441  =     54.4439964312439                                                  BMAJ442 =    0.026463921585733                                                  BMIN442 =   0.0253576038584174                                                  BPA442  =     54.4399468653267                                                  BMAJ443 =   0.0264639043866525                                                  BMIN443 =   0.0253576612491817                                                  BPA443  =     54.4384980794326                                                  BMAJ444 =   0.0264638503914528                                                  BMIN444 =   0.0253576219497497                                                  BPA444  =       54.43768716417                                                  BMAJ445 =    0.026463820980715                                                  BMIN445 =   0.0253575857611717                                                  BPA445  =     54.4416599329799                                                  BMAJ446 =   0.0264638040700569                                                  BMIN446 =   0.0253575671391204                                                  BPA446  =     54.4405494946533                                                  BMAJ447 =     0.02646385169956                                                  BMIN447 =   0.0253575825871731                                                  BPA447  =     54.4393744584847                                                  BMAJ448 =   0.0264637408888211                                                  BMIN448 =    0.025357636438837                                                  BPA448  =     54.4410884015181                                                  BMAJ449 =   0.0264636672659362                                                  BMIN449 =   0.0253574461841798                                                  BPA449  =     54.4445544294445                                                  BMAJ450 =   0.0264636152739002                                                  BMIN450 =   0.0253573358802668                                                  BPA450  =      54.441074944996                                                  BMAJ451 =   0.0264637154912809                                                  BMIN451 =   0.0253572103221669                                                  BPA451  =     54.4409468575166                                                  BMAJ452 =   0.0264636516315308                                                  BMIN452 =   0.0253570871363006                                                  BPA452  =     54.4382687756867                                                  BMAJ453 =    0.026463687657011                                                  BMIN453 =   0.0253571236340678                                                  BPA453  =     54.4401396403373                                                  BMAJ454 =   0.0264636461493554                                                  BMIN454 =    0.025357164276553                                                  BPA454  =     54.4397459138711                                                  BMAJ455 =   0.0264636209021425                                                  BMIN455 =   0.0253571312494129                                                  BPA455  =     54.4379784516562                                                  BMAJ456 =   0.0264635284592663                                                  BMIN456 =   0.0253570672012423                                                  BPA456  =     54.4361808861306                                                  BMAJ457 =   0.0264633981100409                                                  BMIN457 =   0.0253571040794951                                                  BPA457  =     54.4386357223071                                                  BMAJ458 =   0.0264634377000425                                                  BMIN458 =   0.0253570621115123                                                  BPA458  =     54.4431473196889                                                  BMAJ459 =   0.0264634641589177                                                  BMIN459 =   0.0253569794153711                                                  BPA459  =     54.4446402982504                                                  BMAJ460 =   0.0264635212080351                                                  BMIN460 =   0.0253568676294656                                                  BPA460  =     54.4448684968535                                                  BMAJ461 =   0.0264634321601456                                                  BMIN461 =   0.0253568375711121                                                  BPA461  =     54.4437676314044                                                  BMAJ462 =   0.0264634807722647                                                  BMIN462 =   0.0253568864140727                                                  BPA462  =     54.4406553169292                                                  BMAJ463 =   0.0264634568185761                                                  BMIN463 =   0.0253569397796837                                                  BPA463  =     54.4379680875708                                                  BMAJ464 =   0.0264633858515957                                                  BMIN464 =   0.0253570042425308                                                  BPA464  =     54.4389922615183                                                  BMAJ465 =   0.0264633247078752                                                  BMIN465 =    0.025356945017125                                                  BPA465  =     54.4399590491176                                                  BMAJ466 =    0.026463325208197                                                  BMIN466 =   0.0253569001934209                                                  BPA466  =      54.441649682176                                                  BMAJ467 =   0.0264633298399494                                                  BMIN467 =   0.0253569115545166                                                  BPA467  =     54.4410522416264                                                  BMAJ468 =   0.0264633225689564                                                  BMIN468 =   0.0253568411790258                                                  BPA468  =     54.4395413656129                                                  BMAJ469 =   0.0264632729946029                                                  BMIN469 =   0.0253567771807829                                                  BPA469  =     54.4417393151226                                                  BMAJ470 =   0.0264632139504823                                                  BMIN470 =   0.0253566442974001                                                  BPA470  =     54.4407448903257                                                  BMAJ471 =   0.0264632464624409                                                  BMIN471 =   0.0253565804904246                                                  BPA471  =     54.4415017009845                                                  BMAJ472 =   0.0264632615782319                                                  BMIN472 =   0.0253566731895174                                                  BPA472  =     54.4377890551877                                                  BMAJ473 =   0.0264632511167842                                                  BMIN473 =   0.0253567363623007                                                  BPA473  =     54.4363994189606                                                  BMAJ474 =    0.026463085412502                                                  BMIN474 =   0.0253566801615049                                                  BPA474  =     54.4388999916455                                                  BMAJ475 =   0.0264630188672533                                                  BMIN475 =   0.0253565259063197                                                  BPA475  =     54.4402556928814                                                  BMAJ476 =   0.0264628436076719                                                  BMIN476 =   0.0253565010858951                                                  BPA476  =     54.4410036798727                                                  BMAJ477 =   0.0264627821061021                                                  BMIN477 =   0.0253565511952857                                                  BPA477  =     54.4414886109098                                                  BMAJ478 =   0.0264627323186102                                                  BMIN478 =   0.0253566156959779                                                  BPA478  =      54.444482269388                                                  BMAJ479 =   0.0264627594270915                                                  BMIN479 =   0.0253565471153618                                                  BPA479  =     54.4507463249621                                                  BMAJ480 =   0.0264627048744405                                                  BMIN480 =   0.0253564961888133                                                  BPA480  =      54.448486103249                                                  BMAJ481 =   0.0264626643064564                                                  BMIN481 =   0.0253564110039649                                                  BPA481  =     54.4483668284947                                                  BMAJ482 =   0.0264626961611187                                                  BMIN482 =   0.0253565368756568                                                  BPA482  =     54.4399946654011                                                  BMAJ483 =   0.0264626144576276                                                  BMIN483 =   0.0253566225430047                                                  BPA483  =       54.44207525979                                                  BMAJ484 =   0.0264627201890194                                                  BMIN484 =    0.025356587074313                                                  BPA484  =     54.4403106347227                                                  BMAJ485 =   0.0264627003130267                                                  BMIN485 =    0.025356454226242                                                  BPA485  =     54.4458706649198                                                  BMAJ486 =   0.0264626755410908                                                  BMIN486 =   0.0253563633948962                                                  BPA486  =     54.4425336134332                                                  BMAJ487 =   0.0264625211360174                                                  BMIN487 =   0.0253562640004851                                                  BPA487  =     54.4442327907963                                                  BMAJ488 =   0.0264625591312999                                                  BMIN488 =   0.0253561136309167                                                  BPA488  =     54.4423636642625                                                  BMAJ489 =   0.0264624948185919                                                  BMIN489 =   0.0253560247451767                                                  BPA489  =     54.4424812951916                                                  BMAJ490 =   0.0264624307965489                                                  BMIN490 =   0.0253560609881055                                                  BPA490  =     54.4441104961523                                                  BMAJ491 =   0.0264623676511034                                                  BMIN491 =   0.0253561310165528                                                  BPA491  =     54.4445408076888                                                  BMAJ492 =    0.026462362136479                                                  BMIN492 =   0.0253560864187853                                                  BPA492  =     54.4446052717947                                                  BMAJ493 =    0.026462421578194                                                  BMIN493 =   0.0253560711236655                                                  BPA493  =     54.4436850666077                                                  BMAJ494 =   0.0264624393639211                                                  BMIN494 =   0.0253560109725863                                                  BPA494  =     54.4448269080091                                                  BMAJ495 =   0.0264623248330717                                                  BMIN495 =   0.0253559598139665                                                  BPA495  =     54.4452235862832                                                  BMAJ496 =   0.0264623075526105                                                  BMIN496 =   0.0253558614226976                                                  BPA496  =     54.4455459695659                                                  BMAJ497 =   0.0264622752044767                                                  BMIN497 =   0.0253558919907457                                                  BPA497  =     54.4475404151126                                                  BMAJ498 =   0.0264623760105433                                                  BMIN498 =   0.0253559237517831                                                  BPA498  =     54.4483671661126                                                  BMAJ499 =   0.0264624497598377                                                  BMIN499 =   0.0253560145863553                                                  BPA499  =     54.4455211707112                                                  BMAJ500 =   0.0264624287895189                                                  BMIN500 =   0.0253558583943097                                                  BPA500  =     54.4450772057024                                                  BMAJ501 =   0.0264623930608226                                                  BMIN501 =     0.02535572316394                                                  BPA501  =     54.4416555748588                                                  BMAJ502 =   0.0264622475890384                                                  BMIN502 =   0.0253557354725767                                                  BPA502  =     54.4449747499003                                                  BMAJ503 =   0.0264622408828069                                                  BMIN503 =   0.0253556940135426                                                  BPA503  =     54.4404706714168                                                  BMAJ504 =   0.0264621339300986                                                  BMIN504 =   0.0253557758609737                                                  BPA504  =     54.4446397335481                                                  BMAJ505 =   0.0264622526727961                                                  BMIN505 =   0.0253556945472358                                                  BPA505  =     54.4423561510693                                                  BMAJ506 =   0.0264622694287019                                                  BMIN506 =   0.0253557028733993                                                  BPA506  =     54.4503334482812                                                  BMAJ507 =   0.0264623014490676                                                  BMIN507 =   0.0253555323226058                                                  BPA507  =     54.4452739311841                                                  BMAJ508 =   0.0264621934025949                                                  BMIN508 =   0.0253555680122034                                                  BPA508  =     54.4464490355529                                                  BMAJ509 =   0.0264621201650786                                                  BMIN509 =   0.0253555934310998                                                  BPA509  =      54.441897661921                                                  BMAJ510 =   0.0264620172914806                                                  BMIN510 =    0.025355514917055                                                  BPA510  =     54.4447760961919                                                  BMAJ511 =   0.0264618837222042                                                  BMIN511 =   0.0253553842784231                                                  BPA511  =     54.4430328867044                                                  BMAJ512 =   0.0264618736500835                                                  BMIN512 =   0.0253553145138928                                                  BPA512  =     54.4437442018088                                                  BMAJ513 =   0.0264618651802817                                                  BMIN513 =   0.0253552925157914                                                  BPA513  =     54.4426121516185                                                  BMAJ514 =   0.0264619440427663                                                  BMIN514 =   0.0253553344481075                                                  BPA514  =     54.4439505884278                                                  BMAJ515 =   0.0264616164335389                                                  BMIN515 =   0.0253553757553767                                                  BPA515  =      54.446795998479                                                  BMAJ516 =   0.0264615955343609                                                  BMIN516 =   0.0253552553472426                                                  BPA516  =     54.4498058412453                                                  BMAJ517 =   0.0264616828506725                                                  BMIN517 =   0.0253551811630764                                                  BPA517  =     54.4461864101111                                                  BMAJ518 =   0.0264618718461963                                                  BMIN518 =   0.0253551846014415                                                  BPA518  =     54.4463210453102                                                  BMAJ519 =   0.0264618825742428                                                  BMIN519 =   0.0253553066424798                                                  BPA519  =     54.4449655202048                                                  BMAJ520 =   0.0264617534827535                                                  BMIN520 =   0.0253553349565427                                                  BPA520  =     54.4475770111593                                                  BMAJ521 =   0.0264617451206227                                                  BMIN521 =   0.0253552944449383                                                  BPA521  =     54.4426370022948                                                  BMAJ522 =   0.0264616899225856                                                  BMIN522 =   0.0253552456681919                                                  BPA522  =     54.4457871376233                                                  BMAJ523 =   0.0264616605896081                                                  BMIN523 =   0.0253552568207588                                                  BPA523  =     54.4458055580074                                                  BMAJ524 =   0.0264615584973014                                                  BMIN524 =   0.0253551892757781                                                  BPA524  =     54.4491634789335                                                  BMAJ525 =   0.0264615279078253                                                  BMIN525 =   0.0253551593240206                                                  BPA525  =      54.446642525673                                                  BMAJ526 =   0.0264615340624555                                                  BMIN526 =   0.0253550815095637                                                  BPA526  =     54.4449242254415                                                  BMAJ527 =   0.0264615557700501                                                  BMIN527 =   0.0253550633702509                                                  BPA527  =     54.4453248449245                                                  BMAJ528 =   0.0264615126491002                                                  BMIN528 =   0.0253550157132571                                                  BPA528  =     54.4490275570573                                                  BMAJ529 =   0.0264614283639025                                                  BMIN529 =   0.0253550036336554                                                  BPA529  =     54.4527888213887                                                  BMAJ530 =   0.0264614027134724                                                  BMIN530 =   0.0253548185688112                                                  BPA530  =      54.457882285502                                                  BMAJ531 =   0.0264614161953942                                                  BMIN531 =   0.0253546617791903                                                  BPA531  =     54.4600235848947                                                  BMAJ532 =   0.0264615802110689                                                  BMIN532 =   0.0253546384370907                                                  BPA532  =     54.4590888447439                                                  BMAJ533 =   0.0264614798058224                                                  BMIN533 =   0.0253547098609241                                                  BPA533  =     54.4628020614962                                                  BMAJ534 =   0.0264613219494341                                                  BMIN534 =   0.0253548524547373                                                  BPA534  =     54.4625591493709                                                  BMAJ535 =   0.0264612138712072                                                  BMIN535 =   0.0253548717482799                                                  BPA535  =      54.460654353288                                                  BMAJ536 =   0.0264611182583576                                                  BMIN536 =    0.025354818072215                                                  BPA536  =     54.4608920764047                                                  BMAJ537 =   0.0264612355270082                                                  BMIN537 =   0.0253547012850514                                                  BPA537  =      54.460713334731                                                  BMAJ538 =   0.0264613720350676                                                  BMIN538 =   0.0253545818685869                                                  BPA538  =     54.4596989854465                                                  BMAJ539 =   0.0264614245630274                                                  BMIN539 =   0.0253545173672727                                                  BPA539  =     54.4624887888937                                                  BMAJ540 =   0.0264614266455264                                                  BMIN540 =   0.0253544042826227                                                  BPA540  =     54.4582449460355                                                  BMAJ541 =   0.0264613365698569                                                  BMIN541 =   0.0253545761327234                                                  BPA541  =     54.4577699630701                                                  BMAJ542 =   0.0264613485568013                                                  BMIN542 =   0.0253544514959602                                                  BPA542  =     54.4520316873628                                                  BMAJ543 =   0.0264613616313465                                                  BMIN543 =   0.0253545145122323                                                  BPA543  =     54.4521427428302                                                  BMAJ544 =   0.0264613921770464                                                  BMIN544 =   0.0253543663322247                                                  BPA544  =     54.4561324258531                                                  BMAJ545 =   0.0264613364479566                                                  BMIN545 =   0.0253543729267061                                                  BPA545  =     54.4604952186246                                                  BMAJ546 =   0.0264613730585499                                                  BMIN546 =   0.0253544007470806                                                  BPA546  =     54.4593210728914                                                  BMAJ547 =   0.0264613416793293                                                  BMIN547 =   0.0253544254307137                                                  BPA547  =     54.4607497588715                                                  BMAJ548 =   0.0264612119620136                                                  BMIN548 =   0.0253543601546808                                                  BPA548  =     54.4601739224326                                                  BMAJ549 =   0.0264611077575498                                                  BMIN549 =   0.0253542895857846                                                  BPA549  =     54.4623017723923                                                  BMAJ550 =   0.0264610606782437                                                  BMIN550 =   0.0253542019512427                                                  BPA550  =     54.4626178911651                                                  BMAJ551 =   0.0264610104224798                                                  BMIN551 =   0.0253541250041336                                                  BPA551  =     54.4639114979408                                                  BMAJ552 =   0.0264610327011437                                                  BMIN552 =   0.0253540694105141                                                  BPA552  =     54.4662091496296                                                  BMAJ553 =   0.0264609571909418                                                  BMIN553 =   0.0253539797004173                                                  BPA553  =     54.4639007041927                                                  BMAJ554 =   0.0264610051233255                                                  BMIN554 =   0.0253538234701608                                                  BPA554  =     54.4673602358474                                                  BMAJ555 =   0.0264608837639175                                                  BMIN555 =   0.0253538710136394                                                  BPA555  =      54.463638770702                                                  BMAJ556 =   0.0264607806927219                                                  BMIN556 =   0.0253539338059618                                                  BPA556  =     54.4644270469049                                                  BMAJ557 =    0.026460773866872                                                  BMIN557 =   0.0253538641723161                                                  BPA557  =     54.4626893702195                                                  BMAJ558 =    0.026460768205132                                                  BMIN558 =   0.0253538370299564                                                  BPA558  =     54.4607835470509                                                  BMAJ559 =   0.0264609120442023                                                  BMIN559 =   0.0253536954117695                                                  BPA559  =     54.4622474549774                                                  BMAJ560 =   0.0264609174254745                                                  BMIN560 =   0.0253536552124013                                                  BPA560  =     54.4644660409638                                                  BMAJ561 =   0.0264607974388115                                                  BMIN561 =   0.0253535014861898                                                  BPA561  =     54.4697602395533                                                  BMAJ562 =   0.0264607486592744                                                  BMIN562 =    0.025353445515934                                                  BPA562  =     54.4680749086632                                                  BMAJ563 =     0.02646080999792                                                  BMIN563 =   0.0253535060278714                                                  BPA563  =     54.4687836414831                                                  BMAJ564 =    0.026460754384989                                                  BMIN564 =   0.0253535192408724                                                  BPA564  =     54.4713815081375                                                  BMAJ565 =   0.0264608653239375                                                  BMIN565 =   0.0253535246458645                                                  BPA565  =     54.4767803668073                                                  BMAJ566 =    0.026460877840351                                                  BMIN566 =   0.0253534066986733                                                  BPA566  =     54.4821669993531                                                  BMAJ567 =   0.0264608593913434                                                  BMIN567 =   0.0253533597155407                                                  BPA567  =     54.4835122616397                                                  BMAJ568 =   0.0264609945473098                                                  BMIN568 =   0.0253531016307403                                                  BPA568  =      54.476127045623                                                  BMAJ569 =   0.0264609196168206                                                  BMIN569 =   0.0253530064868657                                                  BPA569  =       54.47849385722                                                  BMAJ570 =   0.0264609610109663                                                  BMIN570 =   0.0253529331236319                                                  BPA570  =     54.4775021445175                                                  BMAJ571 =   0.0264608519789602                                                  BMIN571 =   0.0253529787568275                                                  BPA571  =     54.4867200853597                                                  BMAJ572 =   0.0264609478752564                                                  BMIN572 =   0.0253529102940071                                                  BPA572  =     54.4859877569159                                                  BMAJ573 =     0.02646087791094                                                  BMIN573 =   0.0253528309723766                                                  BPA573  =     54.4927891184509                                                  BMAJ574 =   0.0264609201870122                                                  BMIN574 =   0.0253527037844341                                                  BPA574  =      54.497151012199                                                  BMAJ575 =   0.0264609526019476                                                  BMIN575 =   0.0253526530523614                                                  BPA575  =     54.4987702967452                                                  BMAJ576 =    0.026460907166108                                                  BMIN576 =   0.0253525590303927                                                  BPA576  =     54.4968610080939                                                  BMAJ577 =    0.026460829723678                                                  BMIN577 =    0.025352459872582                                                  BPA577  =     54.4916211477628                                                  BMAJ578 =   0.0264608120799757                                                  BMIN578 =   0.0253524547591085                                                  BPA578  =     54.4939604387392                                                  BMAJ579 =   0.0264608415962212                                                  BMIN579 =   0.0253524462598943                                                  BPA579  =     54.4923258910651                                                  BMAJ580 =   0.0264607808909733                                                  BMIN580 =   0.0253523493621454                                                  BPA580  =      54.493899601969                                                  BMAJ581 =   0.0264607631940184                                                  BMIN581 =   0.0253524010027424                                                  BPA581  =     54.4922323631231                                                  BMAJ582 =    0.026460724957741                                                  BMIN582 =   0.0253523391666392                                                  BPA582  =     54.4940806560553                                                  BMAJ583 =   0.0264606984581931                                                  BMIN583 =   0.0253523074969387                                                  BPA583  =     54.4954616314831                                                  BMAJ584 =    0.026460693615093                                                  BMIN584 =   0.0253521697124152                                                  BPA584  =     54.4953637356129                                                  BMAJ585 =   0.0264606702405647                                                  BMIN585 =   0.0253520767118192                                                  BPA585  =      54.499749136045                                                  BMAJ586 =   0.0264607876511261                                                  BMIN586 =    0.025351979097654                                                  BPA586  =     54.5014574939494                                                  BMAJ587 =   0.0264607492096597                                                  BMIN587 =   0.0253519577976839                                                  BPA587  =     54.5006827037246                                                  BMAJ588 =   0.0264608021380606                                                  BMIN588 =   0.0253518359228547                                                  BPA588  =     54.4981797232894                                                  BMAJ589 =    0.026460646915497                                                  BMIN589 =   0.0253518428672138                                                  BPA589  =     54.5001395278643                                                  BMAJ590 =    0.026460601687678                                                  BMIN590 =    0.025351759302398                                                  BPA590  =     54.5029574463576                                                  BMAJ591 =   0.0264606612868369                                                  BMIN591 =   0.0253516985191827                                                  BPA591  =     54.5073335362084                                                  BMAJ592 =   0.0264605754551093                                                  BMIN592 =   0.0253516427537311                                                  BPA592  =     54.5066571941634                                                  BMAJ593 =   0.0264605496355506                                                  BMIN593 =   0.0253515807187236                                                  BPA593  =     54.5039971632421                                                  BMAJ594 =   0.0264605187966927                                                  BMIN594 =   0.0253515719215629                                                  BPA594  =     54.5039119117136                                                  BMAJ595 =    0.026460556941161                                                  BMIN595 =   0.0253515957488086                                                  BPA595  =     54.5035597912553                                                  BMAJ596 =   0.0264604930832431                                                  BMIN596 =   0.0253516358442418                                                  BPA596  =     54.5063138313969                                                  BMAJ597 =    0.026460627085793                                                  BMIN597 =   0.0253515321124716                                                  BPA597  =     54.5071399430114                                                  BMAJ598 =   0.0264605489788689                                                  BMIN598 =   0.0253515190824067                                                  BPA598  =     54.5086512037218                                                  BMAJ599 =   0.0264606374394136                                                  BMIN599 =   0.0253514390720408                                                  BPA599  =     54.5088010139408                                                  BMAJ600 =   0.0264606805798592                                                  BMIN600 =   0.0253512978215046                                                  BPA600  =     54.5067886396654                                                  BMAJ601 =   0.0264607507639654                                                  BMIN601 =   0.0253512335940772                                                  BPA601  =     54.5070759656997                                                  BMAJ602 =   0.0264607181663385                                                  BMIN602 =   0.0253512141684999                                                  BPA602  =      54.512024472575                                                  BMAJ603 =   0.0264607690349617                                                  BMIN603 =   0.0253512194960271                                                  BPA603  =     54.5220045030621                                                  BMAJ604 =   0.0264606261289827                                                  BMIN604 =   0.0253511696500257                                                  BPA604  =     54.5266430842372                                                  BMAJ605 =   0.0264606450098699                                                  BMIN605 =   0.0253509363667781                                                  BPA605  =     54.5250978703135                                                  BMAJ606 =   0.0264607205137169                                                  BMIN606 =   0.0253507713511481                                                  BPA606  =     54.5151887546333                                                  BMAJ607 =   0.0264608059080453                                                  BMIN607 =   0.0253507064298427                                                  BPA607  =     54.5069069007913                                                  BMAJ608 =   0.0264607736307371                                                  BMIN608 =   0.0253506654151583                                                  BPA608  =     54.5057495692087                                                  BMAJ609 =   0.0264605800005284                                                  BMIN609 =   0.0253508433097853                                                  BPA609  =     54.5084412413655                                                  BMAJ610 =   0.0264604683733839                                                  BMIN610 =    0.025350949310255                                                  BPA610  =     54.5095468382148                                                  BMAJ611 =   0.0264601155292276                                                  BMIN611 =   0.0253510852198264                                                  BPA611  =     54.5110979172782                                                  BMAJ612 =   0.0264601494197966                                                  BMIN612 =   0.0253509812182842                                                  BPA612  =     54.5136179053699                                                  BMAJ613 =   0.0264601606868716                                                  BMIN613 =   0.0253507034962499                                                  BPA613  =     54.5180665743184                                                  BMAJ614 =    0.026460512920626                                                  BMIN614 =    0.025350526224137                                                  BPA614  =     54.5168780736794                                                  BMAJ615 =   0.0264606210571242                                                  BMIN615 =   0.0253503296733389                                                  BPA615  =     54.5197218185748                                                  BMAJ616 =   0.0264605357119258                                                  BMIN616 =   0.0253505038155561                                                  BPA616  =     54.5182093271028                                                  BMAJ617 =   0.0264604345197722                                                  BMIN617 =   0.0253504435323142                                                  BPA617  =     54.5227961566073                                                  BMAJ618 =     0.02646041264647                                                  BMIN618 =   0.0253504195454871                                                  BPA618  =     54.5250185824495                                                  BMAJ619 =     0.02646038678441                                                  BMIN619 =   0.0253503733099796                                                  BPA619  =     54.5286893152142                                                  BMAJ620 =   0.0264604813356402                                                  BMIN620 =   0.0253503571465691                                                  BPA620  =     54.5321949120574                                                  BMAJ621 =   0.0264604457771413                                                  BMIN621 =   0.0253504405554331                                                  BPA621  =     54.5338186193101                                                  BMAJ622 =   0.0264603929330233                                                  BMIN622 =   0.0253503953892782                                                  BPA622  =     54.5290420201036                                                  BMAJ623 =   0.0264605073414611                                                  BMIN623 =   0.0253503209966452                                                  BPA623  =     54.5387698127669                                                  BMAJ624 =   0.0264629963389623                                                  BMIN624 =    0.025386275441589                                                  BPA624  =     58.3162704704913                                                  BMAJ625 =   0.0264629763758948                                                  BMIN625 =   0.0253861978893481                                                  BPA625  =     58.3175049041258                                                  BMAJ626 =   0.0264630172921815                                                  BMIN626 =    0.025386142640256                                                  BPA626  =     58.3138917703158                                                  BMAJ627 =   0.0264629059416844                                                  BMIN627 =   0.0253861647436461                                                  BPA627  =     58.3176232985271                                                  BMAJ628 =   0.0264626943209345                                                  BMIN628 =   0.0253865994816036                                                  BPA628  =     58.3240310664416                                                  BMAJ629 =   0.0264631381492453                                                  BMIN629 =   0.0253861433951482                                                  BPA629  =     58.3714867126603                                                  BMAJ630 =   0.0264894285709711                                                  BMIN630 =   0.0253517672998542                                                  BPA630  =     62.0290228505317                                                  BMAJ631 =   0.0264896657142323                                                  BMIN631 =   0.0253512183197142                                                  BPA631  =       62.01822666184                                                  BMAJ632 =   0.0264897296350901                                                  BMIN632 =   0.0253509212021795                                                  BPA632  =     62.0127260518948                                                  BMAJ633 =   0.0264894689299229                                                  BMIN633 =   0.0253509680846024                                                  BPA633  =      61.998801091918                                                  BMAJ634 =   0.0264678379102898                                                  BMIN634 =   0.0253536512900667                                                  BPA634  =     61.7205573730434                                                  BMAJ635 =   0.0264678982050028                                                  BMIN635 =   0.0253536609985856                                                  BPA635  =     61.7187664022674                                                  BMAJ636 =   0.0264674560882376                                                  BMIN636 =   0.0253532156834821                                                  BPA636  =     61.7130431022738                                                  BMAJ637 =   0.0263687359602012                                                  BMIN637 =   0.0252855520401825                                                  BPA637  =     62.4203073394292                                                  BMAJ638 =   0.0263688947937951                                                  BMIN638 =   0.0252855962314804                                                  BPA638  =      62.425714444336                                                  BMAJ639 =   0.0263690860921886                                                  BMIN639 =   0.0252856155210196                                                  BPA639  =     62.4264845841541                                                  BMAJ640 =    0.026421723516017                                                  BMIN640 =   0.0252852455938833                                                  BPA640  =    64.33205374140969                                                  BMAJ641 =    0.026585145741242                                                  BMIN641 =   0.0252001170563208                                                  BPA641  =     69.3909888083495                                                  BMAJ642 =   0.0264839544530169                                                  BMIN642 =   0.0252557709198553                                                  BPA642  =    71.25409398145069                                                  BMAJ643 =    0.026984324985809                                                  BMIN643 =   0.0253510568760861                                                  BPA643  =     76.2092049376228                                                  BMAJ644 =   0.0268952950553721                                                  BMIN644 =   0.0253436508490126                                                  BPA644  =    77.13828309289261                                                  BMAJ645 =   0.0268954954283861                                                  BMIN645 =   0.0253434432587896                                                  BPA645  =     77.1358293759333                                                  BMAJ646 =   0.0268900348325698                                                  BMIN646 =   0.0253367733391992                                                  BPA646  =    77.00634765468359                                                  BMAJ647 =                  0.0                                                  BMIN647 =                  0.0                                                  BPA647  =                  0.0                                                  BMAJ648 =                  0.0                                                  BMIN648 =                  0.0                                                  BPA648  =                  0.0                                                  BMAJ649 =                  0.0                                                  BMIN649 =                  0.0                                                  BPA649  =                  0.0                                                  BMAJ650 =                  0.0                                                  BMIN650 =                  0.0                                                  BPA650  =                  0.0                                                  BMAJ651 =                  0.0                                                  BMIN651 =                  0.0                                                  BPA651  =                  0.0                                                  BMAJ652 =                  0.0                                                  BMIN652 =                  0.0                                                  BPA652  =                  0.0                                                  BMAJ653 =                  0.0                                                  BMIN653 =                  0.0                                                  BPA653  =                  0.0                                                  BMAJ654 =                  0.0                                                  BMIN654 =                  0.0                                                  BPA654  =                  0.0                                                  BMAJ655 =                  0.0                                                  BMIN655 =                  0.0                                                  BPA655  =                  0.0                                                  BMAJ656 =                  0.0                                                  BMIN656 =                  0.0                                                  BPA656  =                  0.0                                                  BMAJ657 =                  0.0                                                  BMIN657 =                  0.0                                                  BPA657  =                  0.0                                                  BMAJ658 =                  0.0                                                  BMIN658 =                  0.0                                                  BPA658  =                  0.0                                                  BMAJ659 =                  0.0                                                  BMIN659 =                  0.0                                                  BPA659  =                  0.0                                                  BMAJ660 =                  0.0                                                  BMIN660 =                  0.0                                                  BPA660  =                  0.0                                                  BMAJ661 =                  0.0                                                  BMIN661 =                  0.0                                                  BPA661  =                  0.0                                                  BMAJ662 =                  0.0                                                  BMIN662 =                  0.0                                                  BPA662  =                  0.0                                                  BMAJ663 =                  0.0                                                  BMIN663 =                  0.0                                                  BPA663  =                  0.0                                                  BMAJ664 =                  0.0                                                  BMIN664 =                  0.0                                                  BPA664  =                  0.0                                                  BMAJ665 =                  0.0                                                  BMIN665 =                  0.0                                                  BPA665  =                  0.0                                                  BMAJ666 =                  0.0                                                  BMIN666 =                  0.0                                                  BPA666  =                  0.0                                                  BMAJ667 =                  0.0                                                  BMIN667 =                  0.0                                                  BPA667  =                  0.0                                                  BMAJ668 =                  0.0                                                  BMIN668 =                  0.0                                                  BPA668  =                  0.0                                                  BMAJ669 =                  0.0                                                  BMIN669 =                  0.0                                                  BPA669  =                  0.0                                                  BMAJ670 =                  0.0                                                  BMIN670 =                  0.0                                                  BPA670  =                  0.0                                                  BMAJ671 =                  0.0                                                  BMIN671 =                  0.0                                                  BPA671  =                  0.0                                                  BMAJ672 =                  0.0                                                  BMIN672 =                  0.0                                                  BPA672  =                  0.0                                                  BMAJ673 =                  0.0                                                  BMIN673 =                  0.0                                                  BPA673  =                  0.0                                                  BMAJ674 =                  0.0                                                  BMIN674 =                  0.0                                                  BPA674  =                  0.0                                                  BMAJ675 =                  0.0                                                  BMIN675 =                  0.0                                                  BPA675  =                  0.0                                                  BMAJ676 =                  0.0                                                  BMIN676 =                  0.0                                                  BPA676  =                  0.0                                                  BMAJ677 =                  0.0                                                  BMIN677 =                  0.0                                                  BPA677  =                  0.0                                                  BMAJ678 =                  0.0                                                  BMIN678 =                  0.0                                                  BPA678  =                  0.0                                                  BMAJ679 =                  0.0                                                  BMIN679 =                  0.0                                                  BPA679  =                  0.0                                                  BMAJ680 =                  0.0                                                  BMIN680 =                  0.0                                                  BPA680  =                  0.0                                                  BMAJ681 =                  0.0                                                  BMIN681 =                  0.0                                                  BPA681  =                  0.0                                                  BMAJ682 =                  0.0                                                  BMIN682 =                  0.0                                                  BPA682  =                  0.0                                                  BMAJ683 =                  0.0                                                  BMIN683 =                  0.0                                                  BPA683  =                  0.0                                                  BMAJ684 =                  0.0                                                  BMIN684 =                  0.0                                                  BPA684  =                  0.0                                                  BMAJ685 =                  0.0                                                  BMIN685 =                  0.0                                                  BPA685  =                  0.0                                                  BMAJ686 =                  0.0                                                  BMIN686 =                  0.0                                                  BPA686  =                  0.0                                                  BMAJ687 =                  0.0                                                  BMIN687 =                  0.0                                                  BPA687  =                  0.0                                                  BMAJ688 =                  0.0                                                  BMIN688 =                  0.0                                                  BPA688  =                  0.0                                                  BMAJ689 =                  0.0                                                  BMIN689 =                  0.0                                                  BPA689  =                  0.0                                                  BMAJ690 =                  0.0                                                  BMIN690 =                  0.0                                                  BPA690  =                  0.0                                                  BMAJ691 =                  0.0                                                  BMIN691 =                  0.0                                                  BPA691  =                  0.0                                                  BMAJ692 =                  0.0                                                  BMIN692 =                  0.0                                                  BPA692  =                  0.0                                                  SPECSYS3= 'BARYCENT'                                                            RESTFREQ=      1420405751.7667                                                  HISTORY wsclean -name /stimela_mount/output/cubes/cube_1/comb_10tracks_J1337_28_HISTORY HI_r10_t90_mg095_2_1 -j 64 -mem 100 -no-update-model-required -weight brHISTORY iggs 1.000 -taper-gaussian 90.0 -size 180 180 -scale 30.0asec -channels-HISTORY out 692 -pol I -channel-range 0 692 -niter 1000000 -auto-threshold 0.5 -HISTORY gain 0.1 -mgain 0.95 -multiscale-scale-bias 0.6 -fits-mask /stimela_mounHISTORY t/output/masking/J1337_28_r10_t90_0kms_cleanmask_1_mask.fits -padding 1.HISTORY 2 /stimela_mount/msdir/1618953945-J1337_28-galx_mst.ms /stimela_mount/msHISTORY dir/1620419957-J1337_28-galx_mst.ms /stimela_mount/msdir/1650316886-J133HISTORY 7_28-galx_mst.ms /stimela_mount/msdir/1651092377-J1337_28-galx_mst.ms /sHISTORY timela_mount/msdir/1651005988-J1337_28-galx_mst.ms /stimela_mount/msdir/HISTORY 1617213676-J1337_28-galx_mst.ms /stimela_mount/msdir/1617903678-J1337_28HISTORY -galx_mst.ms /stimela_mount/msdir/1619283083-J1337_28-galx_mst.ms /stimeHISTORY la_mount/msdir/1647545027-J1337_28-galx_mst.ms /stimela_mount/msdir/1645HISTORY 479204-J1337_28-galx_mst.ms                                             END                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
\ No newline at end of file
diff --git a/tests/data/comb_10tracks_J1337_28_HI_r10_t90_mg095_2.image.header.permuted b/tests/data/comb_10tracks_J1337_28_HI_r10_t90_mg095_2.image.header.permuted
new file mode 100644
index 0000000..2d6c162
--- /dev/null
+++ b/tests/data/comb_10tracks_J1337_28_HI_r10_t90_mg095_2.image.header.permuted
@@ -0,0 +1,1 @@
+SIMPLE  =                    T / conforms to FITS standard                      BITPIX  =                  -32 / array data type                                NAXIS   =                    3 / number of array dimensions                     NAXIS3  =                   30                                                  NAXIS2  =                   30                                                  NAXIS1  =                   48                                                  COMMENT   FITS (Flexible Image Transport System) format is defined in 'AstronomyCOMMENT   and Astrophysics', volume 376, page 359; bibcode: 2001A&A...376..359H BUNIT   = 'JY/BEAM '           / Units are in Jansky per beam                   BMAJ    =   0.0264671109891892                                                  BMIN    =   0.0253660271938545                                                  BPA     =     54.4160471536633                                                  EQUINOX =                2000. / J2000                                          BTYPE   = 'Intensity'                                                           TELESCOP= 'MeerKAT '                                                            OBSERVER= 'Erwin de Blok'                                                       OBJECT  = 'J1337-28'                                                            ORIGIN  = 'WSClean '           / W-stacking imager written by Andre Offringa    CTYPE3  = 'RA---SIN'           / Right ascension angle cosine                   CRPIX3  =                  91.                                                  CRVAL3  =    -155.666708333333                                                  CDELT3  = -0.00833333333333333                                                  CUNIT3  = 'deg     '                                                            CTYPE2  = 'DEC--SIN'           / Declination angle cosine                       CRPIX2  =                  91.                                                  CRVAL2  =              -28.045                                                  CDELT2  =  0.00833333333333333                                                  CUNIT2  = 'deg     '                                                            CTYPE1  = 'VRAD    '           / Central frequency                              CRPIX1  =                    1                                                  CRVAL1  =    1075002.301226052                                                  CDELT1  =   -1378.419202784513                                                  DATE-OBS= '2021-03-31T18:20:04.7'                                               WSCDATAC= 'DATA    '                                                            WSCVDATE= '2021-08-26'                                                          WSCVERSI= '3.0.1   '                                                            WSCWEIGH= 'Briggs''(1)'                                                         WSCCHANE=                 692.                                                  WSCCHANS=                   0.                                                  WSCENVIS=     3133809.10531049                                                  WSCFIELD=                   0.                                                  WSCGAIN =                  0.1                                                  WSCGKRNL=                   7.                                                  WSCIMGWG=     12289918.1961939                                                  WSCMAJOR=                   1.                                                  WSCMGAIN=                 0.95                                                  WSCMINOR=                   0.                                                  WSCNEGCM=                   1.                                                  WSCNEGST=                   0.                                                  WSCNITER=             1000000.                                                  WSCNORMF=     12289918.1961939                                                  WSCNVIS =            17770227.                                                  WSCNWLAY=                  64.                                                  WSCTHRES=                   0.                                                  WSCVWSUM=     71083721.1280799                                                  BMAJ1   =   0.0264700279359025                                                  BMIN1   =   0.0253720089790828                                                  BPA1    =     54.4215430039207                                                  BMAJ2   =   0.0264701023305262                                                  BMIN2   =   0.0253718092940115                                                  BPA2    =     54.4162305421328                                                  BMAJ3   =   0.0264701285294781                                                  BMIN3   =   0.0253717037702978                                                  BPA3    =     54.4128580868511                                                  BMAJ4   =   0.0264703271312511                                                  BMIN4   =   0.0253715301976362                                                  BPA4    =     54.4187486341482                                                  BMAJ5   =   0.0264702561650425                                                  BMIN5   =   0.0253715257295387                                                  BPA5    =     54.4223931574097                                                  BMAJ6   =   0.0264701943126539                                                  BMIN6   =   0.0253715711113809                                                  BPA6    =      54.423561028441                                                  BMAJ7   =     0.02647001693325                                                  BMIN7   =    0.025371544106404                                                  BPA7    =     54.4173882692566                                                  BMAJ8   =    0.026470120473701                                                  BMIN8   =   0.0253715301947336                                                  BPA8    =     54.4179553164685                                                  BMAJ9   =   0.0264701568402116                                                  BMIN9   =    0.025371578289262                                                  BPA9    =     54.4196110272656                                                  BMAJ10  =   0.0264702886416774                                                  BMIN10  =   0.0253716077502704                                                  BPA10   =     54.4215682607917                                                  BMAJ11  =   0.0264702530794663                                                  BMIN11  =   0.0253715449797759                                                  BPA11   =     54.4220380463569                                                  BMAJ12  =   0.0264702167310501                                                  BMIN12  =   0.0253716139616904                                                  BPA12   =     54.4174371219569                                                  BMAJ13  =   0.0264703600034541                                                  BMIN13  =   0.0253714281416106                                                  BPA13   =     54.4194424285409                                                  BMAJ14  =   0.0264703822346629                                                  BMIN14  =   0.0253714085815968                                                  BPA14   =     54.4193406191641                                                  BMAJ15  =   0.0264703346588065                                                  BMIN15  =   0.0253713660630336                                                  BPA15   =     54.4212699175777                                                  BMAJ16  =   0.0264702890833775                                                  BMIN16  =   0.0253713252343039                                                  BPA16   =     54.4246238351535                                                  BMAJ17  =   0.0264702617001442                                                  BMIN17  =   0.0253713638712059                                                  BPA17   =     54.4256164269153                                                  BMAJ18  =   0.0264702012168061                                                  BMIN18  =   0.0253713593204748                                                  BPA18   =       54.42427430678                                                  BMAJ19  =   0.0264702426827752                                                  BMIN19  =   0.0253713392206336                                                  BPA19   =     54.4227226084309                                                  BMAJ20  =   0.0264702101014086                                                  BMIN20  =   0.0253713094470152                                                  BPA20   =     54.4221984931825                                                  BMAJ21  =   0.0264703540965099                                                  BMIN21  =   0.0253712005775172                                                  BPA21   =     54.4263386198423                                                  BMAJ22  =   0.0264703646935621                                                  BMIN22  =   0.0253710504910329                                                  BPA22   =     54.4295185758518                                                  BMAJ23  =   0.0264704290465881                                                  BMIN23  =   0.0253710679440695                                                  BPA23   =     54.4292061467251                                                  BMAJ24  =   0.0264704697638011                                                  BMIN24  =   0.0253710573133101                                                  BPA24   =     54.4265296987057                                                  BMAJ25  =   0.0264703844198242                                                  BMIN25  =   0.0253711836897521                                                  BPA25   =     54.4247535513563                                                  BMAJ26  =   0.0264703169163012                                                  BMIN26  =   0.0253711887441819                                                  BPA26   =     54.4236021337442                                                  BMAJ27  =   0.0264702194213844                                                  BMIN27  =   0.0253711660066966                                                  BPA27   =     54.4258803329922                                                  BMAJ28  =   0.0264702298459821                                                  BMIN28  =   0.0253711397213868                                                  BPA28   =     54.4241591899816                                                  BMAJ29  =   0.0264702465151459                                                  BMIN29  =   0.0253710151517175                                                  BPA29   =     54.4253129439189                                                  BMAJ30  =   0.0264702684250475                                                  BMIN30  =   0.0253708897438864                                                  BPA30   =     54.4249513853991                                                  BMAJ31  =   0.0264702590760759                                                  BMIN31  =   0.0253708271224751                                                  BPA31   =     54.4266514653242                                                  BMAJ32  =   0.0264701642744678                                                  BMIN32  =    0.025370995227306                                                  BPA32   =     54.4282875433465                                                  BMAJ33  =   0.0264700322241307                                                  BMIN33  =   0.0253709420874612                                                  BPA33   =     54.4292375796957                                                  BMAJ34  =   0.0264700285819585                                                  BMIN34  =    0.025370863375746                                                  BPA34   =     54.4302736842796                                                  BMAJ35  =   0.0264700127921955                                                  BMIN35  =   0.0253707544524987                                                  BPA35   =     54.4301556797598                                                  BMAJ36  =   0.0264700705715735                                                  BMIN36  =   0.0253707519049336                                                  BPA36   =     54.4313729951934                                                  BMAJ37  =   0.0264698949536725                                                  BMIN37  =   0.0253708040570249                                                  BPA37   =     54.4274737237586                                                  BMAJ38  =   0.0264698010798738                                                  BMIN38  =   0.0253707690651117                                                  BPA38   =     54.4269160407906                                                  BMAJ39  =   0.0264697521108695                                                  BMIN39  =   0.0253707623541836                                                  BPA39   =     54.4222132773679                                                  BMAJ40  =   0.0264697169178471                                                  BMIN40  =   0.0253708213097464                                                  BPA40   =     54.4263779021142                                                  BMAJ41  =   0.0264697709957894                                                  BMIN41  =   0.0253707806412153                                                  BPA41   =       54.42757713696                                                  BMAJ42  =   0.0264698958792511                                                  BMIN42  =   0.0253707013405314                                                  BPA42   =     54.4317099764168                                                  BMAJ43  =   0.0264699621230423                                                  BMIN43  =   0.0253705702967981                                                  BPA43   =     54.4292676850553                                                  BMAJ44  =   0.0264699376377247                                                  BMIN44  =   0.0253705073063414                                                  BPA44   =     54.4272789710574                                                  BMAJ45  =    0.026469898166211                                                  BMIN45  =   0.0253704742367252                                                  BPA45   =     54.4288929056925                                                  BMAJ46  =   0.0264698420297898                                                  BMIN46  =   0.0253704441787224                                                  BPA46   =     54.4292170307252                                                  BMAJ47  =   0.0264697776386536                                                  BMIN47  =   0.0253704931308099                                                  BPA47   =     54.4279624605829                                                  BMAJ48  =   0.0264698053199623                                                  BMIN48  =    0.025370506700612                                                  BPA48   =     54.4242919129883                                                  BMAJ49  =   0.0264698004027445                                                  BMIN49  =   0.0253704568124392                                                  BPA49   =     54.4274303766766                                                  BMAJ50  =   0.0264698379383825                                                  BMIN50  =   0.0253704654604671                                                  BPA50   =     54.4311776214989                                                  BMAJ51  =   0.0264698271653507                                                  BMIN51  =   0.0253704351038182                                                  BPA51   =     54.4332959368317                                                  BMAJ52  =   0.0264697979866305                                                  BMIN52  =   0.0253704470201049                                                  BPA52   =     54.4307728424628                                                  BMAJ53  =   0.0264697204839548                                                  BMIN53  =   0.0253703434169514                                                  BPA53   =     54.4297134494393                                                  BMAJ54  =   0.0264695974359279                                                  BMIN54  =   0.0253703420773018                                                  BPA54   =     54.4293697409082                                                  BMAJ55  =   0.0264696044190879                                                  BMIN55  =   0.0253703106262339                                                  BPA55   =     54.4285470372015                                                  BMAJ56  =   0.0264696144672424                                                  BMIN56  =   0.0253702292513648                                                  BPA56   =     54.4298076551668                                                  BMAJ57  =   0.0264695058313754                                                  BMIN57  =   0.0253701942988213                                                  BPA57   =     54.4319378775609                                                  BMAJ58  =   0.0264695216608564                                                  BMIN58  =   0.0253702346630475                                                  BPA58   =     54.4344163031095                                                  BMAJ59  =   0.0264694912220949                                                  BMIN59  =   0.0253702601798433                                                  BPA59   =     54.4337360695468                                                  BMAJ60  =   0.0264696442594135                                                  BMIN60  =    0.025370195307099                                                  BPA60   =     54.4319636269283                                                  BMAJ61  =   0.0264699061837241                                                  BMIN61  =   0.0253700038530121                                                  BPA61   =     54.4285606969509                                                  BMAJ62  =   0.0264698257329126                                                  BMIN62  =   0.0253699610482427                                                  BPA62   =      54.431068283124                                                  BMAJ63  =   0.0264697915827017                                                  BMIN63  =   0.0253699626369474                                                  BPA63   =     54.4301027900082                                                  BMAJ64  =    0.026469435665725                                                  BMIN64  =   0.0253701162436546                                                  BPA64   =     54.4336377423087                                                  BMAJ65  =   0.0264694282336617                                                  BMIN65  =    0.025370040744889                                                  BPA65   =     54.4318930956112                                                  BMAJ66  =   0.0264693990091729                                                  BMIN66  =   0.0253700467429223                                                  BPA66   =     54.4309662985593                                                  BMAJ67  =   0.0264693365594208                                                  BMIN67  =   0.0253699433958351                                                  BPA67   =     54.4284156402291                                                  BMAJ68  =   0.0264692962830367                                                  BMIN68  =   0.0253699403955101                                                  BPA68   =     54.4288153718284                                                  BMAJ69  =   0.0264692494161752                                                  BMIN69  =   0.0253699023775947                                                  BPA69   =     54.4250947170055                                                  BMAJ70  =   0.0264693174614861                                                  BMIN70  =   0.0253698543314428                                                  BPA70   =     54.4282268889398                                                  BMAJ71  =   0.0264692721449223                                                  BMIN71  =   0.0253698471633396                                                  BPA71   =     54.4272666244875                                                  BMAJ72  =   0.0264693134292609                                                  BMIN72  =   0.0253699122528587                                                  BPA72   =     54.4300238535141                                                  BMAJ73  =   0.0264692647954191                                                  BMIN73  =   0.0253698918571301                                                  BPA73   =     54.4272805467251                                                  BMAJ74  =   0.0264692256722014                                                  BMIN74  =   0.0253698696920722                                                  BPA74   =     54.4292868443517                                                  BMAJ75  =    0.026469194728207                                                  BMIN75  =   0.0253698318852818                                                  BPA75   =     54.4245154996288                                                  BMAJ76  =   0.0264691042819084                                                  BMIN76  =   0.0253698881206489                                                  BPA76   =      54.426502899992                                                  BMAJ77  =   0.0264691156812489                                                  BMIN77  =   0.0253698752082586                                                  BPA77   =     54.4247419002072                                                  BMAJ78  =   0.0264690767073803                                                  BMIN78  =   0.0253698657658457                                                  BPA78   =     54.4273596841153                                                  BMAJ79  =    0.026469137846379                                                  BMIN79  =   0.0253698010655368                                                  BPA79   =     54.4239830775188                                                  BMAJ80  =   0.0264690603412302                                                  BMIN80  =   0.0253697359558208                                                  BPA80   =     54.4258293252754                                                  BMAJ81  =   0.0264690880267546                                                  BMIN81  =    0.025369627080956                                                  BPA81   =     54.4236419558289                                                  BMAJ82  =   0.0264690096539392                                                  BMIN82  =    0.025369721631401                                                  BPA82   =     54.4242226503837                                                  BMAJ83  =   0.0264690423206448                                                  BMIN83  =   0.0253696794909323                                                  BPA83   =     54.4209802713091                                                  BMAJ84  =    0.026469116139547                                                  BMIN84  =   0.0253697093929591                                                  BPA84   =      54.419779320253                                                  BMAJ85  =   0.0264691669223295                                                  BMIN85  =   0.0253696520999043                                                  BPA85   =     54.4222191943653                                                  BMAJ86  =   0.0264692176457098                                                  BMIN86  =   0.0253696211337374                                                  BPA86   =     54.4283515331528                                                  BMAJ87  =    0.026469057898116                                                  BMIN87  =   0.0253695766323688                                                  BPA87   =     54.4317620612765                                                  BMAJ88  =   0.0264690028591918                                                  BMIN88  =   0.0253694539104918                                                  BPA88   =     54.4383351034801                                                  BMAJ89  =   0.0264689080262408                                                  BMIN89  =    0.025369369854211                                                  BPA89   =     54.4377414716689                                                  BMAJ90  =   0.0264690864433623                                                  BMIN90  =    0.025369262796052                                                  BPA90   =     54.4403456633505                                                  BMAJ91  =   0.0264690437743048                                                  BMIN91  =   0.0253691659559457                                                  BPA91   =     54.4380603094176                                                  BMAJ92  =    0.026469175416301                                                  BMIN92  =   0.0253691131041856                                                  BPA92   =     54.4364933584361                                                  BMAJ93  =   0.0264690278791989                                                  BMIN93  =   0.0253691247554893                                                  BPA93   =     54.4366021305869                                                  BMAJ94  =   0.0264690985421769                                                  BMIN94  =   0.0253690712762668                                                  BPA94   =     54.4345562077389                                                  BMAJ95  =   0.0264690117494752                                                  BMIN95  =   0.0253691362713615                                                  BPA95   =     54.4317304452972                                                  BMAJ96  =   0.0264690821883593                                                  BMIN96  =   0.0253691233206833                                                  BPA96   =     54.4326781846898                                                  BMAJ97  =   0.0264690176057936                                                  BMIN97  =   0.0253691425519328                                                  BPA97   =     54.4339211907806                                                  BMAJ98  =   0.0264690320809051                                                  BMIN98  =   0.0253689451515861                                                  BPA98   =     54.4387693797263                                                  BMAJ99  =   0.0264689503642088                                                  BMIN99  =   0.0253688591122453                                                  BPA99   =     54.4380017516968                                                  BMAJ100 =   0.0264689048754185                                                  BMIN100 =   0.0253686794111436                                                  BPA100  =     54.4372333757074                                                  BMAJ101 =   0.0264689350946826                                                  BMIN101 =   0.0253687037373428                                                  BPA101  =     54.4347611248071                                                  BMAJ102 =   0.0264690525776624                                                  BMIN102 =   0.0253686835999887                                                  BPA102  =     54.4314633802434                                                  BMAJ103 =   0.0264691031848623                                                  BMIN103 =   0.0253687292607303                                                  BPA103  =     54.4339959537004                                                  BMAJ104 =   0.0264690183010081                                                  BMIN104 =   0.0253687206985909                                                  BPA104  =     54.4353470042385                                                  BMAJ105 =   0.0264688298639759                                                  BMIN105 =   0.0253687712759225                                                  BPA105  =      54.437390365735                                                  BMAJ106 =   0.0264688468037827                                                  BMIN106 =   0.0253686484618838                                                  BPA106  =     54.4354549519291                                                  BMAJ107 =   0.0264690078298724                                                  BMIN107 =    0.025368622728063                                                  BPA107  =     54.4315183100882                                                  BMAJ108 =   0.0264690598729327                                                  BMIN108 =   0.0253686168418518                                                  BPA108  =     54.4307314244483                                                  BMAJ109 =   0.0264690421357675                                                  BMIN109 =   0.0253685999124253                                                  BPA109  =     54.4294036770258                                                  BMAJ110 =   0.0264687991167313                                                  BMIN110 =   0.0253685852196515                                                  BPA110  =     54.4343560886069                                                  BMAJ111 =   0.0264686661028525                                                  BMIN111 =   0.0253685422434507                                                  BPA111  =     54.4345440952882                                                  BMAJ112 =   0.0264685864205327                                                  BMIN112 =   0.0253685213198352                                                  BPA112  =     54.4358093953164                                                  BMAJ113 =    0.026468600752762                                                  BMIN113 =   0.0253684986160833                                                  BPA113  =     54.4323948617449                                                  BMAJ114 =     0.02646884440166                                                  BMIN114 =    0.025368431232269                                                  BPA114  =      54.430709165998                                                  BMAJ115 =    0.026468874075038                                                  BMIN115 =   0.0253684965066428                                                  BPA115  =     54.4340148567184                                                  BMAJ116 =   0.0264688969101367                                                  BMIN116 =   0.0253684180035299                                                  BPA116  =     54.4356415924449                                                  BMAJ117 =   0.0264688063872092                                                  BMIN117 =   0.0253684351697365                                                  BPA117  =     54.4383191786937                                                  BMAJ118 =   0.0264687959268641                                                  BMIN118 =   0.0253682415956665                                                  BPA118  =     54.4373353159968                                                  BMAJ119 =   0.0264687519592613                                                  BMIN119 =   0.0253682503690624                                                  BPA119  =     54.4341739316363                                                  BMAJ120 =   0.0264687001860468                                                  BMIN120 =   0.0253682184569685                                                  BPA120  =      54.433298828409                                                  BMAJ121 =   0.0264685948461495                                                  BMIN121 =   0.0253681854527771                                                  BPA121  =     54.4354427120923                                                  BMAJ122 =   0.0264685695751431                                                  BMIN122 =   0.0253681503723534                                                  BPA122  =     54.4327727863884                                                  BMAJ123 =   0.0264684679465003                                                  BMIN123 =   0.0253681271135314                                                  BPA123  =      54.436925326108                                                  BMAJ124 =   0.0264685677119062                                                  BMIN124 =     0.02536806992408                                                  BPA124  =     54.4333806454135                                                  BMAJ125 =    0.026468661244403                                                  BMIN125 =    0.025368014843581                                                  BPA125  =     54.4331929698057                                                  BMAJ126 =   0.0264688108189797                                                  BMIN126 =    0.025367935109942                                                  BPA126  =      54.428689914516                                                  BMAJ127 =   0.0264687385579578                                                  BMIN127 =   0.0253679465774468                                                  BPA127  =     54.4299578028723                                                  BMAJ128 =    0.026468606763189                                                  BMIN128 =   0.0253679524179408                                                  BPA128  =     54.4323225853871                                                  BMAJ129 =    0.026468520375218                                                  BMIN129 =   0.0253678852542372                                                  BPA129  =     54.4316099417944                                                  BMAJ130 =   0.0264684376116066                                                  BMIN130 =   0.0253678822106646                                                  BPA130  =     54.4340646348183                                                  BMAJ131 =   0.0264684843670125                                                  BMIN131 =   0.0253678154634838                                                  BPA131  =     54.4318322343357                                                  BMAJ132 =   0.0264684383102772                                                  BMIN132 =    0.025367803058186                                                  BPA132  =     54.4311717913625                                                  BMAJ133 =   0.0264684776963443                                                  BMIN133 =   0.0253677371153862                                                  BPA133  =     54.4278015531563                                                  BMAJ134 =   0.0264683630171119                                                  BMIN134 =    0.025367742710705                                                  BPA134  =     54.4246603114021                                                  BMAJ135 =   0.0264683656132181                                                  BMIN135 =   0.0253676963006556                                                  BPA135  =     54.4282984051625                                                  BMAJ136 =   0.0264682775530759                                                  BMIN136 =    0.025367775799125                                                  BPA136  =      54.431890555852                                                  BMAJ137 =   0.0264683730753563                                                  BMIN137 =   0.0253677851911932                                                  BPA137  =     54.4330176829482                                                  BMAJ138 =   0.0264683841703374                                                  BMIN138 =   0.0253677487912645                                                  BPA138  =     54.4321271113136                                                  BMAJ139 =   0.0264683518487397                                                  BMIN139 =    0.025367645717211                                                  BPA139  =     54.4266648706562                                                  BMAJ140 =   0.0264681666110196                                                  BMIN140 =   0.0253675976954112                                                  BPA140  =     54.4247210595016                                                  BMAJ141 =   0.0264681221645212                                                  BMIN141 =   0.0253676325524078                                                  BPA141  =     54.4255338065569                                                  BMAJ142 =   0.0264681010694603                                                  BMIN142 =   0.0253676603981828                                                  BPA142  =     54.4321998396348                                                  BMAJ143 =   0.0264682398135631                                                  BMIN143 =   0.0253675776613671                                                  BPA143  =     54.4378998576267                                                  BMAJ144 =   0.0264682176235565                                                  BMIN144 =   0.0253675733409254                                                  BPA144  =     54.4374813930648                                                  BMAJ145 =   0.0264681061928432                                                  BMIN145 =   0.0253675760544273                                                  BPA145  =     54.4341381590154                                                  BMAJ146 =   0.0264681208640389                                                  BMIN146 =   0.0253675838102056                                                  BPA146  =     54.4307494234284                                                  BMAJ147 =    0.026468084840197                                                  BMIN147 =   0.0253675077292769                                                  BPA147  =      54.426394649204                                                  BMAJ148 =   0.0264680410465685                                                  BMIN148 =   0.0253674656791631                                                  BPA148  =     54.4247069836052                                                  BMAJ149 =   0.0264679270028955                                                  BMIN149 =   0.0253674861089311                                                  BPA149  =     54.4215946358453                                                  BMAJ150 =   0.0264679335513643                                                  BMIN150 =   0.0253673811553596                                                  BPA150  =     54.4224872442718                                                  BMAJ151 =   0.0264680194135834                                                  BMIN151 =   0.0253672485008812                                                  BPA151  =     54.4223160411914                                                  BMAJ152 =    0.026467946465773                                                  BMIN152 =   0.0253671649877408                                                  BPA152  =     54.4210051515005                                                  BMAJ153 =   0.0264678742553451                                                  BMIN153 =   0.0253672257208605                                                  BPA153  =       54.42430076266                                                  BMAJ154 =   0.0264678021882686                                                  BMIN154 =   0.0253672320401924                                                  BPA154  =     54.4268797576355                                                  BMAJ155 =   0.0264677199125456                                                  BMIN155 =   0.0253673238125961                                                  BPA155  =     54.4258158217574                                                  BMAJ156 =   0.0264676681025134                                                  BMIN156 =   0.0253670899555857                                                  BPA156  =      54.423558510619                                                  BMAJ157 =    0.026467570221416                                                  BMIN157 =   0.0253671790296747                                                  BPA157  =     54.4245984180623                                                  BMAJ158 =   0.0264675414699516                                                  BMIN158 =   0.0253669486284673                                                  BPA158  =     54.4246886728958                                                  BMAJ159 =   0.0264675245250974                                                  BMIN159 =   0.0253669412963716                                                  BPA159  =     54.4240415056069                                                  BMAJ160 =   0.0264674930881058                                                  BMIN160 =   0.0253669930313367                                                  BPA160  =      54.419682617676                                                  BMAJ161 =   0.0264675970864949                                                  BMIN161 =   0.0253669999567071                                                  BPA161  =     54.4205601033714                                                  BMAJ162 =   0.0264677675391615                                                  BMIN162 =   0.0253668566939324                                                  BPA162  =     54.4218699788173                                                  BMAJ163 =   0.0264677495260443                                                  BMIN163 =   0.0253667027437971                                                  BPA163  =     54.4201187857659                                                  BMAJ164 =   0.0264674974370363                                                  BMIN164 =   0.0253667146853345                                                  BPA164  =     54.4200533426525                                                  BMAJ165 =    0.026467438363492                                                  BMIN165 =   0.0253667900902998                                                  BPA165  =     54.4205167298968                                                  BMAJ166 =   0.0264674120282957                                                  BMIN166 =   0.0253667119921265                                                  BPA166  =     54.4265117017012                                                  BMAJ167 =   0.0264676619647645                                                  BMIN167 =   0.0253666586554924                                                  BPA167  =     54.4266664476163                                                  BMAJ168 =   0.0264676418141024                                                  BMIN168 =   0.0253666642069675                                                  BPA168  =     54.4258875501107                                                  BMAJ169 =    0.026467641688314                                                  BMIN169 =   0.0253665962994392                                                  BPA169  =     54.4210221425364                                                  BMAJ170 =   0.0264675459446987                                                  BMIN170 =   0.0253667003556018                                                  BPA170  =     54.4176672985005                                                  BMAJ171 =    0.026467554586531                                                  BMIN171 =    0.025366534737224                                                  BPA171  =      54.414775129795                                                  BMAJ172 =    0.026467427964022                                                  BMIN172 =   0.0253666084430298                                                  BPA172  =     54.4166177206202                                                  BMAJ173 =   0.0264674146068486                                                  BMIN173 =    0.025366571974494                                                  BPA173  =     54.4198066795586                                                  BMAJ174 =   0.0264673320994769                                                  BMIN174 =   0.0253666619622492                                                  BPA174  =     54.4187702952138                                                  BMAJ175 =   0.0264674217265387                                                  BMIN175 =   0.0253666469926951                                                  BPA175  =     54.4175841782794                                                  BMAJ176 =   0.0264674682999329                                                  BMIN176 =    0.025366593661732                                                  BPA176  =     54.4186192270407                                                  BMAJ177 =   0.0264674291173336                                                  BMIN177 =    0.025366451015413                                                  BPA177  =     54.4212915158075                                                  BMAJ178 =   0.0264672994202607                                                  BMIN178 =   0.0253663376366635                                                  BPA178  =     54.4241929404915                                                  BMAJ179 =   0.0264673090898366                                                  BMIN179 =   0.0253662699420009                                                  BPA179  =     54.4213361559382                                                  BMAJ180 =     0.02646735610001                                                  BMIN180 =   0.0253663078242376                                                  BPA180  =     54.4191395809513                                                  BMAJ181 =   0.0264673196816879                                                  BMIN181 =   0.0253663882087083                                                  BPA181  =     54.4160738197287                                                  BMAJ182 =   0.0264671654842028                                                  BMIN182 =   0.0253663942447947                                                  BPA182  =     54.4169212069921                                                  BMAJ183 =   0.0264671509410369                                                  BMIN183 =   0.0253662096574723                                                  BPA183  =     54.4172971406913                                                  BMAJ184 =   0.0264671529065754                                                  BMIN184 =   0.0253661303760151                                                  BPA184  =     54.4163967523968                                                  BMAJ185 =   0.0264671109891892                                                  BMIN185 =   0.0253660271938545                                                  BPA185  =     54.4160471536633                                                  BMAJ186 =   0.0264670321171293                                                  BMIN186 =   0.0253660259093351                                                  BPA186  =     54.4165250160329                                                  BMAJ187 =   0.0264670346690805                                                  BMIN187 =   0.0253660251491221                                                  BPA187  =     54.4163219657957                                                  BMAJ188 =   0.0264670519862615                                                  BMIN188 =   0.0253659874661272                                                  BPA188  =     54.4179571254267                                                  BMAJ189 =   0.0264670763877663                                                  BMIN189 =   0.0253660041934785                                                  BPA189  =     54.4188216131265                                                  BMAJ190 =   0.0264670175268182                                                  BMIN190 =   0.0253660012451065                                                  BPA190  =     54.4200114402891                                                  BMAJ191 =   0.0264671479100351                                                  BMIN191 =   0.0253659823728342                                                  BPA191  =     54.4197789051322                                                  BMAJ192 =   0.0264671523013946                                                  BMIN192 =   0.0253660453197642                                                  BPA192  =     54.4189836411532                                                  BMAJ193 =   0.0264670939424018                                                  BMIN193 =   0.0253660523085612                                                  BPA193  =     54.4187979072745                                                  BMAJ194 =    0.026466948233412                                                  BMIN194 =   0.0253661108536728                                                  BPA194  =     54.4203737185182                                                  BMAJ195 =   0.0264669458509028                                                  BMIN195 =    0.025366081098862                                                  BPA195  =     54.4220625774417                                                  BMAJ196 =   0.0264670864404436                                                  BMIN196 =   0.0253660279620983                                                  BPA196  =     54.4173567222282                                                  BMAJ197 =   0.0264671170971617                                                  BMIN197 =   0.0253659647795271                                                  BPA197  =     54.4179429325093                                                  BMAJ198 =   0.0264670878189768                                                  BMIN198 =   0.0253658455710906                                                  BPA198  =     54.4172058869077                                                  BMAJ199 =   0.0264670679550732                                                  BMIN199 =   0.0253658498337752                                                  BPA199  =     54.4210920609554                                                  BMAJ200 =   0.0264670477767206                                                  BMIN200 =   0.0253657404509837                                                  BPA200  =     54.4217241558368                                                  BMAJ201 =    0.026467019877934                                                  BMIN201 =    0.025365729009055                                                  BPA201  =     54.4199982158153                                                  BMAJ202 =   0.0264670291386717                                                  BMIN202 =   0.0253656402273421                                                  BPA202  =     54.4152978846271                                                  BMAJ203 =   0.0264669374123612                                                  BMIN203 =   0.0253655445011624                                                  BPA203  =     54.4137819691914                                                  BMAJ204 =    0.026467014986497                                                  BMIN204 =   0.0253655768115041                                                  BPA204  =      54.420541319127                                                  BMAJ205 =   0.0264671365859536                                                  BMIN205 =     0.02536560030152                                                  BPA205  =     54.4209931942902                                                  BMAJ206 =   0.0264672535902123                                                  BMIN206 =   0.0253656459033802                                                  BPA206  =     54.4184529838156                                                  BMAJ207 =   0.0264672409747525                                                  BMIN207 =   0.0253655442780493                                                  BPA207  =     54.4140695568181                                                  BMAJ208 =    0.026467256762455                                                  BMIN208 =   0.0253653808953415                                                  BPA208  =     54.4166123466722                                                  BMAJ209 =   0.0264672101062397                                                  BMIN209 =   0.0253652745268987                                                  BPA209  =     54.4144730680601                                                  BMAJ210 =   0.0264673003078279                                                  BMIN210 =   0.0253652601735571                                                  BPA210  =     54.4162517541619                                                  BMAJ211 =     0.02646712420092                                                  BMIN211 =   0.0253652784414732                                                  BPA211  =     54.4145090782364                                                  BMAJ212 =    0.026467210205315                                                  BMIN212 =   0.0253652647636536                                                  BPA212  =       54.41727064619                                                  BMAJ213 =   0.0264671149735947                                                  BMIN213 =   0.0253653037901652                                                  BPA213  =     54.4205398859977                                                  BMAJ214 =   0.0264672003495672                                                  BMIN214 =   0.0253652352239837                                                  BPA214  =     54.4179465908678                                                  BMAJ215 =   0.0264671663948523                                                  BMIN215 =   0.0253651791755777                                                  BPA215  =     54.4172847442341                                                  BMAJ216 =   0.0264672115574271                                                  BMIN216 =   0.0253651095113534                                                  BPA216  =     54.4186658027177                                                  BMAJ217 =   0.0264672665206061                                                  BMIN217 =   0.0253650599961728                                                  BPA217  =     54.4227590842411                                                  BMAJ218 =   0.0264672680756983                                                  BMIN218 =   0.0253650246828387                                                  BPA218  =     54.4245832983447                                                  BMAJ219 =   0.0264671675201084                                                  BMIN219 =    0.025364968608728                                                  BPA219  =     54.4203801058141                                                  BMAJ220 =   0.0264671116134918                                                  BMIN220 =    0.025364991259117                                                  BPA220  =     54.4164276344623                                                  BMAJ221 =   0.0264669984196357                                                  BMIN221 =     0.02536501796979                                                  BPA221  =     54.4146576581912                                                  BMAJ222 =    0.026467111089368                                                  BMIN222 =   0.0253649664248332                                                  BPA222  =     54.4159601204094                                                  BMAJ223 =   0.0264671663125076                                                  BMIN223 =   0.0253648961200563                                                  BPA223  =     54.4170236504152                                                  BMAJ224 =   0.0264672036378763                                                  BMIN224 =   0.0253648476937136                                                  BPA224  =     54.4199433679043                                                  BMAJ225 =   0.0264671868672056                                                  BMIN225 =   0.0253648313156588                                                  BPA225  =      54.418399054774                                                  BMAJ226 =   0.0264672039877049                                                  BMIN226 =   0.0253647509006449                                                  BPA226  =     54.4190777059099                                                  BMAJ227 =   0.0264670557902316                                                  BMIN227 =   0.0253646348285435                                                  BPA227  =     54.4183622601129                                                  BMAJ228 =   0.0264670234022783                                                  BMIN228 =   0.0253645531699568                                                  BPA228  =     54.4221057757721                                                  BMAJ229 =   0.0264669280517821                                                  BMIN229 =   0.0253644353272469                                                  BPA229  =     54.4171937413285                                                  BMAJ230 =   0.0264670125893279                                                  BMIN230 =   0.0253645346901872                                                  BPA230  =     54.4176647973837                                                  BMAJ231 =   0.0264670289656509                                                  BMIN231 =   0.0253645077586558                                                  BPA231  =     54.4147282197408                                                  BMAJ232 =   0.0264670339196214                                                  BMIN232 =   0.0253646299052019                                                  BPA232  =      54.417625441991                                                  BMAJ233 =   0.0264670760783839                                                  BMIN233 =   0.0253645968965578                                                  BPA233  =     54.4141811237106                                                  BMAJ234 =   0.0264670699719645                                                  BMIN234 =   0.0253646612039745                                                  BPA234  =     54.4095083695095                                                  BMAJ235 =   0.0264669334132361                                                  BMIN235 =   0.0253645864615792                                                  BPA235  =     54.4074524661986                                                  BMAJ236 =   0.0264668330139095                                                  BMIN236 =   0.0253645811975671                                                  BPA236  =     54.4096513093691                                                  BMAJ237 =   0.0264668258858467                                                  BMIN237 =   0.0253644994088281                                                  BPA237  =     54.4166172184863                                                  BMAJ238 =   0.0264668051951882                                                  BMIN238 =   0.0253644692264099                                                  BPA238  =     54.4115959684075                                                  BMAJ239 =   0.0264669039857066                                                  BMIN239 =   0.0253644831644259                                                  BPA239  =     54.4108490198821                                                  BMAJ240 =   0.0264668318161199                                                  BMIN240 =   0.0253643289995569                                                  BPA240  =     54.4072463210157                                                  BMAJ241 =   0.0264669231598524                                                  BMIN241 =   0.0253642331511839                                                  BPA241  =     54.4091407483601                                                  BMAJ242 =   0.0264668509814931                                                  BMIN242 =   0.0253642652959243                                                  BPA242  =     54.4097988681222                                                  BMAJ243 =   0.0264668517826323                                                  BMIN243 =   0.0253642787943222                                                  BPA243  =     54.4117215326244                                                  BMAJ244 =   0.0264667496413521                                                  BMIN244 =   0.0253643736967306                                                  BPA244  =       54.41172340124                                                  BMAJ245 =   0.0264667615114557                                                  BMIN245 =   0.0253641491799703                                                  BPA245  =     54.4118674812277                                                  BMAJ246 =   0.0264667817478503                                                  BMIN246 =   0.0253641095735681                                                  BPA246  =     54.4117832950005                                                  BMAJ247 =   0.0264667665339788                                                  BMIN247 =   0.0253641316604488                                                  BPA247  =     54.4083824516205                                                  BMAJ248 =   0.0264668980632388                                                  BMIN248 =    0.025364105046924                                                  BPA248  =     54.4083788043681                                                  BMAJ249 =   0.0264668473451174                                                  BMIN249 =   0.0253642470205971                                                  BPA249  =     54.4128831301286                                                  BMAJ250 =   0.0264668966210113                                                  BMIN250 =   0.0253641443348738                                                  BPA250  =     54.4149571195136                                                  BMAJ251 =   0.0264668656144826                                                  BMIN251 =   0.0253641540612276                                                  BPA251  =     54.4160786761018                                                  BMAJ252 =   0.0264667599295607                                                  BMIN252 =   0.0253640462942735                                                  BPA252  =     54.4133691885998                                                  BMAJ253 =   0.0264667539085028                                                  BMIN253 =   0.0253639990777173                                                  BPA253  =     54.4162581493189                                                  BMAJ254 =   0.0264668394511635                                                  BMIN254 =   0.0253639089889915                                                  BPA254  =     54.4126440799002                                                  BMAJ255 =   0.0264669529154162                                                  BMIN255 =   0.0253638973787589                                                  BPA255  =     54.4141922979793                                                  BMAJ256 =   0.0264669775865809                                                  BMIN256 =   0.0253638348695541                                                  BPA256  =     54.4106197978063                                                  BMAJ257 =   0.0264669591954419                                                  BMIN257 =   0.0253637216293801                                                  BPA257  =     54.4137862216644                                                  BMAJ258 =    0.026466971148157                                                  BMIN258 =   0.0253636626988976                                                  BPA258  =     54.4151588419491                                                  BMAJ259 =    0.026466913090825                                                  BMIN259 =   0.0253636339728919                                                  BPA259  =     54.4156788969577                                                  BMAJ260 =   0.0264669094589475                                                  BMIN260 =   0.0253636362927416                                                  BPA260  =     54.4172066543988                                                  BMAJ261 =    0.026466873156117                                                  BMIN261 =   0.0253636365113145                                                  BPA261  =     54.4162675880996                                                  BMAJ262 =   0.0264669666081317                                                  BMIN262 =   0.0253635241709949                                                  BPA262  =     54.4202219720421                                                  BMAJ263 =   0.0264669401811438                                                  BMIN263 =   0.0253635299598065                                                  BPA263  =     54.4172781396273                                                  BMAJ264 =   0.0264669088305181                                                  BMIN264 =   0.0253634106708582                                                  BPA264  =     54.4137951253878                                                  BMAJ265 =   0.0264669182494246                                                  BMIN265 =   0.0253634455336633                                                  BPA265  =     54.4093062994918                                                  BMAJ266 =   0.0264669176740666                                                  BMIN266 =   0.0253634250362326                                                  BPA266  =     54.4081135315398                                                  BMAJ267 =   0.0264669242812016                                                  BMIN267 =   0.0253633849153568                                                  BPA267  =     54.4104077159565                                                  BMAJ268 =   0.0264669248578761                                                  BMIN268 =   0.0253633195525992                                                  BPA268  =     54.4092326038208                                                  BMAJ269 =   0.0264668669574297                                                  BMIN269 =   0.0253632761159585                                                  BPA269  =     54.4098934637069                                                  BMAJ270 =    0.026466828084379                                                  BMIN270 =   0.0253633055773547                                                  BPA270  =     54.4085376847232                                                  BMAJ271 =   0.0264667581125448                                                  BMIN271 =   0.0253633874354295                                                  BPA271  =     54.4109038033246                                                  BMAJ272 =   0.0264667015506269                                                  BMIN272 =   0.0253634075453836                                                  BPA272  =     54.4111166823801                                                  BMAJ273 =   0.0264667437742513                                                  BMIN273 =   0.0253632591046822                                                  BPA273  =     54.4098877953479                                                  BMAJ274 =   0.0264666613145063                                                  BMIN274 =   0.0253632097403011                                                  BPA274  =      54.408180510672                                                  BMAJ275 =   0.0264667746862757                                                  BMIN275 =   0.0253631236302786                                                  BPA275  =     54.4090297596084                                                  BMAJ276 =   0.0264668333740184                                                  BMIN276 =   0.0253631146371199                                                  BPA276  =     54.4064420009177                                                  BMAJ277 =   0.0264668297945901                                                  BMIN277 =   0.0253630591514206                                                  BPA277  =     54.4051122434127                                                  BMAJ278 =   0.0264668359061002                                                  BMIN278 =   0.0253630916282703                                                  BPA278  =     54.4026790744161                                                  BMAJ279 =   0.0264667604992033                                                  BMIN279 =   0.0253629399900555                                                  BPA279  =     54.4062707552928                                                  BMAJ280 =   0.0264667528046095                                                  BMIN280 =   0.0253628355557014                                                  BPA280  =     54.4055630645086                                                  BMAJ281 =   0.0264667290838704                                                  BMIN281 =   0.0253627489676856                                                  BPA281  =     54.4111756362161                                                  BMAJ282 =   0.0264667160642911                                                  BMIN282 =   0.0253627238398952                                                  BPA282  =     54.4143996863888                                                  BMAJ283 =    0.026466688732615                                                  BMIN283 =   0.0253627287202778                                                  BPA283  =     54.4170162289764                                                  BMAJ284 =   0.0264668442333424                                                  BMIN284 =    0.025362613448059                                                  BPA284  =     54.4143180252993                                                  BMAJ285 =    0.026466721515908                                                  BMIN285 =    0.025362589762873                                                  BPA285  =     54.4175945927992                                                  BMAJ286 =   0.0264667118864433                                                  BMIN286 =   0.0253626124882997                                                  BPA286  =     54.4201759917822                                                  BMAJ287 =   0.0264667296369054                                                  BMIN287 =   0.0253625207413065                                                  BPA287  =     54.4212401531732                                                  BMAJ288 =   0.0264667480679837                                                  BMIN288 =   0.0253625199729573                                                  BPA288  =     54.4209479044922                                                  BMAJ289 =   0.0264667254506331                                                  BMIN289 =   0.0253624036724243                                                  BPA289  =     54.4208877480296                                                  BMAJ290 =   0.0264667791469395                                                  BMIN290 =   0.0253624192393325                                                  BPA290  =     54.4252980798023                                                  BMAJ291 =   0.0264667613848062                                                  BMIN291 =   0.0253624259894632                                                  BPA291  =     54.4269633923253                                                  BMAJ292 =   0.0264667369390569                                                  BMIN292 =   0.0253624703177262                                                  BPA292  =     54.4276170965384                                                  BMAJ293 =   0.0264666611666369                                                  BMIN293 =   0.0253624666778091                                                  BPA293  =     54.4247328614609                                                  BMAJ294 =   0.0264667098725474                                                  BMIN294 =   0.0253624375730104                                                  BPA294  =     54.4239165534712                                                  BMAJ295 =   0.0264666776217581                                                  BMIN295 =   0.0253624385875848                                                  BPA295  =     54.4286763821706                                                  BMAJ296 =   0.0264666185984773                                                  BMIN296 =   0.0253624428020377                                                  BPA296  =     54.4284487777201                                                  BMAJ297 =   0.0264664358501396                                                  BMIN297 =   0.0253624150190246                                                  BPA297  =     54.4298622194451                                                  BMAJ298 =    0.026466117789699                                                  BMIN298 =   0.0253624463413448                                                  BPA298  =     54.4300899298292                                                  BMAJ299 =   0.0264661920832222                                                  BMIN299 =   0.0253623050791692                                                  BPA299  =     54.4261944066844                                                  BMAJ300 =   0.0264661632322695                                                  BMIN300 =   0.0253623371071508                                                  BPA300  =     54.4247920542758                                                  BMAJ301 =   0.0264667051095709                                                  BMIN301 =   0.0253623562974952                                                  BPA301  =     54.4211994320377                                                  BMAJ302 =   0.0264668128585708                                                  BMIN302 =   0.0253622426395914                                                  BPA302  =     54.4190310935832                                                  BMAJ303 =   0.0264668741336959                                                  BMIN303 =   0.0253621583008386                                                  BPA303  =      54.421349191896                                                  BMAJ304 =   0.0264668641503743                                                  BMIN304 =   0.0253621312262103                                                  BPA304  =      54.423191056946                                                  BMAJ305 =   0.0264667920425954                                                  BMIN305 =   0.0253621685078204                                                  BPA305  =     54.4262439911823                                                  BMAJ306 =    0.026466769264193                                                  BMIN306 =   0.0253622059966892                                                  BPA306  =     54.4259412460176                                                  BMAJ307 =   0.0264666726081048                                                  BMIN307 =   0.0253621911490644                                                  BPA307  =     54.4258321146622                                                  BMAJ308 =   0.0264666674564884                                                  BMIN308 =   0.0253621259208594                                                  BPA308  =     54.4255313091474                                                  BMAJ309 =    0.026466601592835                                                  BMIN309 =   0.0253620293115253                                                  BPA309  =     54.4210135180128                                                  BMAJ310 =   0.0264665621485308                                                  BMIN310 =   0.0253619680354955                                                  BPA310  =     54.4231927643435                                                  BMAJ311 =   0.0264666760145579                                                  BMIN311 =   0.0253620521136653                                                  BPA311  =     54.4265127179758                                                  BMAJ312 =   0.0264668211812605                                                  BMIN312 =     0.02536202178205                                                  BPA312  =      54.429289092576                                                  BMAJ313 =   0.0264667909370316                                                  BMIN313 =    0.025361907080598                                                  BPA313  =     54.4260406304343                                                  BMAJ314 =   0.0264666497211224                                                  BMIN314 =   0.0253617718309257                                                  BPA314  =     54.4252727762951                                                  BMAJ315 =   0.0264663634632322                                                  BMIN315 =   0.0253618904469481                                                  BPA315  =     54.4165187553201                                                  BMAJ316 =   0.0264663233094715                                                  BMIN316 =   0.0253619312605718                                                  BPA316  =     54.4212358204198                                                  BMAJ317 =   0.0264662985329574                                                  BMIN317 =   0.0253617261025425                                                  BPA317  =     54.4192021395365                                                  BMAJ318 =    0.026466529654569                                                  BMIN318 =   0.0253615971320037                                                  BPA318  =     54.4249554693123                                                  BMAJ319 =   0.0264666422883715                                                  BMIN319 =    0.025361422977744                                                  BPA319  =     54.4236049332329                                                  BMAJ320 =    0.026466631154919                                                  BMIN320 =   0.0253614238234076                                                  BPA320  =       54.41911924957                                                  BMAJ321 =   0.0264665750891528                                                  BMIN321 =   0.0253614915855065                                                  BPA321  =     54.4163011906167                                                  BMAJ322 =   0.0264666329681779                                                  BMIN322 =   0.0253615071391933                                                  BPA322  =     54.4203654683554                                                  BMAJ323 =   0.0264666464115354                                                  BMIN323 =   0.0253615088536567                                                  BPA323  =     54.4255529468591                                                  BMAJ324 =   0.0264667129432425                                                  BMIN324 =   0.0253612738736459                                                  BPA324  =     54.4324343697014                                                  BMAJ325 =   0.0264667205978326                                                  BMIN325 =   0.0253612355793013                                                  BPA325  =     54.4338610275633                                                  BMAJ326 =   0.0264667670811682                                                  BMIN326 =   0.0253610669855486                                                  BPA326  =     54.4354921561254                                                  BMAJ327 =   0.0264667388546941                                                  BMIN327 =   0.0253611014319462                                                  BPA327  =     54.4349908363831                                                  BMAJ328 =   0.0264667292699203                                                  BMIN328 =   0.0253610799578497                                                  BPA328  =     54.4331701759656                                                  BMAJ329 =   0.0264666531620921                                                  BMIN329 =   0.0253611572329338                                                  BPA329  =     54.4300272461175                                                  BMAJ330 =   0.0264665923608124                                                  BMIN330 =   0.0253611574535243                                                  BPA330  =     54.4323258190732                                                  BMAJ331 =   0.0264666262029186                                                  BMIN331 =   0.0253610939448689                                                  BPA331  =     54.4272191761837                                                  BMAJ332 =   0.0264665888564448                                                  BMIN332 =   0.0253610112499731                                                  BPA332  =      54.425712318663                                                  BMAJ333 =   0.0264667298346926                                                  BMIN333 =   0.0253608592599444                                                  BPA333  =     54.4252840539832                                                  BMAJ334 =   0.0264666821662823                                                  BMIN334 =   0.0253608485837224                                                  BPA334  =     54.4324003123542                                                  BMAJ335 =   0.0264666695464857                                                  BMIN335 =    0.025360749812786                                                  BPA335  =     54.4375620284792                                                  BMAJ336 =   0.0264666318449447                                                  BMIN336 =   0.0253606799994121                                                  BPA336  =     54.4384561110552                                                  BMAJ337 =   0.0264665788007084                                                  BMIN337 =   0.0253606024791792                                                  BPA337  =     54.4325883026654                                                  BMAJ338 =   0.0264666506483599                                                  BMIN338 =   0.0253605710506501                                                  BPA338  =     54.4320935194344                                                  BMAJ339 =   0.0264667130411995                                                  BMIN339 =   0.0253605364608377                                                  BPA339  =     54.4283621619746                                                  BMAJ340 =    0.026466704390424                                                  BMIN340 =   0.0253605474005406                                                  BPA340  =     54.4335215125739                                                  BMAJ341 =   0.0264667082966237                                                  BMIN341 =   0.0253605609757274                                                  BPA341  =     54.4331498436921                                                  BMAJ342 =   0.0264665778143981                                                  BMIN342 =   0.0253606092842726                                                  BPA342  =     54.4333258527823                                                  BMAJ343 =    0.026466605867266                                                  BMIN343 =   0.0253604864675961                                                  BPA343  =     54.4356573995587                                                  BMAJ344 =    0.026466473360281                                                  BMIN344 =   0.0253605562926727                                                  BPA344  =     54.4379142387139                                                  BMAJ345 =   0.0264665187337149                                                  BMIN345 =   0.0253605840036096                                                  BPA345  =     54.4381984854521                                                  BMAJ346 =   0.0264663883946396                                                  BMIN346 =   0.0253605476407406                                                  BPA346  =     54.4406651752469                                                  BMAJ347 =   0.0264664948126462                                                  BMIN347 =   0.0253604231379315                                                  BPA347  =      54.438615873834                                                  BMAJ348 =   0.0264664816801762                                                  BMIN348 =   0.0253602814500075                                                  BPA348  =     54.4351737031894                                                  BMAJ349 =   0.0264665454617506                                                  BMIN349 =   0.0253602667032368                                                  BPA349  =     54.4351157030919                                                  BMAJ350 =   0.0264664890692609                                                  BMIN350 =   0.0253603262879565                                                  BPA350  =     54.4302688406194                                                  BMAJ351 =   0.0264663810365124                                                  BMIN351 =   0.0253603491232867                                                  BPA351  =      54.431633898173                                                  BMAJ352 =   0.0264663182178394                                                  BMIN352 =    0.025360305873412                                                  BPA352  =     54.4262556933998                                                  BMAJ353 =   0.0264662488418777                                                  BMIN353 =     0.02536017596562                                                  BPA353  =     54.4348261578877                                                  BMAJ354 =   0.0264662227884947                                                  BMIN354 =   0.0253601455708371                                                  BPA354  =     54.4362767719873                                                  BMAJ355 =   0.0264662843660649                                                  BMIN355 =   0.0253601381690527                                                  BPA355  =     54.4383312425303                                                  BMAJ356 =   0.0264663903542903                                                  BMIN356 =   0.0253599761625552                                                  BPA356  =     54.4305280100414                                                  BMAJ357 =   0.0264663818165462                                                  BMIN357 =   0.0253598892099386                                                  BPA357  =     54.4324860351744                                                  BMAJ358 =   0.0264664721634736                                                  BMIN358 =   0.0253598674705266                                                  BPA358  =     54.4363715525985                                                  BMAJ359 =    0.026466359879776                                                  BMIN359 =   0.0253597808190415                                                  BPA359  =     54.4379801899135                                                  BMAJ360 =   0.0264662014207242                                                  BMIN360 =   0.0253598464294796                                                  BPA360  =     54.4400785809428                                                  BMAJ361 =    0.026466081906774                                                  BMIN361 =   0.0253599008925597                                                  BPA361  =      54.441763672258                                                  BMAJ362 =   0.0264661096872819                                                  BMIN362 =   0.0253599390663638                                                  BPA362  =     54.4368479282397                                                  BMAJ363 =   0.0264662547888365                                                  BMIN363 =   0.0253598627512172                                                  BPA363  =     54.4438068631844                                                  BMAJ364 =   0.0264662211560255                                                  BMIN364 =      0.0253597469872                                                  BPA364  =     54.4462817704551                                                  BMAJ365 =   0.0264662761245419                                                  BMIN365 =   0.0253596229101373                                                  BPA365  =     54.4496550764067                                                  BMAJ366 =   0.0264661415615967                                                  BMIN366 =   0.0253595443658212                                                  BPA366  =     54.4451412680333                                                  BMAJ367 =   0.0264661531939931                                                  BMIN367 =   0.0253595089617345                                                  BPA367  =     54.4456810359431                                                  BMAJ368 =   0.0264660884703514                                                  BMIN368 =   0.0253594420542644                                                  BPA368  =     54.4435630811163                                                  BMAJ369 =   0.0264660857789919                                                  BMIN369 =   0.0253595325698213                                                  BPA369  =     54.4427443250381                                                  BMAJ370 =   0.0264661235845437                                                  BMIN370 =   0.0253595587054131                                                  BPA370  =     54.4388091547306                                                  BMAJ371 =   0.0264660445858351                                                  BMIN371 =    0.025359577681729                                                  BPA371  =     54.4411784592161                                                  BMAJ372 =   0.0264661108243037                                                  BMIN372 =   0.0253594837956263                                                  BPA372  =      54.441153421879                                                  BMAJ373 =    0.026465998554095                                                  BMIN373 =   0.0253593620838826                                                  BPA373  =     54.4443784528769                                                  BMAJ374 =    0.026465908534236                                                  BMIN374 =   0.0253594087553132                                                  BPA374  =     54.4457561837227                                                  BMAJ375 =   0.0264657883193599                                                  BMIN375 =    0.025359304610214                                                  BPA375  =     54.4463717860725                                                  BMAJ376 =   0.0264658127146603                                                  BMIN376 =   0.0253593200264389                                                  BPA376  =     54.4449501108502                                                  BMAJ377 =   0.0264658725465612                                                  BMIN377 =    0.025359242148126                                                  BPA377  =     54.4433958049453                                                  BMAJ378 =   0.0264658853649911                                                  BMIN378 =   0.0253593505755086                                                  BPA378  =     54.4463335151273                                                  BMAJ379 =   0.0264658767393297                                                  BMIN379 =    0.025359399569209                                                  BPA379  =     54.4518558685724                                                  BMAJ380 =   0.0264658560331172                                                  BMIN380 =   0.0253594012689472                                                  BPA380  =      54.453737201392                                                  BMAJ381 =   0.0264659101470138                                                  BMIN381 =    0.025359243012042                                                  BPA381  =     54.4497344671691                                                  BMAJ382 =   0.0264658616685334                                                  BMIN382 =   0.0253591596808442                                                  BPA382  =     54.4465718325631                                                  BMAJ383 =   0.0264657189245866                                                  BMIN383 =   0.0253590897499364                                                  BPA383  =     54.4498102636338                                                  BMAJ384 =   0.0264656456508505                                                  BMIN384 =    0.025359167410743                                                  BPA384  =     54.4520030180329                                                  BMAJ385 =   0.0264657780748592                                                  BMIN385 =   0.0253591039109256                                                  BPA385  =     54.4522969204883                                                  BMAJ386 =   0.0264659871380864                                                  BMIN386 =   0.0253590990558375                                                  BPA386  =     54.4518324226628                                                  BMAJ387 =   0.0264659269620196                                                  BMIN387 =   0.0253591493398297                                                  BPA387  =     54.4452292962228                                                  BMAJ388 =    0.026465699563622                                                  BMIN388 =   0.0253591698270251                                                  BPA388  =     54.4436940362004                                                  BMAJ389 =   0.0264656347462637                                                  BMIN389 =   0.0253592821762078                                                  BPA389  =     54.4436590882868                                                  BMAJ390 =   0.0264656431859936                                                  BMIN390 =   0.0253591317490269                                                  BPA390  =      54.448578475989                                                  BMAJ391 =   0.0264657417291631                                                  BMIN391 =   0.0253589686922291                                                  BPA391  =     54.4497571948041                                                  BMAJ392 =   0.0264657200588444                                                  BMIN392 =   0.0253586346116933                                                  BPA392  =      54.450935242429                                                  BMAJ393 =   0.0264655868531086                                                  BMIN393 =   0.0253586164267678                                                  BPA393  =     54.4511696826567                                                  BMAJ394 =   0.0264656009855272                                                  BMIN394 =   0.0253586391243307                                                  BPA394  =     54.4487353099611                                                  BMAJ395 =   0.0264656798878814                                                  BMIN395 =   0.0253587583141993                                                  BPA395  =     54.4474592147033                                                  BMAJ396 =   0.0264655872987192                                                  BMIN396 =   0.0253588220420604                                                  BPA396  =     54.4447321556061                                                  BMAJ397 =   0.0264655364307095                                                  BMIN397 =   0.0253587782412056                                                  BPA397  =      54.448549208691                                                  BMAJ398 =   0.0264654914169742                                                  BMIN398 =   0.0253588359465079                                                  BPA398  =     54.4449338820067                                                  BMAJ399 =   0.0264654151842029                                                  BMIN399 =   0.0253587403785099                                                  BPA399  =     54.4432830560239                                                  BMAJ400 =   0.0264654488204287                                                  BMIN400 =   0.0253587198250684                                                  BPA400  =     54.4376045240304                                                  BMAJ401 =   0.0264653381696924                                                  BMIN401 =    0.025358432906779                                                  BPA401  =     54.4383023490867                                                  BMAJ402 =   0.0264652617681771                                                  BMIN402 =   0.0253583695987138                                                  BPA402  =     54.4429583872128                                                  BMAJ403 =   0.0264651028070733                                                  BMIN403 =   0.0253583687605489                                                  BPA403  =     54.4481530602736                                                  BMAJ404 =   0.0264649926221211                                                  BMIN404 =   0.0253583467562028                                                  BPA404  =     54.4489930107305                                                  BMAJ405 =     0.02646516002026                                                  BMIN405 =    0.025358327022909                                                  BPA405  =      54.446569427634                                                  BMAJ406 =   0.0264650986308994                                                  BMIN406 =   0.0253582885457758                                                  BPA406  =     54.4484982678652                                                  BMAJ407 =   0.0264650305032468                                                  BMIN407 =   0.0253581328879632                                                  BPA407  =     54.4537514076099                                                  BMAJ408 =   0.0264649288081286                                                  BMIN408 =   0.0253580923031361                                                  BPA408  =     54.4579662043899                                                  BMAJ409 =   0.0264648683094873                                                  BMIN409 =   0.0253581525793035                                                  BPA409  =     54.4573993832407                                                  BMAJ410 =    0.026464890817698                                                  BMIN410 =   0.0253582746099326                                                  BPA410  =     54.4541424486274                                                  BMAJ411 =   0.0264648035472559                                                  BMIN411 =   0.0253583525061725                                                  BPA411  =     54.4539122680081                                                  BMAJ412 =   0.0264648420013266                                                  BMIN412 =   0.0253583208803857                                                  BPA412  =     54.4542437022404                                                  BMAJ413 =   0.0264649506054813                                                  BMIN413 =   0.0253582162578228                                                  BPA413  =      54.452309991435                                                  BMAJ414 =   0.0264651147144885                                                  BMIN414 =   0.0253581214227154                                                  BPA414  =     54.4509529769835                                                  BMAJ415 =    0.026465224521612                                                  BMIN415 =   0.0253580574378572                                                  BPA415  =     54.4475657573531                                                  BMAJ416 =   0.0264650430033819                                                  BMIN416 =    0.025358048294361                                                  BPA416  =      54.447437750786                                                  BMAJ417 =   0.0264647640892334                                                  BMIN417 =    0.025358065249026                                                  BPA417  =     54.4442374483754                                                  BMAJ418 =   0.0264645094185344                                                  BMIN418 =   0.0253581029067194                                                  BPA418  =     54.4444299691474                                                  BMAJ419 =   0.0264644373676137                                                  BMIN419 =   0.0253581326061281                                                  BPA419  =     54.4447363252752                                                  BMAJ420 =   0.0264645538942683                                                  BMIN420 =   0.0253580316980962                                                  BPA420  =     54.4411297701255                                                  BMAJ421 =   0.0264646798867282                                                  BMIN421 =   0.0253579585417558                                                  BPA421  =     54.4419220380646                                                  BMAJ422 =   0.0264647537619292                                                  BMIN422 =   0.0253579272150068                                                  BPA422  =     54.4381305701407                                                  BMAJ423 =   0.0264647345297856                                                  BMIN423 =   0.0253578367590412                                                  BPA423  =     54.4404159090809                                                  BMAJ424 =   0.0264646575702535                                                  BMIN424 =   0.0253580107233465                                                  BPA424  =     54.4422898425892                                                  BMAJ425 =   0.0264646541183704                                                  BMIN425 =   0.0253580802124081                                                  BPA425  =     54.4438335048984                                                  BMAJ426 =   0.0264645159257309                                                  BMIN426 =   0.0253581084858522                                                  BPA426  =     54.4409022912806                                                  BMAJ427 =   0.0264644547749863                                                  BMIN427 =   0.0253580690888045                                                  BPA427  =     54.4391679482383                                                  BMAJ428 =   0.0264643489329239                                                  BMIN428 =   0.0253580370356334                                                  BPA428  =     54.4384758184159                                                  BMAJ429 =    0.026464312754277                                                  BMIN429 =   0.0253580561591572                                                  BPA429  =     54.4431976772123                                                  BMAJ430 =   0.0264643245583008                                                  BMIN430 =   0.0253580976281311                                                  BPA430  =     54.4407876142971                                                  BMAJ431 =   0.0264642563879574                                                  BMIN431 =   0.0253580562865774                                                  BPA431  =     54.4400662207906                                                  BMAJ432 =   0.0264640861623178                                                  BMIN432 =   0.0253580205983418                                                  BPA432  =     54.4416128898721                                                  BMAJ433 =   0.0264640994738887                                                  BMIN433 =   0.0253579882134231                                                  BPA433  =     54.4406228706006                                                  BMAJ434 =   0.0264641203400428                                                  BMIN434 =   0.0253579937938163                                                  BPA434  =     54.4426865807756                                                  BMAJ435 =   0.0264641967616239                                                  BMIN435 =   0.0253579492503817                                                  BPA435  =     54.4399485481279                                                  BMAJ436 =   0.0264639670982681                                                  BMIN436 =    0.025358015031204                                                  BPA436  =     54.4426859103955                                                  BMAJ437 =   0.0264638504411382                                                  BMIN437 =   0.0253578925040625                                                  BPA437  =     54.4446261402445                                                  BMAJ438 =   0.0264638220676522                                                  BMIN438 =   0.0253579569118127                                                  BPA438  =     54.4446956724316                                                  BMAJ439 =   0.0264639706285375                                                  BMIN439 =   0.0253579306497829                                                  BPA439  =     54.4467351399687                                                  BMAJ440 =   0.0264639758230815                                                  BMIN440 =   0.0253579008820114                                                  BPA440  =     54.4442719260642                                                  BMAJ441 =   0.0264638909861885                                                  BMIN441 =   0.0253578205991653                                                  BPA441  =     54.4439964312439                                                  BMAJ442 =    0.026463921585733                                                  BMIN442 =   0.0253576038584174                                                  BPA442  =     54.4399468653267                                                  BMAJ443 =   0.0264639043866525                                                  BMIN443 =   0.0253576612491817                                                  BPA443  =     54.4384980794326                                                  BMAJ444 =   0.0264638503914528                                                  BMIN444 =   0.0253576219497497                                                  BPA444  =       54.43768716417                                                  BMAJ445 =    0.026463820980715                                                  BMIN445 =   0.0253575857611717                                                  BPA445  =     54.4416599329799                                                  BMAJ446 =   0.0264638040700569                                                  BMIN446 =   0.0253575671391204                                                  BPA446  =     54.4405494946533                                                  BMAJ447 =     0.02646385169956                                                  BMIN447 =   0.0253575825871731                                                  BPA447  =     54.4393744584847                                                  BMAJ448 =   0.0264637408888211                                                  BMIN448 =    0.025357636438837                                                  BPA448  =     54.4410884015181                                                  BMAJ449 =   0.0264636672659362                                                  BMIN449 =   0.0253574461841798                                                  BPA449  =     54.4445544294445                                                  BMAJ450 =   0.0264636152739002                                                  BMIN450 =   0.0253573358802668                                                  BPA450  =      54.441074944996                                                  BMAJ451 =   0.0264637154912809                                                  BMIN451 =   0.0253572103221669                                                  BPA451  =     54.4409468575166                                                  BMAJ452 =   0.0264636516315308                                                  BMIN452 =   0.0253570871363006                                                  BPA452  =     54.4382687756867                                                  BMAJ453 =    0.026463687657011                                                  BMIN453 =   0.0253571236340678                                                  BPA453  =     54.4401396403373                                                  BMAJ454 =   0.0264636461493554                                                  BMIN454 =    0.025357164276553                                                  BPA454  =     54.4397459138711                                                  BMAJ455 =   0.0264636209021425                                                  BMIN455 =   0.0253571312494129                                                  BPA455  =     54.4379784516562                                                  BMAJ456 =   0.0264635284592663                                                  BMIN456 =   0.0253570672012423                                                  BPA456  =     54.4361808861306                                                  BMAJ457 =   0.0264633981100409                                                  BMIN457 =   0.0253571040794951                                                  BPA457  =     54.4386357223071                                                  BMAJ458 =   0.0264634377000425                                                  BMIN458 =   0.0253570621115123                                                  BPA458  =     54.4431473196889                                                  BMAJ459 =   0.0264634641589177                                                  BMIN459 =   0.0253569794153711                                                  BPA459  =     54.4446402982504                                                  BMAJ460 =   0.0264635212080351                                                  BMIN460 =   0.0253568676294656                                                  BPA460  =     54.4448684968535                                                  BMAJ461 =   0.0264634321601456                                                  BMIN461 =   0.0253568375711121                                                  BPA461  =     54.4437676314044                                                  BMAJ462 =   0.0264634807722647                                                  BMIN462 =   0.0253568864140727                                                  BPA462  =     54.4406553169292                                                  BMAJ463 =   0.0264634568185761                                                  BMIN463 =   0.0253569397796837                                                  BPA463  =     54.4379680875708                                                  BMAJ464 =   0.0264633858515957                                                  BMIN464 =   0.0253570042425308                                                  BPA464  =     54.4389922615183                                                  BMAJ465 =   0.0264633247078752                                                  BMIN465 =    0.025356945017125                                                  BPA465  =     54.4399590491176                                                  BMAJ466 =    0.026463325208197                                                  BMIN466 =   0.0253569001934209                                                  BPA466  =      54.441649682176                                                  BMAJ467 =   0.0264633298399494                                                  BMIN467 =   0.0253569115545166                                                  BPA467  =     54.4410522416264                                                  BMAJ468 =   0.0264633225689564                                                  BMIN468 =   0.0253568411790258                                                  BPA468  =     54.4395413656129                                                  BMAJ469 =   0.0264632729946029                                                  BMIN469 =   0.0253567771807829                                                  BPA469  =     54.4417393151226                                                  BMAJ470 =   0.0264632139504823                                                  BMIN470 =   0.0253566442974001                                                  BPA470  =     54.4407448903257                                                  BMAJ471 =   0.0264632464624409                                                  BMIN471 =   0.0253565804904246                                                  BPA471  =     54.4415017009845                                                  BMAJ472 =   0.0264632615782319                                                  BMIN472 =   0.0253566731895174                                                  BPA472  =     54.4377890551877                                                  BMAJ473 =   0.0264632511167842                                                  BMIN473 =   0.0253567363623007                                                  BPA473  =     54.4363994189606                                                  BMAJ474 =    0.026463085412502                                                  BMIN474 =   0.0253566801615049                                                  BPA474  =     54.4388999916455                                                  BMAJ475 =   0.0264630188672533                                                  BMIN475 =   0.0253565259063197                                                  BPA475  =     54.4402556928814                                                  BMAJ476 =   0.0264628436076719                                                  BMIN476 =   0.0253565010858951                                                  BPA476  =     54.4410036798727                                                  BMAJ477 =   0.0264627821061021                                                  BMIN477 =   0.0253565511952857                                                  BPA477  =     54.4414886109098                                                  BMAJ478 =   0.0264627323186102                                                  BMIN478 =   0.0253566156959779                                                  BPA478  =      54.444482269388                                                  BMAJ479 =   0.0264627594270915                                                  BMIN479 =   0.0253565471153618                                                  BPA479  =     54.4507463249621                                                  BMAJ480 =   0.0264627048744405                                                  BMIN480 =   0.0253564961888133                                                  BPA480  =      54.448486103249                                                  BMAJ481 =   0.0264626643064564                                                  BMIN481 =   0.0253564110039649                                                  BPA481  =     54.4483668284947                                                  BMAJ482 =   0.0264626961611187                                                  BMIN482 =   0.0253565368756568                                                  BPA482  =     54.4399946654011                                                  BMAJ483 =   0.0264626144576276                                                  BMIN483 =   0.0253566225430047                                                  BPA483  =       54.44207525979                                                  BMAJ484 =   0.0264627201890194                                                  BMIN484 =    0.025356587074313                                                  BPA484  =     54.4403106347227                                                  BMAJ485 =   0.0264627003130267                                                  BMIN485 =    0.025356454226242                                                  BPA485  =     54.4458706649198                                                  BMAJ486 =   0.0264626755410908                                                  BMIN486 =   0.0253563633948962                                                  BPA486  =     54.4425336134332                                                  BMAJ487 =   0.0264625211360174                                                  BMIN487 =   0.0253562640004851                                                  BPA487  =     54.4442327907963                                                  BMAJ488 =   0.0264625591312999                                                  BMIN488 =   0.0253561136309167                                                  BPA488  =     54.4423636642625                                                  BMAJ489 =   0.0264624948185919                                                  BMIN489 =   0.0253560247451767                                                  BPA489  =     54.4424812951916                                                  BMAJ490 =   0.0264624307965489                                                  BMIN490 =   0.0253560609881055                                                  BPA490  =     54.4441104961523                                                  BMAJ491 =   0.0264623676511034                                                  BMIN491 =   0.0253561310165528                                                  BPA491  =     54.4445408076888                                                  BMAJ492 =    0.026462362136479                                                  BMIN492 =   0.0253560864187853                                                  BPA492  =     54.4446052717947                                                  BMAJ493 =    0.026462421578194                                                  BMIN493 =   0.0253560711236655                                                  BPA493  =     54.4436850666077                                                  BMAJ494 =   0.0264624393639211                                                  BMIN494 =   0.0253560109725863                                                  BPA494  =     54.4448269080091                                                  BMAJ495 =   0.0264623248330717                                                  BMIN495 =   0.0253559598139665                                                  BPA495  =     54.4452235862832                                                  BMAJ496 =   0.0264623075526105                                                  BMIN496 =   0.0253558614226976                                                  BPA496  =     54.4455459695659                                                  BMAJ497 =   0.0264622752044767                                                  BMIN497 =   0.0253558919907457                                                  BPA497  =     54.4475404151126                                                  BMAJ498 =   0.0264623760105433                                                  BMIN498 =   0.0253559237517831                                                  BPA498  =     54.4483671661126                                                  BMAJ499 =   0.0264624497598377                                                  BMIN499 =   0.0253560145863553                                                  BPA499  =     54.4455211707112                                                  BMAJ500 =   0.0264624287895189                                                  BMIN500 =   0.0253558583943097                                                  BPA500  =     54.4450772057024                                                  BMAJ501 =   0.0264623930608226                                                  BMIN501 =     0.02535572316394                                                  BPA501  =     54.4416555748588                                                  BMAJ502 =   0.0264622475890384                                                  BMIN502 =   0.0253557354725767                                                  BPA502  =     54.4449747499003                                                  BMAJ503 =   0.0264622408828069                                                  BMIN503 =   0.0253556940135426                                                  BPA503  =     54.4404706714168                                                  BMAJ504 =   0.0264621339300986                                                  BMIN504 =   0.0253557758609737                                                  BPA504  =     54.4446397335481                                                  BMAJ505 =   0.0264622526727961                                                  BMIN505 =   0.0253556945472358                                                  BPA505  =     54.4423561510693                                                  BMAJ506 =   0.0264622694287019                                                  BMIN506 =   0.0253557028733993                                                  BPA506  =     54.4503334482812                                                  BMAJ507 =   0.0264623014490676                                                  BMIN507 =   0.0253555323226058                                                  BPA507  =     54.4452739311841                                                  BMAJ508 =   0.0264621934025949                                                  BMIN508 =   0.0253555680122034                                                  BPA508  =     54.4464490355529                                                  BMAJ509 =   0.0264621201650786                                                  BMIN509 =   0.0253555934310998                                                  BPA509  =      54.441897661921                                                  BMAJ510 =   0.0264620172914806                                                  BMIN510 =    0.025355514917055                                                  BPA510  =     54.4447760961919                                                  BMAJ511 =   0.0264618837222042                                                  BMIN511 =   0.0253553842784231                                                  BPA511  =     54.4430328867044                                                  BMAJ512 =   0.0264618736500835                                                  BMIN512 =   0.0253553145138928                                                  BPA512  =     54.4437442018088                                                  BMAJ513 =   0.0264618651802817                                                  BMIN513 =   0.0253552925157914                                                  BPA513  =     54.4426121516185                                                  BMAJ514 =   0.0264619440427663                                                  BMIN514 =   0.0253553344481075                                                  BPA514  =     54.4439505884278                                                  BMAJ515 =   0.0264616164335389                                                  BMIN515 =   0.0253553757553767                                                  BPA515  =      54.446795998479                                                  BMAJ516 =   0.0264615955343609                                                  BMIN516 =   0.0253552553472426                                                  BPA516  =     54.4498058412453                                                  BMAJ517 =   0.0264616828506725                                                  BMIN517 =   0.0253551811630764                                                  BPA517  =     54.4461864101111                                                  BMAJ518 =   0.0264618718461963                                                  BMIN518 =   0.0253551846014415                                                  BPA518  =     54.4463210453102                                                  BMAJ519 =   0.0264618825742428                                                  BMIN519 =   0.0253553066424798                                                  BPA519  =     54.4449655202048                                                  BMAJ520 =   0.0264617534827535                                                  BMIN520 =   0.0253553349565427                                                  BPA520  =     54.4475770111593                                                  BMAJ521 =   0.0264617451206227                                                  BMIN521 =   0.0253552944449383                                                  BPA521  =     54.4426370022948                                                  BMAJ522 =   0.0264616899225856                                                  BMIN522 =   0.0253552456681919                                                  BPA522  =     54.4457871376233                                                  BMAJ523 =   0.0264616605896081                                                  BMIN523 =   0.0253552568207588                                                  BPA523  =     54.4458055580074                                                  BMAJ524 =   0.0264615584973014                                                  BMIN524 =   0.0253551892757781                                                  BPA524  =     54.4491634789335                                                  BMAJ525 =   0.0264615279078253                                                  BMIN525 =   0.0253551593240206                                                  BPA525  =      54.446642525673                                                  BMAJ526 =   0.0264615340624555                                                  BMIN526 =   0.0253550815095637                                                  BPA526  =     54.4449242254415                                                  BMAJ527 =   0.0264615557700501                                                  BMIN527 =   0.0253550633702509                                                  BPA527  =     54.4453248449245                                                  BMAJ528 =   0.0264615126491002                                                  BMIN528 =   0.0253550157132571                                                  BPA528  =     54.4490275570573                                                  BMAJ529 =   0.0264614283639025                                                  BMIN529 =   0.0253550036336554                                                  BPA529  =     54.4527888213887                                                  BMAJ530 =   0.0264614027134724                                                  BMIN530 =   0.0253548185688112                                                  BPA530  =      54.457882285502                                                  BMAJ531 =   0.0264614161953942                                                  BMIN531 =   0.0253546617791903                                                  BPA531  =     54.4600235848947                                                  BMAJ532 =   0.0264615802110689                                                  BMIN532 =   0.0253546384370907                                                  BPA532  =     54.4590888447439                                                  BMAJ533 =   0.0264614798058224                                                  BMIN533 =   0.0253547098609241                                                  BPA533  =     54.4628020614962                                                  BMAJ534 =   0.0264613219494341                                                  BMIN534 =   0.0253548524547373                                                  BPA534  =     54.4625591493709                                                  BMAJ535 =   0.0264612138712072                                                  BMIN535 =   0.0253548717482799                                                  BPA535  =      54.460654353288                                                  BMAJ536 =   0.0264611182583576                                                  BMIN536 =    0.025354818072215                                                  BPA536  =     54.4608920764047                                                  BMAJ537 =   0.0264612355270082                                                  BMIN537 =   0.0253547012850514                                                  BPA537  =      54.460713334731                                                  BMAJ538 =   0.0264613720350676                                                  BMIN538 =   0.0253545818685869                                                  BPA538  =     54.4596989854465                                                  BMAJ539 =   0.0264614245630274                                                  BMIN539 =   0.0253545173672727                                                  BPA539  =     54.4624887888937                                                  BMAJ540 =   0.0264614266455264                                                  BMIN540 =   0.0253544042826227                                                  BPA540  =     54.4582449460355                                                  BMAJ541 =   0.0264613365698569                                                  BMIN541 =   0.0253545761327234                                                  BPA541  =     54.4577699630701                                                  BMAJ542 =   0.0264613485568013                                                  BMIN542 =   0.0253544514959602                                                  BPA542  =     54.4520316873628                                                  BMAJ543 =   0.0264613616313465                                                  BMIN543 =   0.0253545145122323                                                  BPA543  =     54.4521427428302                                                  BMAJ544 =   0.0264613921770464                                                  BMIN544 =   0.0253543663322247                                                  BPA544  =     54.4561324258531                                                  BMAJ545 =   0.0264613364479566                                                  BMIN545 =   0.0253543729267061                                                  BPA545  =     54.4604952186246                                                  BMAJ546 =   0.0264613730585499                                                  BMIN546 =   0.0253544007470806                                                  BPA546  =     54.4593210728914                                                  BMAJ547 =   0.0264613416793293                                                  BMIN547 =   0.0253544254307137                                                  BPA547  =     54.4607497588715                                                  BMAJ548 =   0.0264612119620136                                                  BMIN548 =   0.0253543601546808                                                  BPA548  =     54.4601739224326                                                  BMAJ549 =   0.0264611077575498                                                  BMIN549 =   0.0253542895857846                                                  BPA549  =     54.4623017723923                                                  BMAJ550 =   0.0264610606782437                                                  BMIN550 =   0.0253542019512427                                                  BPA550  =     54.4626178911651                                                  BMAJ551 =   0.0264610104224798                                                  BMIN551 =   0.0253541250041336                                                  BPA551  =     54.4639114979408                                                  BMAJ552 =   0.0264610327011437                                                  BMIN552 =   0.0253540694105141                                                  BPA552  =     54.4662091496296                                                  BMAJ553 =   0.0264609571909418                                                  BMIN553 =   0.0253539797004173                                                  BPA553  =     54.4639007041927                                                  BMAJ554 =   0.0264610051233255                                                  BMIN554 =   0.0253538234701608                                                  BPA554  =     54.4673602358474                                                  BMAJ555 =   0.0264608837639175                                                  BMIN555 =   0.0253538710136394                                                  BPA555  =      54.463638770702                                                  BMAJ556 =   0.0264607806927219                                                  BMIN556 =   0.0253539338059618                                                  BPA556  =     54.4644270469049                                                  BMAJ557 =    0.026460773866872                                                  BMIN557 =   0.0253538641723161                                                  BPA557  =     54.4626893702195                                                  BMAJ558 =    0.026460768205132                                                  BMIN558 =   0.0253538370299564                                                  BPA558  =     54.4607835470509                                                  BMAJ559 =   0.0264609120442023                                                  BMIN559 =   0.0253536954117695                                                  BPA559  =     54.4622474549774                                                  BMAJ560 =   0.0264609174254745                                                  BMIN560 =   0.0253536552124013                                                  BPA560  =     54.4644660409638                                                  BMAJ561 =   0.0264607974388115                                                  BMIN561 =   0.0253535014861898                                                  BPA561  =     54.4697602395533                                                  BMAJ562 =   0.0264607486592744                                                  BMIN562 =    0.025353445515934                                                  BPA562  =     54.4680749086632                                                  BMAJ563 =     0.02646080999792                                                  BMIN563 =   0.0253535060278714                                                  BPA563  =     54.4687836414831                                                  BMAJ564 =    0.026460754384989                                                  BMIN564 =   0.0253535192408724                                                  BPA564  =     54.4713815081375                                                  BMAJ565 =   0.0264608653239375                                                  BMIN565 =   0.0253535246458645                                                  BPA565  =     54.4767803668073                                                  BMAJ566 =    0.026460877840351                                                  BMIN566 =   0.0253534066986733                                                  BPA566  =     54.4821669993531                                                  BMAJ567 =   0.0264608593913434                                                  BMIN567 =   0.0253533597155407                                                  BPA567  =     54.4835122616397                                                  BMAJ568 =   0.0264609945473098                                                  BMIN568 =   0.0253531016307403                                                  BPA568  =      54.476127045623                                                  BMAJ569 =   0.0264609196168206                                                  BMIN569 =   0.0253530064868657                                                  BPA569  =       54.47849385722                                                  BMAJ570 =   0.0264609610109663                                                  BMIN570 =   0.0253529331236319                                                  BPA570  =     54.4775021445175                                                  BMAJ571 =   0.0264608519789602                                                  BMIN571 =   0.0253529787568275                                                  BPA571  =     54.4867200853597                                                  BMAJ572 =   0.0264609478752564                                                  BMIN572 =   0.0253529102940071                                                  BPA572  =     54.4859877569159                                                  BMAJ573 =     0.02646087791094                                                  BMIN573 =   0.0253528309723766                                                  BPA573  =     54.4927891184509                                                  BMAJ574 =   0.0264609201870122                                                  BMIN574 =   0.0253527037844341                                                  BPA574  =      54.497151012199                                                  BMAJ575 =   0.0264609526019476                                                  BMIN575 =   0.0253526530523614                                                  BPA575  =     54.4987702967452                                                  BMAJ576 =    0.026460907166108                                                  BMIN576 =   0.0253525590303927                                                  BPA576  =     54.4968610080939                                                  BMAJ577 =    0.026460829723678                                                  BMIN577 =    0.025352459872582                                                  BPA577  =     54.4916211477628                                                  BMAJ578 =   0.0264608120799757                                                  BMIN578 =   0.0253524547591085                                                  BPA578  =     54.4939604387392                                                  BMAJ579 =   0.0264608415962212                                                  BMIN579 =   0.0253524462598943                                                  BPA579  =     54.4923258910651                                                  BMAJ580 =   0.0264607808909733                                                  BMIN580 =   0.0253523493621454                                                  BPA580  =      54.493899601969                                                  BMAJ581 =   0.0264607631940184                                                  BMIN581 =   0.0253524010027424                                                  BPA581  =     54.4922323631231                                                  BMAJ582 =    0.026460724957741                                                  BMIN582 =   0.0253523391666392                                                  BPA582  =     54.4940806560553                                                  BMAJ583 =   0.0264606984581931                                                  BMIN583 =   0.0253523074969387                                                  BPA583  =     54.4954616314831                                                  BMAJ584 =    0.026460693615093                                                  BMIN584 =   0.0253521697124152                                                  BPA584  =     54.4953637356129                                                  BMAJ585 =   0.0264606702405647                                                  BMIN585 =   0.0253520767118192                                                  BPA585  =      54.499749136045                                                  BMAJ586 =   0.0264607876511261                                                  BMIN586 =    0.025351979097654                                                  BPA586  =     54.5014574939494                                                  BMAJ587 =   0.0264607492096597                                                  BMIN587 =   0.0253519577976839                                                  BPA587  =     54.5006827037246                                                  BMAJ588 =   0.0264608021380606                                                  BMIN588 =   0.0253518359228547                                                  BPA588  =     54.4981797232894                                                  BMAJ589 =    0.026460646915497                                                  BMIN589 =   0.0253518428672138                                                  BPA589  =     54.5001395278643                                                  BMAJ590 =    0.026460601687678                                                  BMIN590 =    0.025351759302398                                                  BPA590  =     54.5029574463576                                                  BMAJ591 =   0.0264606612868369                                                  BMIN591 =   0.0253516985191827                                                  BPA591  =     54.5073335362084                                                  BMAJ592 =   0.0264605754551093                                                  BMIN592 =   0.0253516427537311                                                  BPA592  =     54.5066571941634                                                  BMAJ593 =   0.0264605496355506                                                  BMIN593 =   0.0253515807187236                                                  BPA593  =     54.5039971632421                                                  BMAJ594 =   0.0264605187966927                                                  BMIN594 =   0.0253515719215629                                                  BPA594  =     54.5039119117136                                                  BMAJ595 =    0.026460556941161                                                  BMIN595 =   0.0253515957488086                                                  BPA595  =     54.5035597912553                                                  BMAJ596 =   0.0264604930832431                                                  BMIN596 =   0.0253516358442418                                                  BPA596  =     54.5063138313969                                                  BMAJ597 =    0.026460627085793                                                  BMIN597 =   0.0253515321124716                                                  BPA597  =     54.5071399430114                                                  BMAJ598 =   0.0264605489788689                                                  BMIN598 =   0.0253515190824067                                                  BPA598  =     54.5086512037218                                                  BMAJ599 =   0.0264606374394136                                                  BMIN599 =   0.0253514390720408                                                  BPA599  =     54.5088010139408                                                  BMAJ600 =   0.0264606805798592                                                  BMIN600 =   0.0253512978215046                                                  BPA600  =     54.5067886396654                                                  BMAJ601 =   0.0264607507639654                                                  BMIN601 =   0.0253512335940772                                                  BPA601  =     54.5070759656997                                                  BMAJ602 =   0.0264607181663385                                                  BMIN602 =   0.0253512141684999                                                  BPA602  =      54.512024472575                                                  BMAJ603 =   0.0264607690349617                                                  BMIN603 =   0.0253512194960271                                                  BPA603  =     54.5220045030621                                                  BMAJ604 =   0.0264606261289827                                                  BMIN604 =   0.0253511696500257                                                  BPA604  =     54.5266430842372                                                  BMAJ605 =   0.0264606450098699                                                  BMIN605 =   0.0253509363667781                                                  BPA605  =     54.5250978703135                                                  BMAJ606 =   0.0264607205137169                                                  BMIN606 =   0.0253507713511481                                                  BPA606  =     54.5151887546333                                                  BMAJ607 =   0.0264608059080453                                                  BMIN607 =   0.0253507064298427                                                  BPA607  =     54.5069069007913                                                  BMAJ608 =   0.0264607736307371                                                  BMIN608 =   0.0253506654151583                                                  BPA608  =     54.5057495692087                                                  BMAJ609 =   0.0264605800005284                                                  BMIN609 =   0.0253508433097853                                                  BPA609  =     54.5084412413655                                                  BMAJ610 =   0.0264604683733839                                                  BMIN610 =    0.025350949310255                                                  BPA610  =     54.5095468382148                                                  BMAJ611 =   0.0264601155292276                                                  BMIN611 =   0.0253510852198264                                                  BPA611  =     54.5110979172782                                                  BMAJ612 =   0.0264601494197966                                                  BMIN612 =   0.0253509812182842                                                  BPA612  =     54.5136179053699                                                  BMAJ613 =   0.0264601606868716                                                  BMIN613 =   0.0253507034962499                                                  BPA613  =     54.5180665743184                                                  BMAJ614 =    0.026460512920626                                                  BMIN614 =    0.025350526224137                                                  BPA614  =     54.5168780736794                                                  BMAJ615 =   0.0264606210571242                                                  BMIN615 =   0.0253503296733389                                                  BPA615  =     54.5197218185748                                                  BMAJ616 =   0.0264605357119258                                                  BMIN616 =   0.0253505038155561                                                  BPA616  =     54.5182093271028                                                  BMAJ617 =   0.0264604345197722                                                  BMIN617 =   0.0253504435323142                                                  BPA617  =     54.5227961566073                                                  BMAJ618 =     0.02646041264647                                                  BMIN618 =   0.0253504195454871                                                  BPA618  =     54.5250185824495                                                  BMAJ619 =     0.02646038678441                                                  BMIN619 =   0.0253503733099796                                                  BPA619  =     54.5286893152142                                                  BMAJ620 =   0.0264604813356402                                                  BMIN620 =   0.0253503571465691                                                  BPA620  =     54.5321949120574                                                  BMAJ621 =   0.0264604457771413                                                  BMIN621 =   0.0253504405554331                                                  BPA621  =     54.5338186193101                                                  BMAJ622 =   0.0264603929330233                                                  BMIN622 =   0.0253503953892782                                                  BPA622  =     54.5290420201036                                                  BMAJ623 =   0.0264605073414611                                                  BMIN623 =   0.0253503209966452                                                  BPA623  =     54.5387698127669                                                  BMAJ624 =   0.0264629963389623                                                  BMIN624 =    0.025386275441589                                                  BPA624  =     58.3162704704913                                                  BMAJ625 =   0.0264629763758948                                                  BMIN625 =   0.0253861978893481                                                  BPA625  =     58.3175049041258                                                  BMAJ626 =   0.0264630172921815                                                  BMIN626 =    0.025386142640256                                                  BPA626  =     58.3138917703158                                                  BMAJ627 =   0.0264629059416844                                                  BMIN627 =   0.0253861647436461                                                  BPA627  =     58.3176232985271                                                  BMAJ628 =   0.0264626943209345                                                  BMIN628 =   0.0253865994816036                                                  BPA628  =     58.3240310664416                                                  BMAJ629 =   0.0264631381492453                                                  BMIN629 =   0.0253861433951482                                                  BPA629  =     58.3714867126603                                                  BMAJ630 =   0.0264894285709711                                                  BMIN630 =   0.0253517672998542                                                  BPA630  =     62.0290228505317                                                  BMAJ631 =   0.0264896657142323                                                  BMIN631 =   0.0253512183197142                                                  BPA631  =       62.01822666184                                                  BMAJ632 =   0.0264897296350901                                                  BMIN632 =   0.0253509212021795                                                  BPA632  =     62.0127260518948                                                  BMAJ633 =   0.0264894689299229                                                  BMIN633 =   0.0253509680846024                                                  BPA633  =      61.998801091918                                                  BMAJ634 =   0.0264678379102898                                                  BMIN634 =   0.0253536512900667                                                  BPA634  =     61.7205573730434                                                  BMAJ635 =   0.0264678982050028                                                  BMIN635 =   0.0253536609985856                                                  BPA635  =     61.7187664022674                                                  BMAJ636 =   0.0264674560882376                                                  BMIN636 =   0.0253532156834821                                                  BPA636  =     61.7130431022738                                                  BMAJ637 =   0.0263687359602012                                                  BMIN637 =   0.0252855520401825                                                  BPA637  =     62.4203073394292                                                  BMAJ638 =   0.0263688947937951                                                  BMIN638 =   0.0252855962314804                                                  BPA638  =      62.425714444336                                                  BMAJ639 =   0.0263690860921886                                                  BMIN639 =   0.0252856155210196                                                  BPA639  =     62.4264845841541                                                  BMAJ640 =    0.026421723516017                                                  BMIN640 =   0.0252852455938833                                                  BPA640  =    64.33205374140969                                                  BMAJ641 =    0.026585145741242                                                  BMIN641 =   0.0252001170563208                                                  BPA641  =     69.3909888083495                                                  BMAJ642 =   0.0264839544530169                                                  BMIN642 =   0.0252557709198553                                                  BPA642  =    71.25409398145069                                                  BMAJ643 =    0.026984324985809                                                  BMIN643 =   0.0253510568760861                                                  BPA643  =     76.2092049376228                                                  BMAJ644 =   0.0268952950553721                                                  BMIN644 =   0.0253436508490126                                                  BPA644  =    77.13828309289261                                                  BMAJ645 =   0.0268954954283861                                                  BMIN645 =   0.0253434432587896                                                  BPA645  =     77.1358293759333                                                  BMAJ646 =   0.0268900348325698                                                  BMIN646 =   0.0253367733391992                                                  BPA646  =    77.00634765468359                                                  BMAJ647 =                  0.0                                                  BMIN647 =                  0.0                                                  BPA647  =                  0.0                                                  BMAJ648 =                  0.0                                                  BMIN648 =                  0.0                                                  BPA648  =                  0.0                                                  BMAJ649 =                  0.0                                                  BMIN649 =                  0.0                                                  BPA649  =                  0.0                                                  BMAJ650 =                  0.0                                                  BMIN650 =                  0.0                                                  BPA650  =                  0.0                                                  BMAJ651 =                  0.0                                                  BMIN651 =                  0.0                                                  BPA651  =                  0.0                                                  BMAJ652 =                  0.0                                                  BMIN652 =                  0.0                                                  BPA652  =                  0.0                                                  BMAJ653 =                  0.0                                                  BMIN653 =                  0.0                                                  BPA653  =                  0.0                                                  BMAJ654 =                  0.0                                                  BMIN654 =                  0.0                                                  BPA654  =                  0.0                                                  BMAJ655 =                  0.0                                                  BMIN655 =                  0.0                                                  BPA655  =                  0.0                                                  BMAJ656 =                  0.0                                                  BMIN656 =                  0.0                                                  BPA656  =                  0.0                                                  BMAJ657 =                  0.0                                                  BMIN657 =                  0.0                                                  BPA657  =                  0.0                                                  BMAJ658 =                  0.0                                                  BMIN658 =                  0.0                                                  BPA658  =                  0.0                                                  BMAJ659 =                  0.0                                                  BMIN659 =                  0.0                                                  BPA659  =                  0.0                                                  BMAJ660 =                  0.0                                                  BMIN660 =                  0.0                                                  BPA660  =                  0.0                                                  BMAJ661 =                  0.0                                                  BMIN661 =                  0.0                                                  BPA661  =                  0.0                                                  BMAJ662 =                  0.0                                                  BMIN662 =                  0.0                                                  BPA662  =                  0.0                                                  BMAJ663 =                  0.0                                                  BMIN663 =                  0.0                                                  BPA663  =                  0.0                                                  BMAJ664 =                  0.0                                                  BMIN664 =                  0.0                                                  BPA664  =                  0.0                                                  BMAJ665 =                  0.0                                                  BMIN665 =                  0.0                                                  BPA665  =                  0.0                                                  BMAJ666 =                  0.0                                                  BMIN666 =                  0.0                                                  BPA666  =                  0.0                                                  BMAJ667 =                  0.0                                                  BMIN667 =                  0.0                                                  BPA667  =                  0.0                                                  BMAJ668 =                  0.0                                                  BMIN668 =                  0.0                                                  BPA668  =                  0.0                                                  BMAJ669 =                  0.0                                                  BMIN669 =                  0.0                                                  BPA669  =                  0.0                                                  BMAJ670 =                  0.0                                                  BMIN670 =                  0.0                                                  BPA670  =                  0.0                                                  BMAJ671 =                  0.0                                                  BMIN671 =                  0.0                                                  BPA671  =                  0.0                                                  BMAJ672 =                  0.0                                                  BMIN672 =                  0.0                                                  BPA672  =                  0.0                                                  BMAJ673 =                  0.0                                                  BMIN673 =                  0.0                                                  BPA673  =                  0.0                                                  BMAJ674 =                  0.0                                                  BMIN674 =                  0.0                                                  BPA674  =                  0.0                                                  BMAJ675 =                  0.0                                                  BMIN675 =                  0.0                                                  BPA675  =                  0.0                                                  BMAJ676 =                  0.0                                                  BMIN676 =                  0.0                                                  BPA676  =                  0.0                                                  BMAJ677 =                  0.0                                                  BMIN677 =                  0.0                                                  BPA677  =                  0.0                                                  BMAJ678 =                  0.0                                                  BMIN678 =                  0.0                                                  BPA678  =                  0.0                                                  BMAJ679 =                  0.0                                                  BMIN679 =                  0.0                                                  BPA679  =                  0.0                                                  BMAJ680 =                  0.0                                                  BMIN680 =                  0.0                                                  BPA680  =                  0.0                                                  BMAJ681 =                  0.0                                                  BMIN681 =                  0.0                                                  BPA681  =                  0.0                                                  BMAJ682 =                  0.0                                                  BMIN682 =                  0.0                                                  BPA682  =                  0.0                                                  BMAJ683 =                  0.0                                                  BMIN683 =                  0.0                                                  BPA683  =                  0.0                                                  BMAJ684 =                  0.0                                                  BMIN684 =                  0.0                                                  BPA684  =                  0.0                                                  BMAJ685 =                  0.0                                                  BMIN685 =                  0.0                                                  BPA685  =                  0.0                                                  BMAJ686 =                  0.0                                                  BMIN686 =                  0.0                                                  BPA686  =                  0.0                                                  BMAJ687 =                  0.0                                                  BMIN687 =                  0.0                                                  BPA687  =                  0.0                                                  BMAJ688 =                  0.0                                                  BMIN688 =                  0.0                                                  BPA688  =                  0.0                                                  BMAJ689 =                  0.0                                                  BMIN689 =                  0.0                                                  BPA689  =                  0.0                                                  BMAJ690 =                  0.0                                                  BMIN690 =                  0.0                                                  BPA690  =                  0.0                                                  BMAJ691 =                  0.0                                                  BMIN691 =                  0.0                                                  BPA691  =                  0.0                                                  BMAJ692 =                  0.0                                                  BMIN692 =                  0.0                                                  BPA692  =                  0.0                                                  SPECSYS3= 'BARYCENT'                                                            RESTFREQ=      1420405751.7667                                                  HISTORY wsclean -name /stimela_mount/output/cubes/cube_1/comb_10tracks_J1337_28_HISTORY HI_r10_t90_mg095_2_1 -j 64 -mem 100 -no-update-model-required -weight brHISTORY iggs 1.000 -taper-gaussian 90.0 -size 180 180 -scale 30.0asec -channels-HISTORY out 692 -pol I -channel-range 0 692 -niter 1000000 -auto-threshold 0.5 -HISTORY gain 0.1 -mgain 0.95 -multiscale-scale-bias 0.6 -fits-mask /stimela_mounHISTORY t/output/masking/J1337_28_r10_t90_0kms_cleanmask_1_mask.fits -padding 1.HISTORY 2 /stimela_mount/msdir/1618953945-J1337_28-galx_mst.ms /stimela_mount/msHISTORY dir/1620419957-J1337_28-galx_mst.ms /stimela_mount/msdir/1650316886-J133HISTORY 7_28-galx_mst.ms /stimela_mount/msdir/1651092377-J1337_28-galx_mst.ms /sHISTORY timela_mount/msdir/1651005988-J1337_28-galx_mst.ms /stimela_mount/msdir/HISTORY 1617213676-J1337_28-galx_mst.ms /stimela_mount/msdir/1617903678-J1337_28HISTORY -galx_mst.ms /stimela_mount/msdir/1619283083-J1337_28-galx_mst.ms /stimeHISTORY la_mount/msdir/1647545027-J1337_28-galx_mst.ms /stimela_mount/msdir/1645HISTORY 479204-J1337_28-galx_mst.ms                                             END                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
\ No newline at end of file
diff --git a/tests/test_datacube.py b/tests/test_datacube.py
index 427710c..5816eec 100644
--- a/tests/test_datacube.py
+++ b/tests/test_datacube.py
@@ -1,6 +1,7 @@
 import pytest
 import os
 import numpy as np
+from astropy import wcs
 from astropy import units as U
 from martini import DataCube
 from martini.datacube import HIfreq
@@ -13,6 +14,12 @@
     have_h5py = True
 
 
+def check_wcs_match(wcs1, wcs2):
+    assert set(wcs1.to_header().keys()) == set(wcs2.to_header().keys())
+    for k, v, _ in wcs1.to_header().cards:
+        assert v == wcs2.to_header()[k]
+
+
 class TestDataCube:
     def test_datacube_dimensions(self):
         """
@@ -26,67 +33,71 @@ def test_channel_mids(self, dc_zeros):
         """
         Check that first and last channel mids are spaced as expected.
         """
-        bandwidth = dc_zeros.channel_mids[-1] - dc_zeros.channel_mids[0]
-        assert bandwidth == (dc_zeros.n_channels - 1) * dc_zeros.channel_width
+        bandwidth = np.abs(dc_zeros.channel_mids[-1] - dc_zeros.channel_mids[0])
+        assert U.isclose(bandwidth, (dc_zeros.n_channels - 1) * dc_zeros.channel_width)
 
     def test_channel_edges(self, dc_zeros):
         """
         Check that first and last channel edges are spaced as expected.
         """
-        bandwidth = dc_zeros.channel_edges[-1] - dc_zeros.channel_edges[0]
+        bandwidth = np.abs(dc_zeros.channel_edges[-1] - dc_zeros.channel_edges[0])
         assert bandwidth == dc_zeros.n_channels * dc_zeros.channel_width
 
     def test_iterators(self, dc_zeros):
         """
         Check that iterators over slices give us expected lengths.
         """
-        assert len(list(dc_zeros.spatial_slices())) == dc_zeros.n_channels
-        assert len(list(dc_zeros.spectra())) == dc_zeros.n_px_x * dc_zeros.n_px_y
+        assert len(list(dc_zeros.spatial_slices)) == dc_zeros.n_channels
+        assert len(list(dc_zeros.spectra)) == dc_zeros.n_px_x * dc_zeros.n_px_y
 
     def test_freq_channels(self, dc_zeros):
         """
-        Check that we can convert to frequency channels.
+        Check that frequency channels match WCS.
         """
-        v_channel_mids = dc_zeros.channel_mids
-        v_channel_edges = dc_zeros.channel_edges
-        dc_zeros.freq_channels()
+        spec_unit = U.Unit(dc_zeros.wcs.wcs.cunit[dc_zeros.wcs.wcs.spec], format="fits")
+        mids = (
+            dc_zeros.wcs.sub(("spectral",)).all_pix2world(
+                np.arange(dc_zeros.n_channels), 0
+            )
+        ) * spec_unit
+        edges = (
+            dc_zeros.wcs.sub(("spectral",)).all_pix2world(
+                np.arange(dc_zeros.n_channels + 1) - 0.5, 0
+            )
+        ) * spec_unit
         assert U.allclose(
-            dc_zeros.channel_mids.to(U.m / U.s, equivalencies=U.doppler_radio(HIfreq)),
-            v_channel_mids,
+            mids.to(U.Hz, equivalencies=U.doppler_radio(HIfreq)),
+            dc_zeros.frequency_channel_mids,
         )
         assert U.allclose(
-            dc_zeros.channel_edges.to(U.m / U.s, equivalencies=U.doppler_radio(HIfreq)),
-            v_channel_edges,
+            edges.to(U.Hz, equivalencies=U.doppler_radio(HIfreq)),
+            dc_zeros.frequency_channel_edges,
         )
 
     def test_velocity_channels(self, dc_zeros):
         """
-        Check that we can convert to velocity channels.
+        Check that velocity channels match WCS.
         """
-        dc_zeros.freq_channels()
-        f_channel_mids = dc_zeros.channel_mids
-        f_channel_edges = dc_zeros.channel_edges
-        dc_zeros.velocity_channels()
+        spec_unit = U.Unit(dc_zeros.wcs.wcs.cunit[dc_zeros.wcs.wcs.spec], format="fits")
+        mids = (
+            dc_zeros.wcs.sub(("spectral",)).all_pix2world(
+                np.arange(dc_zeros.n_channels), 0
+            )
+        ) * spec_unit
+        edges = (
+            dc_zeros.wcs.sub(("spectral",)).all_pix2world(
+                np.arange(dc_zeros.n_channels + 1) - 0.5, 0
+            )
+        ) * spec_unit
         assert U.allclose(
-            dc_zeros.channel_mids.to(U.Hz, equivalencies=U.doppler_radio(HIfreq)),
-            f_channel_mids,
+            mids.to(U.m / U.s, equivalencies=U.doppler_radio(HIfreq)),
+            dc_zeros.velocity_channel_mids,
         )
         assert U.allclose(
-            dc_zeros.channel_edges.to(U.Hz, equivalencies=U.doppler_radio(HIfreq)),
-            f_channel_edges,
+            edges.to(U.m / U.s, equivalencies=U.doppler_radio(HIfreq)),
+            dc_zeros.velocity_channel_edges,
         )
 
-    def test_channel_mode_switching(self, dc_zeros):
-        """
-        Check that switching twice returns to starting point.
-        """
-        initial_mids = dc_zeros.channel_mids
-        initial_edges = dc_zeros.channel_edges
-        dc_zeros.freq_channels()
-        dc_zeros.velocity_channels()
-        assert U.allclose(dc_zeros.channel_edges, initial_edges)
-        assert U.allclose(dc_zeros.channel_mids, initial_mids)
-
     def test_add_pad(self, dc_zeros):
         """
         Check that adding pad gives desired shape.
@@ -145,16 +156,11 @@ def test_drop_pad_already_dropped(self, dc_zeros):
         assert dc_zeros.padx == 0
         assert dc_zeros.pady == 0
 
-    @pytest.mark.parametrize("with_fchannels", (False, True))
     @pytest.mark.parametrize("with_pad", (False, True))
-    def test_copy(self, dc_random, with_fchannels, with_pad):
+    def test_copy(self, dc_random, with_pad):
         """
         Check that copying a datacube copies all required information.
         """
-        if with_fchannels:
-            dc_random.freq_channels()
-        else:
-            dc_random.velocity_channels()
         if with_pad:
             dc_random.add_pad((3, 3))
         copy = dc_random.copy()
@@ -169,33 +175,35 @@ def test_copy(self, dc_random, with_fchannels, with_pad):
         for attr in (
             "px_size",
             "channel_width",
-            "velocity_centre",
+            "spectral_centre",
             "ra",
             "dec",
         ):
-            assert U.isclose(getattr(dc_random, attr), getattr(copy, attr))
+            assert U.isclose(
+                getattr(dc_random, attr),
+                getattr(copy, attr),
+                atol=1e-6 * getattr(dc_random, attr).unit,
+            )
         for attr in (
-            "channel_edges",
-            "channel_mids",
+            "_channel_edges",
+            "_channel_mids",
             "_array",
         ):
-            assert U.allclose(getattr(dc_random, attr), getattr(copy, attr))
-        assert str(dc_random.wcs) == str(copy.wcs)
+            if getattr(dc_random, attr) is not None:
+                assert U.allclose(getattr(dc_random, attr), getattr(copy, attr))
+            else:
+                assert getattr(copy, attr) is None
+        check_wcs_match(dc_random.wcs, copy.wcs)
 
     @pytest.mark.skipif(
         not have_h5py, reason="h5py (optional dependency) not available."
     )
-    @pytest.mark.parametrize("with_fchannels", (False, True))
     @pytest.mark.parametrize("with_pad", (False, True))
-    def test_save_and_load_state(self, dc_random, with_fchannels, with_pad):
+    def test_save_and_load_state(self, dc_random, with_pad):
         """
         Check that we can recover a datacube from a save file.
         """
         try:
-            if with_fchannels:
-                dc_random.freq_channels()
-            else:
-                dc_random.velocity_channels()
             if with_pad:
                 dc_random.add_pad((3, 3))
             dc_random.save_state("test_savestate.hdf5", overwrite=True)
@@ -211,66 +219,240 @@ def test_save_and_load_state(self, dc_random, with_fchannels, with_pad):
             for attr in (
                 "px_size",
                 "channel_width",
-                "velocity_centre",
+                "spectral_centre",
                 "ra",
                 "dec",
             ):
-                assert U.isclose(getattr(dc_random, attr), getattr(loaded, attr))
+                assert U.isclose(
+                    getattr(dc_random, attr),
+                    getattr(loaded, attr),
+                    atol=1e-6 * getattr(dc_random, attr).unit,
+                )
             for attr in (
                 "channel_edges",
                 "channel_mids",
                 "_array",
             ):
                 assert U.allclose(getattr(dc_random, attr), getattr(loaded, attr))
-            assert str(dc_random.wcs) == str(loaded.wcs)
+            check_wcs_match(dc_random.wcs, loaded.wcs)
         except Exception:
             raise
         finally:
             os.remove("test_savestate.hdf5")
 
-    def test_init_with_frequency_channel_spec(self, dc_random):
+    def test_init_with_mixed_spectral_centre_and_channel_width_units(self):
         """
-        Check that we can specify channel spacing and central channel in frequency units.
+        Check that we can specify channel spacing and central channel in mixed units.
         """
         const_kwargs = dict(
-            n_px_x=dc_random.n_px_x,
-            n_px_y=dc_random.n_px_y,
-            n_channels=dc_random.n_channels,
+            n_px_x=16,
+            n_px_y=16,
+            n_channels=16,
         )
-        f_velocity_centre = dc_random.velocity_centre.to(
-            U.Hz, equivalencies=U.doppler_radio(HIfreq)
+        spectral_centre = 3 * 70 * U.km / U.s
+        channel_width = 4 * U.km / U.s
+        f_channel_width = np.abs(
+            (spectral_centre + 0.5 * channel_width).to(
+                U.Hz, equivalencies=U.doppler_radio(HIfreq)
+            )
+            - (spectral_centre - 0.5 * channel_width).to(
+                U.Hz, equivalencies=U.doppler_radio(HIfreq)
+            )
         )
-        f_channel_width = (
-            dc_random.velocity_centre - 0.5 * dc_random.channel_width
-        ).to(U.Hz, equivalencies=U.doppler_radio(HIfreq)) - (
-            dc_random.velocity_centre + 0.5 * dc_random.channel_width
-        ).to(
+        f_spectral_centre = spectral_centre.to(
             U.Hz, equivalencies=U.doppler_radio(HIfreq)
         )
+        dc_vv = DataCube(
+            spectral_centre=spectral_centre,
+            channel_width=channel_width,
+            **const_kwargs,
+        )
         dc_vf = DataCube(
-            velocity_centre=dc_random.velocity_centre,
+            spectral_centre=spectral_centre,
             channel_width=f_channel_width,
             **const_kwargs,
         )
         dc_fv = DataCube(
-            velocity_centre=f_velocity_centre,
-            channel_width=dc_random.channel_width,
+            spectral_centre=f_spectral_centre,
+            channel_width=channel_width,
             **const_kwargs,
         )
         dc_ff = DataCube(
-            velocity_centre=f_velocity_centre,
+            spectral_centre=f_spectral_centre,
             channel_width=f_channel_width,
             **const_kwargs,
         )
-        assert U.allclose(dc_vf.channel_edges, dc_random.channel_edges)
-        assert U.allclose(dc_fv.channel_edges, dc_random.channel_edges)
-        assert U.allclose(dc_ff.channel_edges, dc_random.channel_edges)
+        # expect channels to match where units of channel_width match
+        # channel width as velocity:
+        assert U.allclose(
+            dc_vv.channel_mids,
+            dc_fv.channel_mids,
+        )
+        # channel width as frequency:
+        assert U.allclose(
+            dc_ff.channel_mids,
+            dc_vf.channel_mids,
+        )
 
-    def test_channels_equal_in_frequency(self, dc_zeros):
+    def test_channel_spacing(self, dc_zeros):
         """
-        Expect channels to be equally spaced in frequency, check that this is the case.
+        Expect channels to be equally spaced in units matching channel_width, check that
+        this is the case.
         """
-        dc_zeros.freq_channels()
+        assert U.get_physical_type(dc_zeros.channel_width) == U.get_physical_type(
+            dc_zeros.channel_mids
+        )
+        assert U.get_physical_type(dc_zeros.channel_width) == U.get_physical_type(
+            dc_zeros.channel_edges
+        )
         assert U.allclose(
-            np.diff(np.diff(dc_zeros.channel_edges)), 0 * U.Hz, atol=1e-5 * U.Hz
+            np.diff(np.diff(dc_zeros.channel_edges)),
+            0 * dc_zeros.channel_width.unit,
+            atol=1e-5 * dc_zeros.channel_width.unit,
         )
+        assert U.allclose(
+            np.diff(np.diff(dc_zeros.channel_edges)),
+            0 * dc_zeros.channel_width.unit,
+            atol=1e-5 * dc_zeros.channel_width.unit,
+        )
+        if U.get_physical_type(dc_zeros.channel_width) == "frequency":
+            assert U.allclose(
+                np.diff(np.diff(dc_zeros.frequency_channel_edges)),
+                0 * U.Hz,
+                atol=1e-5 * U.Hz,
+            )
+            assert U.allclose(
+                np.diff(np.diff(dc_zeros.frequency_channel_mids)),
+                0 * U.Hz,
+                atol=1e-5 * U.Hz,
+            )
+        elif U.get_physical_type(dc_zeros.channel_width) == "velocity":
+            assert U.allclose(
+                np.diff(np.diff(dc_zeros.velocity_channel_edges)),
+                0 * U.m / U.s,
+                atol=1e-5 * U.m / U.s,
+            )
+            assert U.allclose(
+                np.diff(np.diff(dc_zeros.velocity_channel_mids)),
+                0 * U.m / U.s,
+                atol=1e-5 * U.m / U.s,
+            )
+
+
+class TestDataCubeFromWCS:
+
+    def test_consistent_with_direct(self, dc_random):
+        """
+        Check that extracting WCS from a constructed DataCube and constructing
+        a DataCube from that WCS is consistent with the original DataCube.
+
+        Note that we shouldn't expect this to reproduce a padded cube, or use
+        a WCS from a padded cube!
+        """
+        from_wcs = DataCube.from_wcs(dc_random.wcs)
+        for attr in (
+            "n_px_x",
+            "n_px_y",
+            "n_channels",
+            "padx",
+            "pady",
+        ):
+            assert getattr(dc_random, attr) == getattr(from_wcs, attr)
+        for attr in (
+            "px_size",
+            "channel_width",
+            "spectral_centre",
+            "ra",
+            "dec",
+        ):
+            assert U.isclose(
+                getattr(dc_random, attr),
+                getattr(from_wcs, attr),
+                atol=1e-6 * getattr(dc_random, attr).unit,
+            )
+        # don't test for arrays matching, they should not:
+        for attr in (
+            "channel_edges",
+            "channel_mids",
+        ):
+            assert U.allclose(
+                getattr(dc_random, attr),
+                getattr(from_wcs, attr),
+                atol=1e-6 * getattr(dc_random, attr).unit,
+            )
+        check_wcs_match(dc_random.wcs, from_wcs.wcs)
+
+    @pytest.mark.parametrize(
+        "sample_header",
+        (
+            "IC_2574_NA_CUBE_THINGS.HEADER",
+            "comb_10tracks_J1337_28_HI_r10_t90_mg095_2.image.header",
+            "WALLABY_PILOT_CUTOUT_APPROX.HEADER",
+            # as previous but with axes reordered:
+            "comb_10tracks_J1337_28_HI_r10_t90_mg095_2.image.header.permuted",
+        ),
+    )
+    def test_sample_headers(self, sample_header):
+        """
+        Check that some real-world FITS headers can be used to initialize a DataCube.
+        """
+        with open(os.path.join("tests/data/", sample_header), "r") as f:
+            hdr = f.read()
+        with pytest.warns(wcs.FITSFixedWarning):
+            hdr_wcs = wcs.WCS(hdr)
+        if hdr_wcs.wcs.specsys == "":
+            with pytest.warns(
+                UserWarning,
+                match="Input WCS did not specify 'SPECSYS'",
+            ):
+                dc = DataCube.from_wcs(hdr_wcs)
+        elif hdr_wcs.wcs.specsys == "BARYCENT":
+            with pytest.warns(
+                UserWarning, match="Assuming ICRS barycentric reference system."
+            ):
+                dc = DataCube.from_wcs(hdr_wcs)
+        else:
+            dc = DataCube.from_wcs(hdr_wcs)
+        assert dc.stokes_axis == (hdr_wcs.naxis == 4)
+        centre_coords = hdr_wcs.all_pix2world(
+            [[n_px // 2 + (1 + n_px % 2) / 2 for n_px in hdr_wcs.pixel_shape]],
+            1,  # origin, i.e. index pixels from 1
+        ).squeeze()
+        for i, (centre_coord, unit, spacing, len_ax) in enumerate(
+            zip(
+                centre_coords,
+                hdr_wcs.world_axis_units,
+                hdr_wcs.wcs.cdelt,
+                hdr_wcs.pixel_shape,
+            )
+        ):
+            if i == hdr_wcs.wcs.lng:
+                assert U.isclose(dc.px_size, -spacing * U.Unit(unit, format="fits"))
+                assert dc.n_px_x == len_ax
+                assert U.isclose(dc.ra, centre_coord * U.Unit(unit, format="fits"))
+            elif i == hdr_wcs.wcs.lat:
+                assert U.isclose(dc.px_size, spacing * U.Unit(unit, format="fits"))
+                assert dc.n_px_y == len_ax
+                assert U.isclose(dc.dec, centre_coord * U.Unit(unit, format="fits"))
+            elif i == hdr_wcs.wcs.spec:
+                # This breaks if spacing is in Hz,
+                # need the frequency difference at the velocity centre:
+                hdr_specref = centre_coord * U.Unit(unit, format="fits")
+                assert U.isclose(
+                    dc.channel_width,
+                    np.abs(
+                        (hdr_specref + spacing * U.Unit(unit, format="fits")).to(
+                            dc.channel_width.unit, equivalencies=U.doppler_radio(HIfreq)
+                        )
+                        - (hdr_specref).to(
+                            dc.channel_width.unit, equivalencies=U.doppler_radio(HIfreq)
+                        )
+                    ),
+                )
+                assert dc.n_channels == len_ax
+                assert U.isclose(
+                    dc.spectral_centre,
+                    hdr_specref.to(
+                        dc.spectral_centre.unit, equivalencies=U.doppler_radio(HIfreq)
+                    ),
+                )
diff --git a/tests/test_fits_compliant.py b/tests/test_fits_compliant.py
index de371db..9c65bc2 100644
--- a/tests/test_fits_compliant.py
+++ b/tests/test_fits_compliant.py
@@ -1,31 +1,28 @@
-import pytest
 import os
 from astropy.io import fits
 
 
 class TestFITSCompliant:
-    @pytest.mark.parametrize("channels", ("frequency", "velocity"))
-    def test_cube_compliant(self, m, channels):
+    def test_cube_compliant(self, m):
         """
         Check that written cube complies with FITS standards enfored by astropy.
         """
         filename = "test_cube_compliant.fits"
         try:
-            m.write_fits(filename, overwrite=True, channels=channels)
+            m.write_fits(filename, overwrite=True)
             with fits.open(filename) as hdul:
                 hdul.verify("exception")  # errors here if failing
         finally:
             if os.path.exists(filename):
                 os.remove(filename)
 
-    @pytest.mark.parametrize("channels", ("frequency", "velocity"))
-    def test_beam_compliant(self, m, channels):
+    def test_beam_compliant(self, m):
         """
         Check that written beam file complies with FITS standards enforced by astropy.
         """
         filename = "test_beam_compliant.fits"
         try:
-            m.write_beam_fits(filename, overwrite=True, channels=channels)
+            m.write_beam_fits(filename, overwrite=True)
             with fits.open(filename) as hdul:
                 hdul.verify("exception")  # errors here if failing
         finally:
diff --git a/tests/test_martini.py b/tests/test_martini.py
index 3599bde..a6f01a9 100644
--- a/tests/test_martini.py
+++ b/tests/test_martini.py
@@ -9,6 +9,8 @@
 from martini.spectral_models import DiracDeltaSpectrum, GaussianSpectrum
 from astropy import units as U
 from astropy.io import fits
+from astropy import wcs
+from astropy.coordinates import FK5, ICRS
 from scipy.signal import fftconvolve
 
 try:
@@ -26,6 +28,178 @@
     have_matplotlib = True
 
 
+def check_mass_accuracy(m, out_mode):
+    if out_mode == "hdf5":
+        try:
+            import h5py
+        except ImportError:
+            pytest.skip()
+
+    # flux in channels
+    F = (m.datacube._array * m.datacube.px_size**2).sum((0, 1)).squeeze()  # Jy
+
+    # distance
+    D = m.source.distance
+
+    # channel width
+    dv = np.abs(np.diff(m.datacube.velocity_channel_edges))
+
+    # HI mass
+    MHI = np.sum(
+        2.36e5
+        * U.Msun
+        * D.to_value(U.Mpc) ** 2
+        * F.to_value(U.Jy)
+        * dv.to_value(U.km / U.s)
+    ).to(U.Msun)
+
+    # demand accuracy within 1% after source insertion
+    assert U.isclose(MHI, m.source.mHI_g.sum(), rtol=1e-2)
+
+    m.convolve_beam()
+
+    # radiant intensity
+    Irad = m.datacube._array.sum((0, 1)).squeeze()  # Jy / beam
+
+    # beam area, for an equivalent Gaussian beam
+    A = np.pi * m.beam.bmaj * m.beam.bmin / 4 / np.log(2) / U.beam
+
+    # distance
+    D = m.source.distance
+
+    # channel width
+    dv = np.abs(np.diff(m.datacube.velocity_channel_edges))
+
+    # flux
+    F = (Irad / A).to(U.Jy / U.arcsec**2) * m.datacube.px_size**2
+
+    # HI mass
+    MHI = np.sum(
+        2.36e5
+        * U.Msun
+        * D.to_value(U.Mpc) ** 2
+        * F.to_value(U.Jy)
+        * dv.to_value(U.km / U.s)
+    ).to(U.Msun)
+
+    # demand accuracy within 1% after beam convolution
+    assert U.isclose(MHI, m.source.mHI_g.sum(), rtol=1e-2)
+
+    if out_mode == "fits":
+        filename = "cube.fits"
+        try:
+            m.write_fits(filename)
+            with fits.open(filename) as f:
+                # distance
+                D = m.source.distance
+
+                # radiant intensity
+                fits_wcs = wcs.WCS(f[0].header)
+                Irad = U.Quantity(
+                    f[0].data.T.sum((0, 1)).squeeze(), unit=f[0].header["BUNIT"]
+                )
+
+                A = (
+                    np.pi
+                    * (f[0].header["BMAJ"] * U.deg)
+                    * (f[0].header["BMIN"] * U.deg)
+                    / 4
+                    / np.log(2)
+                    / U.beam
+                )
+                px_area = U.Quantity(
+                    np.abs(f[0].header["CDELT1"]), unit=f[0].header["CUNIT1"]
+                ) * U.Quantity(
+                    np.abs(f[0].header["CDELT2"]), unit=f[0].header["CUNIT2"]
+                )
+
+                # flux
+                F = (Irad / A).to(U.Jy / U.arcsec**2) * px_area
+
+                channel_edges = fits_wcs.sub(("spectral",)).all_pix2world(
+                    np.arange(fits_wcs.sub(("spectral",)).pixel_shape[0] + 1) - 0.5,
+                    0,
+                ) * U.Unit(fits_wcs.wcs.cunit[fits_wcs.wcs.spec], format="fits")
+                dv = np.abs(
+                    np.diff(
+                        channel_edges.squeeze().to(
+                            U.km / U.s, equivalencies=U.doppler_radio(HIfreq)
+                        )
+                    )
+                )
+
+                # HI mass
+                MHI = np.sum(
+                    2.36e5
+                    * U.Msun
+                    * D.to_value(U.Mpc) ** 2
+                    * F.to_value(U.Jy)
+                    * dv.to_value(U.km / U.s)
+                ).to(U.Msun)
+
+            # demand accuracy within 1% in output fits file
+            assert U.isclose(MHI, m.source.mHI_g.sum(), rtol=1e-2)
+
+        finally:
+            if os.path.exists(filename):
+                os.remove(filename)
+
+    if out_mode == "hdf5":
+        filename = "cube.hdf5"
+        try:
+            m.write_hdf5(filename)
+            with h5py.File(filename, "r") as f:
+                # distance
+                D = m.source.distance
+
+                # radiant intensity
+                Irad = U.Quantity(
+                    f["FluxCube"][()].sum((0, 1)).squeeze(),
+                    unit=f["FluxCube"].attrs["FluxCubeUnit"],
+                )
+
+                A = (
+                    np.pi
+                    * (f["FluxCube"].attrs["BeamMajor_in_deg"] * U.deg)
+                    * (f["FluxCube"].attrs["BeamMinor_in_deg"] * U.deg)
+                    / 4
+                    / np.log(2)
+                    / U.beam
+                )
+                dv = np.abs(
+                    np.diff(
+                        f["velocity_channel_edges"]
+                        * U.Unit(f["velocity_channel_edges"].attrs["Unit"])
+                    )
+                )
+                px_area = U.Quantity(
+                    np.abs(f["FluxCube"].attrs["deltaRA_in_RAUnit"]),
+                    unit=f["FluxCube"].attrs["RAUnit"],
+                ) * U.Quantity(
+                    np.abs(f["FluxCube"].attrs["deltaDec_in_DecUnit"]),
+                    unit=f["FluxCube"].attrs["DecUnit"],
+                )
+
+                # flux
+                F = (Irad / A).to(U.Jy / U.arcsec**2) * px_area
+
+                # HI mass
+                MHI = np.sum(
+                    2.36e5
+                    * U.Msun
+                    * D.to_value(U.Mpc) ** 2
+                    * F.to_value(U.Jy)
+                    * dv.to_value(U.km / U.s)
+                ).to(U.Msun)
+
+            # demand accuracy within 1% in output hdf5 file
+            assert U.isclose(MHI, m.source.mHI_g.sum(), rtol=1e-2)
+
+        finally:
+            if os.path.exists(filename):
+                os.remove(filename)
+
+
 class TestMartini:
     @pytest.mark.parametrize("sph_kernel", simple_kernels)
     @pytest.mark.parametrize("spectral_model", (DiracDeltaSpectrum, GaussianSpectrum))
@@ -39,17 +213,10 @@ def test_mass_accuracy(
         Martini.insert_source_in_cube.
         """
 
-        if out_mode == "hdf5":
-            try:
-                import h5py
-            except ImportError:
-                pytest.skip()
-
         hsm_g = (
             0.1 * U.kpc if sph_kernel.__name__ == "DiracDeltaKernel" else 1.0 * U.kpc
         )
         source = single_particle_source(hsm_g=hsm_g)
-
         # single_particle_source has a mass of 1E4Msun, temperature of 1E4K
         m = Martini(
             source=source,
@@ -59,185 +226,8 @@ def test_mass_accuracy(
             spectral_model=spectral_model(),
             sph_kernel=sph_kernel(),
         )
-
         m.insert_source_in_cube(progressbar=False)
-
-        # flux
-        F = m.datacube._array.sum() * m.datacube.px_size**2  # Jy
-
-        # distance
-        D = m.source.distance
-
-        # channel width
-        dv = m.datacube.channel_width
-
-        # HI mass
-        MHI = (
-            2.36e5
-            * U.Msun
-            * D.to_value(U.Mpc) ** 2
-            * F.to_value(U.Jy)
-            * dv.to_value(U.km / U.s)
-        ).to(U.Msun)
-
-        # demand accuracy within 1% after source insertion
-        assert U.isclose(MHI, m.source.mHI_g.sum(), rtol=1e-2)
-
-        m.convolve_beam()
-
-        # radiant intensity
-        Irad = m.datacube._array.sum()  # Jy / beam
-
-        # beam area, for an equivalent Gaussian beam
-        A = np.pi * m.beam.bmaj * m.beam.bmin / 4 / np.log(2) / U.beam
-
-        # distance
-        D = m.source.distance
-
-        # channel width
-        dv = m.datacube.channel_width
-
-        # flux
-        F = (Irad / A).to(U.Jy / U.arcsec**2) * m.datacube.px_size**2
-
-        # HI mass
-        MHI = (
-            2.36e5
-            * U.Msun
-            * D.to_value(U.Mpc) ** 2
-            * F.to_value(U.Jy)
-            * dv.to_value(U.km / U.s)
-        ).to(U.Msun)
-
-        # demand accuracy within 1% after beam convolution
-        assert U.isclose(MHI, m.source.mHI_g.sum(), rtol=1e-2)
-
-        if out_mode == "fits":
-            for channel_mode in ("velocity", "frequency"):
-                filename = f"cube_{channel_mode}.fits"
-                try:
-                    m.write_fits(filename, channels=channel_mode)
-                    with fits.open(filename) as f:
-                        # distance
-                        D = m.source.distance
-
-                        # radiant intensity
-                        Irad = U.Quantity(f[0].data.sum(), unit=f[0].header["BUNIT"])
-
-                        A = (
-                            np.pi
-                            * (f[0].header["BMAJ"] * U.deg)
-                            * (f[0].header["BMIN"] * U.deg)
-                            / 4
-                            / np.log(2)
-                            / U.beam
-                        )
-                        dchannel = np.abs(
-                            U.Quantity(
-                                f[0].header["CDELT3"], unit=f[0].header["CUNIT3"]
-                            )
-                        )
-                        if channel_mode == "velocity":
-                            dv = dchannel
-                        elif channel_mode == "frequency":
-                            channelmid = U.Quantity(
-                                f[0].header["CRVAL3"], unit=f[0].header["CUNIT3"]
-                            )
-                            dv = (channelmid - 0.5 * dchannel).to(
-                                U.km / U.s, equivalencies=U.doppler_radio(HIfreq)
-                            ) - (channelmid + 0.5 * dchannel).to(
-                                U.km / U.s, equivalencies=U.doppler_radio(HIfreq)
-                            )
-                        px_area = U.Quantity(
-                            np.abs(f[0].header["CDELT1"]), unit=f[0].header["CUNIT1"]
-                        ) * U.Quantity(
-                            np.abs(f[0].header["CDELT2"]), unit=f[0].header["CUNIT2"]
-                        )
-
-                        # flux
-                        F = (Irad / A).to(U.Jy / U.arcsec**2) * px_area
-
-                        # HI mass
-                        MHI = (
-                            2.36e5
-                            * U.Msun
-                            * D.to_value(U.Mpc) ** 2
-                            * F.to_value(U.Jy)
-                            * dv.to_value(U.km / U.s)
-                        ).to(U.Msun)
-
-                    # demand accuracy within 1% in output fits file
-                    assert U.isclose(MHI, m.source.mHI_g.sum(), rtol=1e-2)
-
-                finally:
-                    if os.path.exists(filename):
-                        os.remove(filename)
-
-        if out_mode == "hdf5":
-            for channel_mode in ("velocity", "frequency"):
-                filename = f"cube_{channel_mode}.hdf5"
-                try:
-                    m.write_hdf5(filename, channels=channel_mode)
-                    with h5py.File(filename, "r") as f:
-                        # distance
-                        D = m.source.distance
-
-                        # radiant intensity
-                        Irad = U.Quantity(
-                            f["FluxCube"][()].sum(),
-                            unit=f["FluxCube"].attrs["FluxCubeUnit"],
-                        )
-
-                        A = (
-                            np.pi
-                            * (f["FluxCube"].attrs["BeamMajor_in_deg"] * U.deg)
-                            * (f["FluxCube"].attrs["BeamMinor_in_deg"] * U.deg)
-                            / 4
-                            / np.log(2)
-                            / U.beam
-                        )
-                        dchannel = U.Quantity(
-                            np.abs(f["FluxCube"].attrs["deltaV_in_VUnit"]),
-                            unit=f["FluxCube"].attrs["VUnit"],
-                        )
-                        if channel_mode == "velocity":
-                            dv = dchannel
-                        elif channel_mode == "frequency":
-                            channelmid = U.Quantity(
-                                f["FluxCube"].attrs["V0_in_VUnit"],
-                                unit=f["FluxCube"].attrs["VUnit"],
-                            )
-                            dv = (channelmid - 0.5 * dchannel).to(
-                                U.km / U.s, equivalencies=U.doppler_radio(HIfreq)
-                            ) - (channelmid + 0.5 * dchannel).to(
-                                U.km / U.s, equivalencies=U.doppler_radio(HIfreq)
-                            )
-                        px_area = U.Quantity(
-                            np.abs(f["FluxCube"].attrs["deltaRA_in_RAUnit"]),
-                            unit=f["FluxCube"].attrs["RAUnit"],
-                        ) * U.Quantity(
-                            np.abs(f["FluxCube"].attrs["deltaDec_in_DecUnit"]),
-                            unit=f["FluxCube"].attrs["DecUnit"],
-                        )
-
-                        # flux
-                        F = (Irad / A).to(U.Jy / U.arcsec**2) * px_area
-
-                        # HI mass
-                        MHI = (
-                            2.36e5
-                            * U.Msun
-                            * D.to_value(U.Mpc) ** 2
-                            * F.to_value(U.Jy)
-                            * dv.to_value(U.km / U.s)
-                        ).to(U.Msun)
-
-                    # demand accuracy within 1% in output hdf5 file
-                    assert U.isclose(MHI, m.source.mHI_g.sum(), rtol=1e-2)
-
-                finally:
-                    if os.path.exists(filename):
-                        os.remove(filename)
+        check_mass_accuracy(m, out_mode)
 
     def test_convolve_beam(self, single_particle_source):
         """
@@ -248,7 +238,7 @@ def test_convolve_beam(self, single_particle_source):
             n_px_x=16,
             n_px_y=16,
             n_channels=16,
-            velocity_centre=source.distance * source.h * 100 * U.km / U.s / U.Mpc,
+            spectral_centre=source.distance * source.h * 100 * U.km / U.s / U.Mpc,
         )
         beam = GaussianBeam()
         noise = None
@@ -366,7 +356,7 @@ def test_prune_particles(
             n_px_x=2,
             n_px_y=2,
             n_channels=2,
-            velocity_centre=source.distance * source.h * 100 * U.km / U.s / U.Mpc,
+            spectral_centre=source.distance * source.h * 100 * U.km / U.s / U.Mpc,
             px_size=1 * U.arcsec,
             channel_width=1 * U.km / U.s,
             ra=0 * U.deg,
@@ -446,6 +436,137 @@ def test_preview(self, m_init):
             title="test",
         )
 
+    def test_source_to_datacube_coord_transformation(self, single_particle_source):
+        """
+        Check that transformation is applied if source and datacube have different
+        coordinate frames.
+        """
+        source = single_particle_source(hsm_g=0.01 * U.kpc)
+        assert source.coordinate_frame.name == "icrs"
+        datacube_icrs = DataCube(
+            n_px_x=16,
+            n_px_y=16,
+            n_channels=16,
+            channel_width=4 * U.km / U.s,
+            px_size=10 * U.arcsec,
+            spectral_centre=source.vsys,
+            ra=source.ra,
+            dec=source.dec,
+            coordinate_frame=ICRS(),
+        )
+        m_icrs = Martini(
+            source=source,
+            datacube=datacube_icrs,
+            beam=GaussianBeam(),
+            noise=None,
+            sph_kernel=DiracDeltaKernel(),
+            spectral_model=DiracDeltaSpectrum(),
+        )
+
+        def centre_pixels_slice(m):
+            datacube = m.datacube
+            return m.datacube._array[
+                datacube.n_px_x // 2
+                - 1
+                + datacube.padx : datacube.n_px_x // 2
+                + 1
+                + datacube.padx,
+                datacube.n_px_y // 2
+                - 1
+                + datacube.pady : datacube.n_px_y // 2
+                + 1
+                + datacube.pady,
+            ]
+
+        assert np.sum(centre_pixels_slice(m_icrs).sum()) == 0
+        m_icrs.insert_source_in_cube(progressbar=False)
+        assert np.sum(centre_pixels_slice(m_icrs).sum()) > 0
+
+        # ICRS is ~J2000 equinox. J1950 equinox is about a degree off,
+        # so we should completely miss the cube (16 pix of 10 arcsec).
+        datacube_fk5_J1950 = DataCube(
+            n_px_x=16,
+            n_px_y=16,
+            n_channels=16,
+            channel_width=4 * U.km / U.s,
+            px_size=10 * U.arcsec,
+            spectral_centre=source.vsys,
+            ra=source.ra,
+            dec=source.dec,
+            coordinate_frame=FK5(equinox="J1950"),
+        )
+        with pytest.raises(RuntimeError, match="No source particles in target region."):
+            Martini(
+                source=source,
+                datacube=datacube_fk5_J1950,
+                beam=GaussianBeam(),
+                noise=None,
+                sph_kernel=DiracDeltaKernel(),
+                spectral_model=DiracDeltaSpectrum(),
+            )
+
+    def test_source_to_datacube_specsys_transformation(self, single_particle_source):
+        """
+        Check that spectral reference transformation is applied if source and datacube
+        have different specsys.
+        """
+        source = single_particle_source(hsm_g=0.01 * U.kpc)
+        datacube_icrs = DataCube(
+            n_px_x=16,
+            n_px_y=16,
+            n_channels=16,
+            channel_width=4 * U.km / U.s,
+            px_size=10 * U.arcsec,
+            spectral_centre=source.vsys,
+            ra=source.ra,
+            dec=source.dec,
+            coordinate_frame=ICRS(),
+            specsys="icrs",
+        )
+        m_icrs = Martini(
+            source=source,
+            datacube=datacube_icrs,
+            beam=GaussianBeam(),
+            noise=None,
+            sph_kernel=DiracDeltaKernel(),
+            spectral_model=DiracDeltaSpectrum(),
+        )
+
+        def centre_channels_slice(m):
+            datacube = m.datacube
+            return m.datacube._array[
+                :, :, datacube.n_channels // 2 - 1 : datacube.n_channels // 2 + 1
+            ]
+
+        assert np.sum(centre_channels_slice(m_icrs).sum()) == 0
+        m_icrs.insert_source_in_cube(progressbar=False)
+        assert np.sum(centre_channels_slice(m_icrs).sum()) > 0
+
+        # ICRS and Galactocentric are offset by many km/s depending on direction
+        # so with 4 channels of 1 km/s we should completely miss the cube
+        datacube_galactocentric = DataCube(
+            n_px_x=16,
+            n_px_y=16,
+            n_channels=4,
+            channel_width=1 * U.km / U.s,
+            px_size=10 * U.arcsec,
+            spectral_centre=source.vsys,
+            ra=source.ra,
+            dec=source.dec,
+            coordinate_frame=ICRS(),
+            specsys="galactocentric",
+        )
+        assert datacube_galactocentric.wcs.wcs.specsys == "galactocentric"
+        with pytest.raises(RuntimeError, match="No source particles in target region."):
+            Martini(
+                source=source,
+                datacube=datacube_galactocentric,
+                beam=GaussianBeam(),
+                noise=None,
+                sph_kernel=DiracDeltaKernel(),
+                spectral_model=DiracDeltaSpectrum(),
+            )
+
 
 @pytest.mark.skipif(
     not have_multiprocess, reason="multiprocess (optional dependency) not available"
@@ -503,7 +624,7 @@ def test_mass_accuracy(self, spectral_model, single_particle_source, ra):
             spectral_model=spectral_model(),
             n_channels=32,
             channel_width=10 * U.km * U.s**-1,
-            velocity_centre=source.vsys,
+            spectral_centre=source.vsys,
         )
 
         m.insert_source_in_spectrum()
@@ -579,7 +700,7 @@ def test_prune_particles(
             spectral_model=spectral_model,
             n_channels=2,
             channel_width=1 * U.km / U.s,
-            velocity_centre=source.distance * source.h * 100 * U.km / U.s / U.Mpc,
+            spectral_centre=source.distance * source.h * 100 * U.km / U.s / U.Mpc,
         )
         # if more than 1px (datacube) + 4px (4*spectrum_half_width) then expect to prune
         if not expect_particle:
@@ -630,21 +751,20 @@ def test_preview(self, gp):
             title="test",
         )
 
-    @pytest.mark.parametrize("channels", ("frequency", "velocity"))
-    def test_channel_modes(self, single_particle_source, channels):
+    def test_channel_modes(self, single_particle_source):
         """
         Check that channels have expected units in both modes (frequency, velocity).
         """
         source = single_particle_source()
+        channel_width = 10 * U.km * U.s**-1
         m = GlobalProfile(
             source=source,
             spectral_model=GaussianSpectrum(sigma="thermal"),
             n_channels=32,
-            channel_width=10 * U.km * U.s**-1,
-            velocity_centre=source.vsys,
-            channels=channels,
+            channel_width=channel_width,
+            spectral_centre=source.vsys,
         )
-        expected_units = dict(frequency=U.Hz, velocity=U.km * U.s**-1)[channels]
+        expected_units = channel_width.unit
         # these will raise if there's a problem:
         m.channel_edges.to(expected_units)
         m.channel_mids.to(expected_units)
@@ -660,3 +780,35 @@ def test_view_spectrum(self, gp):
         gp.plot_spectrum()
         # with non-default arguments
         gp.plot_spectrum(fig=2, title="test", show_vsys=False)
+
+
+class TestMartiniWithDataCubeFromWCS:
+
+    @pytest.mark.parametrize("out_mode", ("fits", "hdf5"))
+    def test_source_insertion(self, dc_wcs, single_particle_source, out_mode):
+        datacube = dc_wcs
+        distance = (
+            datacube.spectral_centre.to(
+                U.km / U.s, equivalencies=U.doppler_radio(HIfreq)
+            )
+            / (70 * U.km / U.s / U.Mpc)
+        ).to(U.Mpc)
+        source = single_particle_source(
+            ra=datacube.ra,
+            dec=datacube.dec,
+            distance=distance,
+            hsm_g=(3 * datacube.px_size * distance).to(
+                U.kpc, equivalencies=U.dimensionless_angles()
+            ),
+        )
+        beam = GaussianBeam(bmaj=3 * datacube.px_size, bmin=3 * datacube.px_size)
+        m = Martini(
+            source=source,
+            datacube=datacube,
+            beam=beam,
+            noise=None,
+            spectral_model=GaussianSpectrum(sigma="thermal"),
+            sph_kernel=_CubicSplineKernel(),
+        )
+        m.insert_source_in_cube(progressbar=False)
+        check_mass_accuracy(m, out_mode)
diff --git a/tests/test_sources.py b/tests/test_sources.py
index 8e84473..ee4f725 100644
--- a/tests/test_sources.py
+++ b/tests/test_sources.py
@@ -270,7 +270,7 @@ def test_init_pixcoords(self):
             channel_width=1 * U.km / U.s,
         )
         expected_coords = (
-            np.vstack((np.arange(6)[::-1], np.arange(6), np.arange(6))) * U.pix
+            np.vstack((np.arange(6)[::-1], np.arange(6), np.arange(6)[::-1])) * U.pix
         )
         source._init_skycoords()
         source._init_pixcoords(datacube)
diff --git a/tests/test_spectral_models.py b/tests/test_spectral_models.py
index 41ca6e1..1685251 100644
--- a/tests/test_spectral_models.py
+++ b/tests/test_spectral_models.py
@@ -24,7 +24,7 @@ def test_init_spectra(self, sigma, single_particle_source):
         source._init_skycoords()
         spectral_model = GaussianSpectrum(sigma=sigma)
         datacube = DataCube(
-            n_channels=64, channel_width=4 * U.km / U.s, velocity_centre=source.vsys
+            n_channels=64, channel_width=4 * U.km / U.s, spectral_centre=source.vsys
         )
         spectral_model.init_spectra(source, datacube)
         expected_flux = (
@@ -60,12 +60,12 @@ def test_spectral_function(self, sigma, single_particle_source):
         source._init_skycoords()
         spectral_model = GaussianSpectrum(sigma=sigma)
         datacube = DataCube(
-            n_channels=64, channel_width=4 * U.km / U.s, velocity_centre=source.vsys
+            n_channels=64, channel_width=4 * U.km / U.s, spectral_centre=source.vsys
         )
         spectral_model.init_spectral_function_extra_data(source, datacube)
         spectrum = spectral_model.spectral_function(
-            datacube.channel_edges[:-1],
             datacube.channel_edges[1:],
+            datacube.channel_edges[:-1],
             U.Quantity([source.vsys]),  # expected from single_particle_source
         )
         assert U.isclose(spectrum.sum(), 1.0 * U.dimensionless_unscaled, rtol=1.0e-4)
@@ -80,7 +80,7 @@ def test_spectral_function_extra_data(self, sigma, source, request):
         source._init_skycoords()
         spectral_model = GaussianSpectrum(sigma=sigma)
         datacube = DataCube(
-            n_channels=64, channel_width=4 * U.km / U.s, velocity_centre=source.vsys
+            n_channels=64, channel_width=4 * U.km / U.s, spectral_centre=source.vsys
         )
         spectral_model.init_spectral_function_extra_data(source, datacube)
         extra_data = spectral_model.spectral_function_extra_data
@@ -100,7 +100,7 @@ def test_init_spectra(self, single_particle_source):
         source._init_skycoords()
         spectral_model = DiracDeltaSpectrum()
         datacube = DataCube(
-            n_channels=64, channel_width=4 * U.km / U.s, velocity_centre=source.vsys
+            n_channels=64, channel_width=4 * U.km / U.s, spectral_centre=source.vsys
         )
         spectral_model.init_spectra(source, datacube)
         expected_flux = (
@@ -125,11 +125,11 @@ def test_spectral_function(self, single_particle_source):
         source._init_skycoords()
         spectral_model = DiracDeltaSpectrum()
         datacube = DataCube(
-            n_channels=64, channel_width=4 * U.km / U.s, velocity_centre=source.vsys
+            n_channels=64, channel_width=4 * U.km / U.s, spectral_centre=source.vsys
         )
         spectrum = spectral_model.spectral_function(
-            datacube.channel_edges[:-1],
-            datacube.channel_edges[1:],
+            datacube.velocity_channel_edges[1:],
+            datacube.velocity_channel_edges[:-1],
             U.Quantity([source.vsys]),  # expected from _SingleParticleSource
         )
         assert U.isclose(spectrum.sum(), 1.0 * U.dimensionless_unscaled, rtol=1.0e-4)
@@ -141,7 +141,7 @@ def test_spectral_function_extra_data(self, single_particle_source):
         source = single_particle_source()
         source._init_skycoords()
         datacube = DataCube(
-            n_channels=64, channel_width=4 * U.km / U.s, velocity_centre=source.vsys
+            n_channels=64, channel_width=4 * U.km / U.s, spectral_centre=source.vsys
         )
         spectral_model = DiracDeltaSpectrum()
         spectral_model.init_spectral_function_extra_data(source, datacube)
diff --git a/tests/test_sph_kernels.py b/tests/test_sph_kernels.py
index a9f1116..5433ab7 100644
--- a/tests/test_sph_kernels.py
+++ b/tests/test_sph_kernels.py
@@ -240,7 +240,7 @@ def k():
                 n_channels=32,
                 px_size=68.75493542 * U.arcsec,
                 channel_width=10 * U.km / U.s,
-                velocity_centre=source.vsys,
+                spectral_centre=source.vsys,
             )
             m = Martini(
                 source=source,
diff --git a/tests/test_write.py b/tests/test_write.py
deleted file mode 100644
index 7a65074..0000000
--- a/tests/test_write.py
+++ /dev/null
@@ -1,98 +0,0 @@
-import pytest
-import os
-from astropy.io import fits
-
-try:
-    import h5py
-except ImportError:
-    have_h5py = False
-else:
-    have_h5py = True
-
-
-class TestWriteFits:
-    def test_write_fits_freqchannels(self, m):
-        """
-        Check that fits cube gets written with frequency channels.
-        """
-        filename = "cube_f.fits"
-        try:
-            m.write_fits(filename, channels="frequency")
-            with fits.open(filename) as f:
-                hdr = f[0].header
-            assert "FREQ" in hdr["CTYPE3"]
-        finally:
-            if os.path.exists(filename):
-                os.remove(filename)
-
-    def test_write_fits_velchannels(self, m):
-        """
-        Check that fits cube gets written with velocity channels.
-        """
-        filename = "cube_v.fits"
-        try:
-            m.write_fits(filename, channels="velocity")
-            with fits.open(filename) as f:
-                hdr = f[0].header
-            assert hdr["CTYPE3"] == "VRAD"
-        finally:
-            if os.path.exists(filename):
-                os.remove(filename)
-
-    def test_write_fits_beam_freqchannels(self, m):
-        """
-        Check that fits beam cube gets written with frequency channels.
-        """
-        filename = "beam_f.fits"
-        try:
-            m.write_beam_fits(filename, channels="frequency")
-            with fits.open(filename) as f:
-                hdr = f[0].header
-            assert "FREQ" in hdr["CTYPE3"]
-        finally:
-            if os.path.exists(filename):
-                os.remove(filename)
-
-    def test_write_fits_beam_velchannels(self, m):
-        """
-        Check that fits beam cube gets written with velocity channels.
-        """
-        filename = "beam_v.fits"
-        try:
-            m.write_beam_fits(filename, channels="velocity")
-            with fits.open(filename) as f:
-                hdr = f[0].header
-            assert "VRAD" in hdr["CTYPE3"]
-        finally:
-            if os.path.exists(filename):
-                os.remove(filename)
-
-
-@pytest.mark.skipif(not have_h5py, reason="h5py (optional dependency) not available.")
-class TestWriteHDF5:
-
-    def test_write_hdf5_freqchannels(self, m):
-        """
-        Check that hdf5 cube gets written with frequency channels.
-        """
-        filename = "cube_f.hdf5"
-        try:
-            m.write_hdf5(filename, channels="frequency")
-            with h5py.File(filename, "r") as f:
-                assert f["FluxCube"].attrs["VProjType"] == "FREQ"
-        finally:
-            if os.path.exists(filename):
-                os.remove(filename)
-
-    def test_write_hdf5_velchannels(self, m):
-        """
-        Check that hdf5 cube gets written with velocity channels.
-        """
-        filename = "cube_v.hdf5"
-        try:
-            m.write_hdf5(filename, channels="velocity")
-            with h5py.File(filename, "r") as f:
-                assert f["FluxCube"].attrs["VProjType"] == "VRAD"
-        finally:
-            if os.path.exists(filename):
-                os.remove(filename)