SKIRT / SKIRT9

SKIRT version 9 -- advanced radiative transfer in dusty systems
http://www.skirt.ugent.be
GNU Affero General Public License v3.0
37 stars 31 forks source link

Honor wavelength output style in ski files #194

Closed petercamps closed 1 year ago

petercamps commented 1 year ago

Description and Motivation With this update, wavelengths are written to .ski files and _parameters.xml files in units that depend on the selected wavelengthOutputStyle. For example, with the Energy style, spectral values are expressed in keV. For simulations at X-ray wavelengths, keV is a much more natural unit for expressing spectral values than micron.

Also, a few configuration options were moved from user experience level 2 to level 1 to allow performing the upcoming X-ray tutorial in experience level 1.

Limitations SKIRT converts all values to internal units and does not retain information about the units that were used to enter a value during the Q&A session or in MakeUp. This implementation choice has the following consequences for ski files configured with the Energy style:

Tests All function tests run without change except that those with wavelengthOutputStyle set to frequency or energy output a slightly different _parameters.xml file.

Context These changes were suggested by @BertVdM.