spec_pix_to_world

FITS_tools.spectral_regrid.spec_pix_to_world(pixel, wcs, axisnumber, unit=None)[source] [edit on github]

Given a WCS, an axis ID, and a pixel ID, return the WCS spectral value at a pixel location