Reference/API

pydis Package

Functions

AirmassCor(obj_wave, obj_flux, airmass[, …])

Correct the spectrum based on the airmass

ApplyFluxCal(obj_wave, obj_flux, obj_err, …)

CoAddFinal(frames[, mode, display])

DefFluxCal(obj_wave, obj_flux[, stdstar, …])

Parameters

HeNeAr_fit(calimage[, linelist, interac, …])

Determine the wavelength solution to be used for the science images.

ReduceCoAdd(speclist, flatlist, biaslist, …)

A special version of autoreduce, that assumes all the target images want to be median co-added and then extracted.

ReduceTwo(speclist[, flatlist, biaslist, …])

ap_extract(img, trace[, apwidth, skysep, …])

ap_trace(img[, fmask, nsteps, interac, …])

Trace the spectrum aperture in an image

autoHeNeAr(calimage[, trim, maxdist, …])

(REWORD later) Find emission lines, match triangles to dictionary (hash table), filter out junk, check wavelength order, assign wavelengths!

autoreduce(speclist[, flatlist, biaslist, …])

A wrapper routine to carry out the full steps of the spectral reduction and calibration.

biascombine(biaslist[, output, trim, silent])

Combine the bias frames in to a master bias image.

find_peaks(wave, flux[, pwidth, pthreshold, …])

Given a slice thru a HeNeAr image, find the significant peaks.

flatcombine(flatlist, bias[, output, trim, …])

Combine the flat frames in to a master flat image.

line_trace(img, pcent, wcent[, fmask, …])

Trace the lines of constant wavelength along the spatial dimension.

lines_to_surface(img, xcent, ycent, wcent[, …])

Turn traced arc lines into a wavelength solution across the entire chip

mapwavelength(trace, wavemap[, mode])

Compute the wavelength along the center of the trace, to be run after the HeNeAr_fit routine.

normalize(wave, flux[, mode, order])

Return a flattened, normalized spectrum.

test([package, test_path, args, plugins, …])

Run the tests using py.test.

Classes

OpenImg(file[, trim])

A simple wrapper for astropy.io.fits (pyfits) to open and extract the data we want from images and headers.

Class Inheritance Diagram

Inheritance diagram of pydis.pydis.OpenImg