<root>
    <common>
        <wl_min val="3" val_unit="um" comment="Shortest wavelength used for binning input spectra"/>
        <wl_max val="5" val_unit="um" comment="Shortest wavelength used for binning input spectra"/>
        <wl_delta val="1" val_unit="nm" comment="Wavelength increment used for binning input spectra"/>
<!--        <res val="1000" val_unit=""-->
<!--                   comment="Resolving power for common spectral binning. A linear binning wavelength integral is estimated as wl_min/R"/>-->
        <d_aperture val="0.5" val_unit="m" comment="Diameter of the telescope aperture"/>
        <psf val="Airy" osf="10" comment="PSF of the optical system. Can be Airy or a file"/>
<!--        <psf val="data/ps2f.txt" comment="PSF of the optical system. Can be Airy or a file"/>-->
        <jitter_sigma val="1" val_unit="arcsec" comment="Sigma of the telescope jitter"/>
        <output path="output" format="fits" comment="Output directory to store output files"/>
        <exposure_time val="0.1" val_unit="s" comment="The exposure time"/>
<!--        <output_path val="output" comment="Output directory to store output files"/>-->
    </common>

    <astroscene>
        <target type="BlackBodyTarget" temp="5778" temp_unit="K" mag="10" mag_unit="mag" band="V"
                comment="Modeling the sun as mag 10 star"/>
        <optical_component type="Atmosphere" transmittance="data/atmosphere/transmittance.csv"
                           emission="data/atmosphere/emission.csv" comment="Including the atmosphere"/>
        <optical_component type="StrayLight" emission="data/strayLight/emission.csv"
                           comment="Including arbitrary noise sources"/>
    </astroscene>

    <common_optics>
        <optical_component type="Mirror" reflectance="data/mirror/reflectance.csv"
                           emissivity="data/mirror/emissivity.csv" temp="70" temp_unit="K" comment="M1"
                           obstruction="0.1" obstructor_temp="70" obstructor_temp_unit="K"/>
        <optical_component type="Mirror" reflectance="data/mirror/reflectance.csv"
                           emissivity="data/mirror/emissivity.csv" temp="70" temp_unit="K" comment="M2"/>
        <optical_component type="Mirror" reflectance="data/mirror/reflectance.csv"
                           emissivity="data/mirror/emissivity.csv" temp="70" temp_unit="K" comment="M3"/>
<!--        <optical_component type="Filter" band="B"-->
<!--                           emissivity="data/filter/emissivity.csv" val="70" val_unit="K" comment="Filter wheel"/>-->
        <optical_component type="Filter" start="400" start_unit="nm" end="480" end_unit="nm"
                           emissivity="data/filter/emissivity.csv" temp="70" temp_unit="K" comment="Filter wheel"/>
    </common_optics>

    <instrument>
        <optical_component type="Lens" transmittance="data/lens/transmittance.csv"
                           emissivity="data/lens/emissivity.csv" temp="70" temp_unit="K" comment="M4"/>
        <sensor type="Imager">
            <f_number val="13" val_unit="" comment="The working f/#"/>
            <pixel_geometry val="1024, 1024" val_unit="pix" comment="Pixel geometry"/>
            <center_offset val="0, 0" val_unit="pix" comment="Shift of the array center"/>
            <pixel>
                <quantum_efficiency val="data/ccd/PCO-Edge-42-QE.txt" comment="Quantum efficiency of the detector pixel"/>
                <pixel_size val="6.5" val_unit="um"/>
                <dark_current val="20" val_unit="electron / (pix * s)" comment="Detector dark current"/>
                <sigma_read_out val="10.0" val_unit="electron(1/2) / pix" comment="Detector readout noise in e-rms"/>
                <well_capacity val="30000" val_unit="electron" comment="Well capacity of a pixel"/>
            </pixel>
            <photometric_aperture comment="The photometric aperture used to calculate signal and noise.">
                <shape val="square" comment="Shape of the photometric aperture. Can be square / circle"/>
                <contained_energy val="min" comment="Contained energy for calculating the SNR. Can be Peak, FWHM, Min or the percentage of encircled energy."/>
<!--                <contained_pixels val="20" val_unit="pix" comment="Number of contained pixels."/>-->
            </photometric_aperture>
        </sensor>
    </instrument>
</root>