Skip to content

v2.1.0

Compare
Choose a tag to compare
@kyleaoman kyleaoman released this 21 Jun 11:18
· 122 commits to main since this release
585a491

What's Changed

  • There is a new example notebook showcasing how MARTINI can be used to add a simulated source to an existing observational data cube.
  • A new initialisation method for DataCube objects has been added in DataCube.from_wcs. This allows using an astropy.wcs.WCS object (trivially created from a FITS header) to set up a DataCube. It's now much easier to make mocks exactly matching an observed data cube (shape, pixel size, channel spacing, etc.).
  • The above new feature revealed some shortcoming in how MARTINI handles coordinates and, especially, how channels were implemented (switching between frequency and velocity channels, specifically). The internals have been overhauled but will behave essentially as before with default options.
  • There are now options to specify a coordinate frame (using astropy.coordinates classes) of the source and data cube. For the data cube, the spectral reference frame (e.g. LSR or barycentric) can also be controlled. All of these default to ICRS and if left alone will behave as in earlier MARTINI versions. This finer control could be useful in workflows such as inserting a simulated source into an observed data cube.
  • Related to the above, some minor changes to the MARTINI API were needed. These are signposted by DeprecationWarnings, so attempting to use obsolete features will generate instructions on how to adapt existing code.

Full Changelog: v2.0.13...v2.1.0