Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (40 sloc) 1.58 KB

Tools

Image Regridding

FITS_tools.hcongrid.hcongrid is meant to replicate hcongrid and hastrom. It uses scipy's interpolation routines.

FITS_tools.hcongrid.wcsalign does the same thing as hcongrid but uses pyast as its backend.

Cube Regridding

FITS_tools.cube_regrid.regrid_fits_cube reprojects a cube to a new grid using scipy's interpolation routines.

FITS_tools.match_images.match_fits_cubes takes two cubes, and reprojects the first to the coordinates of the second (it's a wrapper)

For a flux-conserving (but slower) approach, there is a wrapper of montage in python-montage.

Reference/API

.. automodapi:: FITS_tools
    :no-inheritance-diagram:

.. automodapi:: FITS_tools.cube_regrid
    :no-inheritance-diagram:

.. automodapi:: FITS_tools.downsample
    :no-inheritance-diagram:

.. automodapi:: FITS_tools.spectral_regrid
    :no-inheritance-diagram:

.. automodapi:: FITS_tools.hcongrid
    :no-inheritance-diagram:

.. automodapi:: FITS_tools.match_images
    :no-inheritance-diagram:

.. automodapi:: FITS_tools.strip_headers
    :no-inheritance-diagram:

.. automodapi:: FITS_tools.load_header
    :no-inheritance-diagram:

.. automodapi:: FITS_tools.header_tools
    :no-inheritance-diagram: