SDSS Spectroscopic Data (pydl.pydlspec2d)

Introduction

This is a placeholder for pydlspec2d documentation.

API

pydl.pydlspec2d Package

This subpackage implements functions from the idlspec2d package.

Classes

Pydlspec2dException Exceptions raised by pydl.pydlspec2d that don’t fit into a standard exception class like ValueError.
Pydlspec2dUserWarning Class for warnings issued by pydl.pydlspec2d.

Class Inheritance Diagram

digraph inheritance9e0d82d933 { rankdir=LR; size="8.0, 12.0"; "AstropyUserWarning" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",tooltip="The primary warning class for Astropy."]; "AstropyWarning" -> "AstropyUserWarning" [arrowsize=0.5,style="setlinewidth(0.5)"]; "AstropyWarning" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",tooltip="The base warning class from which all Astropy warnings should inherit."]; "PydlException" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",tooltip="Base class for exceptions raised in PyDL functions."]; "Pydlspec2dException" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",tooltip="Exceptions raised by :mod:`pydl.pydlspec2d` that don't fit into a"]; "PydlException" -> "Pydlspec2dException" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Pydlspec2dUserWarning" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",tooltip="Class for warnings issued by :mod:`pydl.pydlspec2d`."]; "AstropyUserWarning" -> "Pydlspec2dUserWarning" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

pydl.pydlspec2d.spec1d Module

This module corresponds to the spec1d directory in idlspec2d.

Functions

findspec(*args, **kwargs) Find SDSS/BOSS spectra that match a given RA, Dec.
hmf_astep(spectra, invvar, g) Update for coefficients at fixed component spectra.
hmf_astepnn(a, spectra, invvar, g) Non-negative update for coefficients at fixed component spectra.
hmf_badness(a, g, spectra, invvar[, epsilon]) Compute chi**2.
hmf_chi(a, g, spectra, invvar) Compute chi, the scaled residual.
hmf_gstep(oldg, spectra, invvar, a[, epsilon]) Update for component spectra at fixed coefficients.
hmf_gstepnn(g, spectra, invvar, a[, epsilon]) Non-negative update for component spectra at fixed coefficients.
hmf_iterate(spectra, invvar[, K, ...]) Handle the HMF iteration, assuming spectra have been pre-processed through pydl.pydlspec2d.spec2d.combine1fiber().
hmf_model(a, g) Compute the model.
hmf_normbase(g) Apply standard component normalization.
hmf_penalty(g[, epsilon]) Compute penalty for non-smoothness.
hmf_reorder(a, g) Reorder and rotate basis analogous to PCA.
hmf_resid(a, g, spectra) Compute residuals.
hmf_solve(newflux, newivar[, K, ...]) Drop-in replacement for pca_solve().
latest_mjd(plate, **kwargs) Find the most recent MJD associated with a plate.
number_of_fibers(plate, **kwargs) Returns the total number of fibers per plate.
pca_solve(newflux, newivar[, maxiter, ...]) Replacement for idlspec2d pca_solve.pro.
plot_eig(filename[, title]) Plot spectra from an eigenspectra/template file.
preprocess_spectra(flux, ivar[, loglam, ...]) Handle the processing of input spectra through the combine1fiber() stage.
readspec(platein[, mjd, fiber]) Read SDSS/BOSS spec2d & spec1d files.
skymask(invvar, andmask[, ormask, ngrow]) Mask regions where sky-subtraction errors are expected to dominate.
spec_append(spec1, spec2[, pixshift]) Append the array spec2 to the array spec1 & return a new array.
spec_path(plate[, path, topdir, run2d]) Return the directory containing spPlate files.
template_input(inputfile, dumpfile[, flux, ...]) Collect spectra and pass them to PCA or HMF solvers to compute spectral templates.
template_input_main() Entry point for the compute_templates script.
template_qso(metadata, newflux, newivar[, ...]) Run PCA or HMF on QSO spectra.
template_star(metadata, newloglam, newflux, ...) Run PCA or HMF on stellar spectra of various classes.
wavevector(minfullwave, maxfullwave[, ...]) Return an array of wavelengths.

pydl.pydlspec2d.spec2d Module

This module corresponds to the spec2d directory in idlspec2d.

Functions

aesthetics(flux, invvar[, method]) Add nice values to a spectrum where it is masked.
combine1fiber(inloglam, objflux, newloglam) Combine several spectra of the same object, or resample a single spectrum.
filter_thru(flux[, waveimg, wset, mask, ...]) Compute throughput in SDSS filters.