Skip to content

Configuration

Lazy.jl uses TOML parameter files with four sections. Generate an annotated example with lazy params > example.toml.

[io] – Input/Output

ParameterTypeDefaultDescription
input_catalogStringrequiredPath to input FITS catalog
output_fileStringrequiredOutput file path (.fits, .h5, or .hdf5)
output_formatStringinferredOutput format: 'fits', 'hdf5', or 'both'. If omitted, inferred from output_file extension
missing_data_formatStringrequiredHow missing data is encoded in the catalog: 'nan', 'zero', or a numeric value (e.g., '-99')
output_pzBoolfalseInclude P(z) distributions in output
output_templatesBoolfalseInclude IGM-attenuated template SEDs in output (needed for SED reconstruction)

Rest-Frame Magnitudes

ParameterTypeDefaultDescription
output_restframe_magsBoolfalseCompute rest-frame absolute magnitudes (M_UV, M_U, M_V, M_J)
flux_unitsStringRequired if output_restframe_mags = true. Flux units of the input catalog: 'uJy', 'nJy', 'Jy', or 'cgs'
H0Float70.0Hubble constant in km/s/Mpc (flat LCDM cosmology)
OmFloat0.3Matter density parameter (flat LCDM cosmology)

Forced Low-Redshift Fitting

ParameterTypeDefaultDescription
output_forced_lowzBoolfalsePerform a second fit restricted to low redshifts
forced_lowz_zmaxFloatRequired if output_forced_lowz = true. Maximum redshift for the forced low-z fit

When enabled, the output includes z_best_lowz, chi2_lowz, delta_chi2 (= chi2_lowz - chi2_best), low-z P(z) quantiles, and low-z model photometry. This is useful for validating high-redshift candidates.

[fitting] – Scientific Parameters

ParameterTypeDefaultDescription
template_setString or ArrayrequiredTemplate set name (e.g., 'sfhz') or list of custom template file paths
template_errorStringrequiredTemplate error model. Currently only 'template_error' is supported
template_error_scaleFloatrequiredScale factor for the template error function
igm_modelStringrequiredIGM attenuation model. Currently only 'inoue14' is supported
nphot_minIntrequiredMinimum number of valid photometric points (SNR > 2) required to run the fit
sys_errFloatrequiredSystematic error added in quadrature to photometric errors
z_minFloatrequiredMinimum redshift for the fitting grid
z_maxFloatrequiredMaximum redshift for the fitting grid
z_stepFloatrequiredRedshift step size
template_cacheBooltrueCache template grids for reuse in subsequent runs

Spectroscopic Redshifts

ParameterTypeDefaultDescription
use_zspecBoolfalseFix the fit at the spectroscopic redshift when available

When enabled, objects with a valid spectroscopic redshift (not NaN, not negative) are fit only at the nearest grid point to their z_spec. Objects without z_spec are fit normally across the full grid. Requires a zspec entry in the [translate] section.

CGM Damping Wing

ParameterTypeDefaultDescription
add_cgmBooltrueEnable CGM Lyman-alpha damping wing absorption (Asada+2024)
cgm_AFloat3.5918Sigmoid amplitude for HI column density evolution
cgm_aFloat1.8414Sigmoid slope for HI column density evolution
cgm_cFloat18.001Sigmoid baseline for log10(N_HI)

The CGM model adds damping wing absorption redward of Lyman-alpha at z >= 6, applied multiplicatively on top of the IGM attenuation. The HI column density evolves with redshift as:

log10(N_HI) = A / (1 + exp(-a * (z - 6))) + c

The default parameters are from Asada et al. (2024) and generally do not need to be changed.

[runtime] – Processing Options

ParameterTypeDefaultDescription
chunked_processingBoolfalseEnable memory-efficient chunked processing
target_memory_gbFloat0.5Target memory usage per chunk in GB
preserve_work_fileBoolfalseKeep intermediate .work.h5 file after completion

See Advanced Usage for details on chunked processing and resume capability.

[translate] – Column Mapping

Maps filter names to flux/error columns in your input catalog.

toml
[translate]
    f606w = {flux = 'f_f606w', error = 'e_f606w'}
    f814w = {flux = 'f_f814w', error = 'e_f814w'}
    f115w = {flux = 'f_f115w', error = 'e_f115w'}

The keys are filter names or nicknames (see Filters for the full list). The values must match column names in the input FITS catalog.

Spectroscopic Redshift Column

When use_zspec = true in [fitting], add a zspec entry:

toml
[translate]
    zspec = 'z_spec'

This maps to the column containing spectroscopic redshifts. Objects with NaN, negative, or missing values are fit normally.