The PyChem.libmetalsSNIa module¶
- PyChem.libmetalsSNIa.WriteH5Params(ParentGroup, SNIaFile, MeanWDMass, elts, nelts)¶
Write the SNIa parameters in a file:
- Parameters
f (file handler) – file
SNIaFile (string) – file name
MeanWDMass (float) – mean white dwarf mass
elts (python list) – list of elements
nelts (int) – number of elements
- Returns
None
- PyChem.libmetalsSNIa.WriteParams(f, SNIaFile, MeanWDMass, elts, nelts)¶
Write the SNIa parameters in a file:
- Parameters
f (file handler) – file
SNIaFile (string) – file name
MeanWDMass (float) – mean white dwarf mass
elts (python list) – list of elements
nelts (int) – number of elements
- Returns
None
- PyChem.libmetalsSNIa.read_MetalFile(file, columns=None, lines=None, dtype=<class 'float'>, skipheader=False, cchar='#')¶
Read a file containing metal information:
- Parameters
fd (string or file handler) – file name
columns (python list) – columns to read
lines (python list) – lines to read
dtype (dtype) – output dtype
skipheader (bool) – skip header
cchar (string) – comment charater
- Returns
data
[X,Y,Z] = READ('FILE',[1,4,13],lines=[10,1000]) Read columns 1,4 and 13 from 'FILE' from line 10 to 1000 into array X,Y and Z