Cloudy & Associates

Commit beea18d7 authored by Chatzikos, Marios's avatar Chatzikos, Marios
Browse files

Report full line label in 'save fine continuum'

The previous implementation reported only a feature's species in
spectral notation, e.g., 'Fe17'.

This is useful if cells are not merged and the energy is reported in
wavelength units (say, Angstrom), because the exact wavelength is
reported in the first column.

Merging cells eliminates the wavelength information, and if the number
of cells merged together is high, the output can be confusing.

Report the entire spectral label, including the wavelength, to eliminate
ambiguity in the output.
parent 4307a8b4
......@@ -1225,13 +1225,14 @@ void SaveDo(
for( auto &ind: all_stack_lines )
{
realnum odep = LineSave.lines[ind].getTransition() .Emis().TauInSpecific();
TransitionProxy tr = LineSave.lines[ind].getTransition();
realnum odep = tr.Emis().TauInSpecific();
if( odep < odep_limit )
break;
fprintf( save.params[ipPun].ipPnunit,
"\t%s\t%.3e",
LineSave.lines[ind].chALab(), odep );
"\t\"%s\"\t%.3e",
tr.chLabel().c_str(), odep );
}
fprintf( save.params[ipPun].ipPnunit, "\n" );
} while( j < nu_hi );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment