viperleed.calc.files.iorfactor

Module iorfactor of viperleed.calc.files.

Functions for reading and writing files relevant to the R-factor calculation.

Functions

beamlist_to_array(beams)

check_theobeams_energies(rpars, theobeams)

Complain if the energies in theobeams are inconsistent with rpars.

largest_nr_grid_points(rpars, theobeams, ...)

Return the largest possible number of grid points.

plot_analysis(exp, figs, figsize, name, ...)

prepare_analysis_plot(formatting, xyExp, xyTheo)

prepare_rfactor_energy_ranges(rpars[, ...])

readROUT([filename])

Reads the ROUT file.

readROUTSHORT([filename])

Reads the ROUTSHORT file.

read_rfactor_columns([cols_dir])

Reads data from the theo.column and exp.column files in a given directory.

sorted_energies_from_beams(beams)

Return a list of sorted energies from a list of Beam objects.

writeRfactPARAM(rp, theobeams[, for_error, ...])

Generate the PARAM file for the R-factor calculation.

writeRfactorPdf(beams[, colsDir, outName, ...])

Creates a single PDF file containing the plots of R-factors, using plot_iv.

writeRfactorPdf_new(n_beams, labels, ...[, ...])

writeWEXPEL(sl, rp, theobeams[, filename, ...])

Write input file WEXPEL for R-factor calculation.

Exceptions

RfactorError

Base exception for R-factor calculations.