Instruction to download release added
This commit is contained in:
parent
59439964c6
commit
68b37f763e
@ -9,15 +9,13 @@ Installation
|
|||||||
A Python 3 installation is required to run ESBO-ETC. You can get the latest python version
|
A Python 3 installation is required to run ESBO-ETC. You can get the latest python version
|
||||||
`here <https://www.python.org/downloads/>`_.
|
`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
|
.. code-block:: bash
|
||||||
:linenos:
|
:linenos:
|
||||||
|
|
||||||
git clone https://egit.irs.uni-stuttgart.de/esbo_ds/ESBO-ETC.git
|
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
|
Python Virtual Environment
|
||||||
--------------------------
|
--------------------------
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@ from astropy.constants import c, k_B
|
|||||||
from ...lib.logger import logger
|
from ...lib.logger import logger
|
||||||
from ..Entry import Entry
|
from ..Entry import Entry
|
||||||
from typing import Union
|
from typing import Union
|
||||||
|
import numpy as np
|
||||||
|
|
||||||
|
|
||||||
class BlackBodyTarget(ATarget):
|
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
|
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
|
# 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
|
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:
|
else:
|
||||||
sfd = bb(wl_bins)
|
sfd = bb(wl_bins)
|
||||||
# Initialize super class
|
# Initialize super class
|
||||||
|
Loading…
Reference in New Issue
Block a user