Function adas.adf23_to_adf07
def adf23_to_adf07(adf23=None, adf07=None, comments=None)
-
Produces an adf07 driver file from a set of adf23 files.
Parameters
adf23
:list, str
- list of the full names of the ADAS adf23 files
adf07
:str
- full name of ADAS adf07 output file
comments
:list
- comments for the end of the file as a list of strings.
Returns
nothing - the output is a file written to disk
Notes
The temperature of each block in the adf07 file is taken as that in the adf23 file.
Pure python code but calls compiled routines which are dependent on fortran and a full ADAS installation.
References
ADAS manual description of adf23: http://www.adas.ac.uk/man/appxa-23.pdf ADAS manual description of adf07: http://www.adas.ac.uk/man/appxa-07.pdf
Version History
- Martin O'Mullane, 15-01-2024
- First version
Example
Generate an adf07 file for magnesium.
>>> import adas as adas >>> adf23 = ["/home/adas/adas/adf23/cadw#12/ca09_mg{:}.dat".format(iz) for iz in range(12)] >>> adas.adf23_to_adf07(adf23=adf23, adf07='/tmp/mg_adf07.dat')