From 68b37f763e3de03be6439d9fb983c49a8adac39b Mon Sep 17 00:00:00 2001 From: LukasK13 Date: Fri, 23 Oct 2020 14:50:31 +0200 Subject: [PATCH] Instruction to download release added --- docs/source/usage/getting_started.rst | 4 +--- esbo_etc/classes/target/BlackBodyTarget.py | 5 +++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/source/usage/getting_started.rst b/docs/source/usage/getting_started.rst index f266fa1..61fba7c 100644 --- a/docs/source/usage/getting_started.rst +++ b/docs/source/usage/getting_started.rst @@ -9,15 +9,13 @@ Installation A Python 3 installation is required to run ESBO-ETC. You can get the latest python version `here `_. -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 `_ 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 `_. - Python Virtual Environment -------------------------- diff --git a/esbo_etc/classes/target/BlackBodyTarget.py b/esbo_etc/classes/target/BlackBodyTarget.py index 4479d80..0b37db1 100644 --- a/esbo_etc/classes/target/BlackBodyTarget.py +++ b/esbo_etc/classes/target/BlackBodyTarget.py @@ -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