API Reference#

madcubapy.coordinates Package#

The madcubapy.coordinates package provides functions to help the user work with coordinates and transformations.

Functions#

angle_to_pixels(length, fitsmap[, axis, log])

Convert a length value (or values) in angular units to data pixels.

fits_to_python(points)

Simple function to convert one or more points from FITS coordinates to python coordinates (numpy and matplotlib image).

get_angular_offset_points(points, ref_point, ...)

Get offset coordinates of a point or set of points, with respect to a reference point in angular units.

get_angular_separation(points, ref_point, ...)

Get separation between a point or set of points, and a reference pixel in angular units.

get_physical_offset_points(points, ...)

Get offset coordinates of a point or set of points, with respect to a reference point in physical distance units.

get_physical_separation(points, ref_point, ...)

Get separation between a point or set of points, and a reference pixel in physical distance units.

pixel_to_world(points, fitsmap[, origin, log])

Convert a set of points in pixel coordinates (python or FITS) to world coordinates.

pixels_to_angle(pix_length, fitsmap[, axis, log])

Convert an angle value (or values) in pixels to an angular quantity.

python_to_fits(points)

Simple function to convert one or more points from python coordinates (numpy and matplotlib image) to FITS coordinates.

transform_coords_axes(ref_ax, target_ax, points)

Transform the pixel coordinates of one or more points between two WCSAxes.

transform_coords_fitsmap(ref_fitsmap, ...[, ...])

Transform the pixel coordinates of one or more points between two maps.

world_to_pixel(points, fitsmap[, origin, log])

Convert a set of points in world coordinates to pixel coordinates (python or FITS).

Classes#

SpectralData(value[, unit, frame_type, ...])

Wrapper for SpectralCoord that adds support for rest-frame frequencies input.