Instruction to download release added

This commit is contained in:
Lukas Klass 2020-10-23 14:50:31 +02:00
parent 59439964c6
commit 68b37f763e
2 changed files with 6 additions and 3 deletions

View File

@ -9,15 +9,13 @@ Installation
A Python 3 installation is required to run ESBO-ETC. You can get the latest python version
`here <https://www.python.org/downloads/>`_.
In order to get ESBO-ETC, clone the code from the IRS git server using
In order to get ESBO-ETC, download the latest release from the `IRS git server <https://egit.irs.uni-stuttgart.de/esbo_ds/ESBO-ETC/releases>`_ or clone the latest development version from the IRS git server using
.. code-block:: bash
:linenos:
git clone https://egit.irs.uni-stuttgart.de/esbo_ds/ESBO-ETC.git
or download the code from the `IRS git server <https://egit.irs.uni-stuttgart.de/esbo_ds/ESBO-ETC>`_.
Python Virtual Environment
--------------------------

View File

@ -6,6 +6,7 @@ from astropy.constants import c, k_B
from ...lib.logger import logger
from ..Entry import Entry
from typing import Union
import numpy as np
class BlackBodyTarget(ATarget):
@ -71,6 +72,10 @@ class BlackBodyTarget(ATarget):
factor = self._band[band.upper()]["sfd"] / (bb(self._band[band.upper()]["wl"]) * u.sr) * u.sr
# Calculate spectral flux density for the given wavelengths and scale it for a star of the given magnitude
sfd = bb(wl_bins) * factor * 10 ** (- 2 / 5 * mag / u.mag) # / 1.195 * 1.16 # scaling for AETC validation
wl_bins_2 = np.arange(15.71, 23.71, 0.01) << u.um
sfd_2 = bb(wl_bins_2) * factor * 10 ** (- 2 / 5 * mag / u.mag)
sqty_2 = SpectralQty(wl_bins_2, sfd_2).integrate()
print((sqty_2 / (8 * u.um)).to(u.W / (u.m ** 2 * u.um)))
else:
sfd = bb(wl_bins)
# Initialize super class