Attention
This is a critical bugfix release that corrects a problem that could affect your science results. Please update as soon as possible and check whether your analysis has been impacted by this bug.
This version fixes a critical bug when retrieving the spaxels associated with a bin, as well as a problem with the calculation of the inverse variance for deredden datacubes. It also simplifies the library namespace allowing for easier access to the most used Tools.
In version 2.2 we introduced the concept of Bin as a collection of spaxels that belong to the same binning unit. As part of the API, one can use the spaxels
attribute to access a list of the spaxels that are included in the bin. The bug now fixed caused a list of incorrect spaxels to be associated with the bin, due to an inversion in the (x, y)
order of the spaxels. Before 2.2.6 one would get
>>> cube = Cube('8485-1901')
>>> maps = cube.getMaps('HYB10')
>>> bb = maps[22, 14]
>>> bb.spaxels
[<Marvin Spaxel (x=21, y=13, loaded=False),
<Marvin Spaxel (x=21, y=14, loaded=False),
<Marvin Spaxel (x=22, y=13, loaded=False),
<Marvin Spaxel (x=22, y=14, loaded=False)]
where the x and y values should be
[<Marvin Spaxel (x=13, y=21, loaded=False),
<Marvin Spaxel (x=14, y=21, loaded=False),
<Marvin Spaxel (x=13, y=22, loaded=False),
<Marvin Spaxel (x=14, y=22, loaded=False)]
The DataCube
quantity includes a deredden
method that applies the reddening correction to the flux and inverse variance in the datacube. The inverse variance associated to the derredden flux had a bug in its calculation and was incorrect in all cases. That has now been fixed. It also fixes the spelling of deredden
(😅).
Starting with this release, Marvin provides access to MPL-7, the latest MaNGA Product Launch. Please read the release notes for this version to understand what has changed. MPL-7 is now the default release when Marvin is imported.
In MPL-7 we have made HYB10
the default bintype. Hybrid-binned Maps
and ModelCubes
use different binning schemes depending on the property measured. Before using HYB10
make sure you read the documentation and understand how to use the data. For HYB10
the Bin
class is somehow limited, since it does not allow for different binning schemes depending on the measured quantity. We are planning a major reimplementation of how bins are handled, which we will release with Marvin 2.3.0. In the meantime, please be aware of these limitations when using HYB10
.
Prior to 2.2.6 accessing different Tools classes was inconvenient since one would need to import them independently (e.g., from marvin.tools.cube import Cube
, from marvin.tools.maps import Maps
, etc.) This version makes access easier by exposing all the Tools from the marvin.tools
namespace so that you can now do
import marvin
cube = marvin.tools.Cube('8485-1901')
maps = marvin.tools.Maps('7443-12701')
Spectrum.plot
¶Extra arguments passed to Spectrum.plot
are now redirected to matplotlib.axes.Axes.plot
. This provides extra flexibility for your plots. For instance, you can now set labels for the legend associated with your plot
ax = spectrum.plot(use_std=True, label='flux')
ax.plot(spectrum.wavelength, model_flux, label='model')
ax.legend()
For MPL-6, we now raise an explicit error when attempting to apply the correction to stellar_sigma
, using the inst_sigma_correction
method. The error message now suggests to upgrade to MPL-7 data. For the web display of the stellar_sigma
and emline_gsigma
maps, we now apply the sigma correction automatically. The corrected map is indicated via Corrected: stellar_sigma map title.
Marvin 2.2.0 brings significant improvements in the way you interact with MaNGA data. Try the Jupyter Notebook for a small sample.
Maps
and ModelCubes
cube[i, j]
returns the same result as cube.getSpaxel(x=j, y=i, xyorig='lower')
.elpetro_absmag
. Absolute magnitudes are now the default for plotting on the web.FileNotFoundError
if the data file is missing.elpetro_absmag_r
being replaced by elpetro_absmaelpetro_mag_g_r
.value
, ivar
, and mask
arrays (e.g., BPT masks).ra
and dec
as properties.ha_to_hb
ratio.Marvin 2.0 is a complete overhaul of Marvin 1.0, converting Marvin into a full suite of interaction tools.
Marvin 2.0 introduces two new modes of operations, Tools (marvin.tools) and API (marvin.api), to the Marvin environment, and introduces an extensive redesign of the Marvin web app.
The major improvements and additions in this release: