API Index

specreduce Package

Functions

test(**kwargs)

Run the tests for the package.

Classes

SpecreduceOperation()

An operation to perform as part of a spectroscopic reduction pipeline.

specreduce.core Module

Classes

SpecreduceOperation()

An operation to perform as part of a spectroscopic reduction pipeline.

specreduce.tracing Module

Classes

Trace(image)

Basic tracing class that by default traces the middle of the image.

FlatTrace(image, trace_pos)

Trace that is constant along the axis being traced.

ArrayTrace(image, trace)

Define a trace given an array of trace positions.

FitTrace(image, bins, guess, window, ...)

Trace the spectrum aperture in an image.

specreduce.background Module

Classes

Background(image, traces, width, statistic, ...)

Determine the background from an image for subtraction.

specreduce.extract Module

Classes

BoxcarExtract(image, trace_object[, width, ...])

Does a standard boxcar extraction.

HorneExtract(image, trace_object, ...)

Perform a Horne (a.k.a.

OptimalExtract(image, trace_object, ...)

An alias for HorneExtract.

specreduce.calibration_data Module

Utilities for defining, loading, and handling spectroscopic calibration data

Functions

get_reference_file_path([path, cache, ...])

Basic function to take a path to a file and load it via pkg_resources if the specreduce_data package is available and load it via GitHub raw user content if not.

load_MAST_calspec(filename[, remote, cache, ...])

Load a standard star spectrum from the calspec database at MAST.

load_onedstds([dataset, specfile, cache, ...])

This is a convenience function for loading a standard star spectrum from the 'onedstds' dataset in the specreduce_data package.

Classes

AtmosphericExtinction([model, extinction, ...])

Spectrum container for atmospheric extinction in magnitudes as a function of wavelength.

AtmosphericTransmission([data_file, wave_unit])

Spectrum container for atmospheric transmission as a function of wavelength.