viperleed.calc.files.beams
Functions for reading and writing beams files.
This includes: BEAMLIST, IVBEAMS, EXPBEAMS and AUXEXPBEAMS.
Functions
|
Takes a list of percentages and a list of lists of Beam objects. |
|
|
|
Reads beams from an AUXEXPBEAMS file, which already has the formatting required by TensErLEED. |
|
Reads the BEAMLIST file and returns the contents as a list of the lines as strings. |
|
Reads an IVBEAMS file and returns a list of beams (using Beam class) |
|
Reads beams from an EXPBEAMS.csv or THEOBEAMS.csv file. |
|
Sorts the beams in IVBEAMS such that they appear in the same order as in the BEAMLIST. |
|
"Reads from a BEAMLIST file (full list of beams for calculation), finds the beams listed in IVBEAMS (if not passed as a list 'beams', will attempt to call readIVBEAMS directly) and copies the corresponding lines to AUXBEAMS. |
|
Takes a list of Beam objects and writes them in the format required by TensErLEED for experimental beam data. |
|
Writes an fd.out file for the given beams. |
|
Writes an IVBEAMS file based on rp.exbeams. |
|
Takes a list of Beam objects and writes them to a comma-separated file. |