Additional API

eazy.utils Module

Functions

abs_mag_to_luminosity(absmag[, pivot, ...])

Convert absolute AB mag to luminosity units

alma_query(ra, dec[, mirror, radius, unit, ...])

Open browser with ALMA archive query around central position

bool_param(value[, false_values, ...])

Flexible booleans

cds_query(ra, dec[, radius, unit])

Open browswer with CDS catalog query around central position

clipLog(im[, lexp, cmap, scale])

Return normalized array like DS9 log

eso_query(ra, dec[, radius, unit, dp_types, ...])

Open browser with ESO archive query around central position.

fill_between_steps(x, y, z[, ax])

Make matplotlib.pyplot.fill_between work like linestyle='steps-mid'.

get_dustmaps_dust(ra, dec[, web])

Use https://github.com/gregreen/dustmaps

get_irsa_dust([ra, dec, type])

Get Galactic dust reddening from NED/IRSA at a given position http://irsa.ipac.caltech.edu/applications/DUST/docs/dustProgramInterface.html

get_mw_dust(ra, dec, **kwargs)

Wrapper around functions to try to query for the MW E(B-V)

hscmap_query(ra, dec[, open])

Function to open HSC explorer in browser centered on target coordinates

interp_conserve(x, xp, fp[, left, right])

Interpolation analogous to numpy.interp but conserving "flux".

log_zgrid([zr, dz])

Make a logarithmically spaced redshift grid

mast_query(ra, dec[, instruments, ...])

Open browser with MAST archive query around central position

nmad(data)

Normalized median absolute deviation statistic

path_to_eazy_data()

Return internal path to eazy/data.

query_html(ra, dec[, with_coords, ...])

Return HTML string of queries around a position

running_median(xi, yi[, NBIN, reverse, ...])

Binned median/biweight/nmad statistics

safe_invert(arr)

Version-safe matrix inversion using numpy.linalg.inv or numpy.matrix.I

set_warnings([numpy_level, astropy_level])

Set global numpy and astropy warnings

show_legacysurvey(ra, dec[, layer, zoom])

Open browser with legacysurvey.org panner around central position

trapz_dx(x)

Return trapezoid rule coefficients, useful for numerical integration using a dot product

zphot_zspec(zphot, zspec[, zlimits, zmin, ...])

Make zphot_zspec plot scaled by log(1+z) and show uncertainties

Classes

GalacticExtinction([EBV, Rv, force, radec, ...])

Wrapper to use either specutils.extinction or the extinction modules, which have different calling formats.

emceeChain([chain, file, param_names, ...])

eazy.sps Module

Tools for making FSPS templates

Functions

fsps_line_info([wlimits])

Read FSPS line list

wuyts_line_Av(Acont)

Wuyts prescription for extra extinction towards nebular emission

Classes

Zafar15(*args[, meta, name])

Quasar extinction curve from Zafar et al. (2015).

ExtinctionModel(*args[, meta, name])

Modify dust_extinction.averages.G03_SMCBar to work as Att

SMC([bump_ampl])

Modify dust_extinction.averages.G03_SMCBar to work as Att

Reddy15([bump_ampl])

Attenuation curve from Reddy et al. (2015).

KC13([delta])

Kriek & Conroy (2013) attenuation model, extends Noll 2009 with UV bump amplitude correlated with the slope, delta.

ParameterizedWG00(*args[, meta, name])

ExtendedFsps()

Extended functionality for the fsps.StellarPopulation object

eazy.hdf5 Module

Tools for saving/recoving state from HDF5 files

Functions

cat_from_hdf5(h5file)

Parameters

get_dataset_shape(h5file, dataset)

Return the shape of a datset in h5file

get_dataset_slice(h5file, dataset[, sl])

Get a slice of a dataset in h5file.

initialize_from_hdf5([h5file, verbose])

Initialize a PhotoZ object from HDF5 data

params_from_hdf5(h5file)

Read full parameters from HDF5 file

show_info(h5file)

Print summary info of contents of h5file to the screen

templates_from_hdf5(h5file[, verbose])

Read list of templates

write_hdf5(pzobj[, h5file, ...])

Write self-contained HDF5 file

Classes

Viewer(h5file[, verbose])

Tool to replicate functionality of PhotoZ.show_fit but with data read from a stored HDF5 file rather than a "live" object

eazy.visualization Module

Scripts for more interactive visualization of SEDs, etc.

Classes

EazyExplorer(photoz, zout[, ...])

Generating a tool for interactive visualization of eazy outputs with the dash + plotly libraries.