pyEDITH 1.6.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyedith-1.6.0/LICENSE +21 -0
- pyedith-1.6.0/PKG-INFO +336 -0
- pyedith-1.6.0/README.md +308 -0
- pyedith-1.6.0/pyproject.toml +48 -0
- pyedith-1.6.0/setup.cfg +4 -0
- pyedith-1.6.0/src/pyEDITH/__init__.py +148 -0
- pyedith-1.6.0/src/pyEDITH/astrophysical_scene.py +874 -0
- pyedith-1.6.0/src/pyEDITH/cli.py +275 -0
- pyedith-1.6.0/src/pyEDITH/components/coronagraphs.py +698 -0
- pyedith-1.6.0/src/pyEDITH/components/detectors.py +444 -0
- pyedith-1.6.0/src/pyEDITH/components/telescopes.py +280 -0
- pyedith-1.6.0/src/pyEDITH/exposure_time_calculator.py +1418 -0
- pyedith-1.6.0/src/pyEDITH/observation.py +175 -0
- pyedith-1.6.0/src/pyEDITH/observatory.py +576 -0
- pyedith-1.6.0/src/pyEDITH/parse_input.py +484 -0
- pyedith-1.6.0/src/pyEDITH/units.py +257 -0
- pyedith-1.6.0/src/pyEDITH/utils.py +943 -0
- pyedith-1.6.0/src/pyEDITH.egg-info/PKG-INFO +336 -0
- pyedith-1.6.0/src/pyEDITH.egg-info/SOURCES.txt +32 -0
- pyedith-1.6.0/src/pyEDITH.egg-info/dependency_links.txt +1 -0
- pyedith-1.6.0/src/pyEDITH.egg-info/entry_points.txt +2 -0
- pyedith-1.6.0/src/pyEDITH.egg-info/requires.txt +14 -0
- pyedith-1.6.0/src/pyEDITH.egg-info/top_level.txt +1 -0
- pyedith-1.6.0/tests/test_astrophysical_scene.py +1292 -0
- pyedith-1.6.0/tests/test_cli.py +515 -0
- pyedith-1.6.0/tests/test_coronagraphs.py +1637 -0
- pyedith-1.6.0/tests/test_detectors.py +623 -0
- pyedith-1.6.0/tests/test_exposure_time_calculator.py +722 -0
- pyedith-1.6.0/tests/test_observation.py +285 -0
- pyedith-1.6.0/tests/test_observatory.py +890 -0
- pyedith-1.6.0/tests/test_parse_input.py +765 -0
- pyedith-1.6.0/tests/test_telescopes.py +513 -0
- pyedith-1.6.0/tests/test_units.py +269 -0
- pyedith-1.6.0/tests/test_utils.py +902 -0
pyedith-1.6.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 eleonoraalei
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
pyedith-1.6.0/PKG-INFO
ADDED
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pyEDITH
|
|
3
|
+
Version: 1.6.0
|
|
4
|
+
Summary: Exposure Direct Imaging Timer for HWO (Python Version)
|
|
5
|
+
Author-email: Eleonora Alei <eleonora.alei@nasa.gov>, Miles Currie <miles.h.currie@nasa.gov>, Corey Spohn <corey.a.spohn@nasa.gov>
|
|
6
|
+
Project-URL: Homepage, https://github.com/HWO-Project/pyEDITH/
|
|
7
|
+
Project-URL: Issues, https://github.com/HWO-Project/pyEDITH/issues
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.11
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Requires-Dist: numpy
|
|
15
|
+
Requires-Dist: scipy
|
|
16
|
+
Requires-Dist: astropy
|
|
17
|
+
Requires-Dist: pandas
|
|
18
|
+
Requires-Dist: yippy>=2.7.3
|
|
19
|
+
Requires-Dist: openpyxl
|
|
20
|
+
Requires-Dist: synphot
|
|
21
|
+
Requires-Dist: eacy
|
|
22
|
+
Requires-Dist: hwostyle
|
|
23
|
+
Provides-Extra: test
|
|
24
|
+
Requires-Dist: pytest; extra == "test"
|
|
25
|
+
Requires-Dist: pytest-cov; extra == "test"
|
|
26
|
+
Requires-Dist: pooch; extra == "test"
|
|
27
|
+
Dynamic: license-file
|
|
28
|
+
|
|
29
|
+
<p align="center">
|
|
30
|
+
<img src="docs/source/_static/pyEDITH.png" alt="pyEDITH logo">
|
|
31
|
+
</p>
|
|
32
|
+
|
|
33
|
+
<p align="center">
|
|
34
|
+
<a href="https://app.codecov.io/gh/HWO-Project/pyEDITH">
|
|
35
|
+
<img src="https://img.shields.io/codecov/c/github/HWO-Project/pyEDITH?style=for-the-badge&logo=codecov" alt="Codecov">
|
|
36
|
+
</a>
|
|
37
|
+
<a href="https://pyedith.readthedocs.io/en/latest/">
|
|
38
|
+
<img src="https://readthedocs.org/projects/pyedith/badge/?version=latest&style=for-the-badge" alt="Documentation Status">
|
|
39
|
+
</a>
|
|
40
|
+
<a href="https://github.com/HWO-Project/pyEDITH/actions/workflows/run_and_test.yml/">
|
|
41
|
+
<img src="https://img.shields.io/github/actions/workflow/status/HWO-Project/pyEDITH/run_and_test.yml?branch=main&logo=github&style=for-the-badge" alt="CI">
|
|
42
|
+
</a>
|
|
43
|
+
<a href="https://zenodo.org/records/17917471"><img src="https://img.shields.io/badge/DOI-doi.org%2Fzenodo.17917471-blue?style=for-the-badge" alt="DOI"></a>
|
|
44
|
+
</p>
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
# pyEDITH
|
|
48
|
+
Exposure Direct Imaging Timer for HWO (Python Version)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
## Installation
|
|
52
|
+
|
|
53
|
+
Create a virtual environment (optional but recommended):
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
python -m venv venv
|
|
57
|
+
source venv/bin/activate # On Windows, use `venv\Scripts\activate`
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Install from pyPI:
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
pip install pyEDITH
|
|
64
|
+
``
|
|
65
|
+
|
|
66
|
+
Or, if preferred, clone the pyEDITH repository and install locally:
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
git clone https://github.com/HWO-Project/pyEDITH.git
|
|
70
|
+
cd pyEDITH
|
|
71
|
+
pip install -e .
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Set up environment variables: Add the following lines to your `.bashrc` or `.zshrc` file:
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
export SCI_ENG_DIR="/path/to/Sci-Eng-Interface/hwo_sci_eng"
|
|
78
|
+
export YIP_CORO_DIR="/path/to/yips"
|
|
79
|
+
```
|
|
80
|
+
Replace the paths with the actual paths on your system.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
## Running pyEDITH via Terminal
|
|
85
|
+
|
|
86
|
+
pyEDITH provides a command-line interface with three main functionalities: `etc` (Exposure Time Calculator), `snr` (Signal-to-Noise Ratio), and `etc2snr` (Exposure Time to Signal-to-Noise Ratio). You will need to compile a configuration file that the code will read. You can find some examples in `inputs/`.
|
|
87
|
+
|
|
88
|
+
- Exposure Time Calculation:
|
|
89
|
+
```
|
|
90
|
+
pyedith etc --edith path/to/your/config.edith
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
- SNR Calculation:
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
pyedith snr --edith path/to/your/config.edith --time 100000
|
|
97
|
+
```
|
|
98
|
+
Here, 100000 is the exposure time in seconds.
|
|
99
|
+
|
|
100
|
+
- ETC to SNR Calculation:
|
|
101
|
+
```
|
|
102
|
+
pyedith etc2snr --edith path/to/your/config.edith
|
|
103
|
+
```
|
|
104
|
+
In this case, the config file will need to also have a secondary set of parameters (see e.g. `inputs/input_secondarybandpass.edith`)
|
|
105
|
+
|
|
106
|
+
Add the -v flag to any command for verbose output:
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
pyedith etc --edith path/to/your/config.edith -v
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
## Running pyEDITH from Python
|
|
114
|
+
|
|
115
|
+
This mode offers much more flexibility to run the ETC. We refer to our tutorials in `tutorials/` for details on this mode.
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
# Glossary
|
|
119
|
+
|
|
120
|
+
<!---
|
|
121
|
+
| Variable Name | Unit | Length | Meaning | |
|
|
122
|
+
| ----------------------- | ---------------------------- | ------------------------ | ------------------------------------------------- | --- |
|
|
123
|
+
| Istar | Dimensionless | [npix, npix] | Star intensity distribution (on-axis PSF) | |
|
|
124
|
+
| noisefloor | Dimensionless | [npix, npix] | Noise floor of the coronagraph | |
|
|
125
|
+
| photometric_aperture_throughput | Dimensionless | [npix, npix, npsfratios] | Photometric aperture throughput | |
|
|
126
|
+
| omega_lod | (λ/D)² | [npix, npix, npsfratios] | Solid angle of the photometric aperture | |
|
|
127
|
+
| skytrans | Dimensionless | [npix, npix] | Sky transmission | |
|
|
128
|
+
| pixscale | λ/D | Scalar | Pixel scale of the coronagraph | |
|
|
129
|
+
| npix | Integer | Scalar | Number of pixels in the image | |
|
|
130
|
+
| xcenter | Pixel | Scalar | X-coordinate of the image center | |
|
|
131
|
+
| ycenter | Pixel | Scalar | Y-coordinate of the image center | |
|
|
132
|
+
| bandwidth | Dimensionless | Scalar | Fractional bandwidth of coronagraph | |
|
|
133
|
+
| npsfratios | Integer | Scalar | Number of PSF ratios | |
|
|
134
|
+
| nrolls | Integer | Scalar | Number of roll angles | |
|
|
135
|
+
| nchannels | Integer | Scalar | Number of channels | |
|
|
136
|
+
| minimum_IWA | λ/D | Scalar | Minimum Inner Working Angle | |
|
|
137
|
+
| maximum_OWA | λ/D | Scalar | Maximum Outer Working Angle | |
|
|
138
|
+
| coronagraph_optical_throughput | Dimensionless | [nlambda] | Throughput for all coronagraph optics | |
|
|
139
|
+
| diameter | Length | Scalar | Circumscribed diameter of telescope aperture | |
|
|
140
|
+
| Area | Length² | Scalar | Effective collecting area of telescope | |
|
|
141
|
+
| unobscured_area | Dimensionless | Scalar | Unobscured area percentage | |
|
|
142
|
+
| toverhead_fixed | Time | Scalar | Fixed overhead time | |
|
|
143
|
+
| toverhead_multi | Dimensionless | Scalar | Multiplicative overhead time | |
|
|
144
|
+
| telescope_optical_throughput | Dimensionless | [nlambda] | Optical throughput of telescope | |
|
|
145
|
+
| temperature | Temperature | Scalar | Temperature of the warm optics | |
|
|
146
|
+
| T_contamination | Dimensionless | Scalar | Effective throughput factor for contamination | |
|
|
147
|
+
| pixscale_mas | Milliarcsecond | Scalar | Detector pixel scale | |
|
|
148
|
+
| npix_multiplier | Dimensionless | [nlambda] | Number of detector pixels per image plane "pixel" | |
|
|
149
|
+
| DC | Electron / (Pixel * Second) | [nlambda] | Dark current | |
|
|
150
|
+
| RN | Electron / (Pixel * Read) | [nlambda] | Read noise | |
|
|
151
|
+
| tread | Second | [nlambda] | Read time | |
|
|
152
|
+
| CIC | Electron / (Pixel * Photon) | [nlambda] | Clock-induced charge | |
|
|
153
|
+
| QE | Electron / Photon | [nlambda] | Quantum efficiency of detector | |
|
|
154
|
+
| dQE | Dimensionless | [nlambda] | Effective QE due to degradation | |
|
|
155
|
+
| wavelength | Length | [nlambda] | Observation wavelengths | |
|
|
156
|
+
| SNR | Dimensionless | [nlambda] | Signal-to-noise ratio | |
|
|
157
|
+
| photometric_aperture_radius | λ/D | Scalar | Photometric aperture radius | |
|
|
158
|
+
| psf_trunc_ratio | Dimensionless | Scalar | PSF truncation ratio | |
|
|
159
|
+
| CRb_multiplier | Dimensionless | Scalar | Factor to multiply to remove background | |
|
|
160
|
+
| td_limit | Time | Scalar | Limit placed on exposure times | |
|
|
161
|
+
| nooptimize | Integer | Scalar | Flag to disable exposure time optimization | |
|
|
162
|
+
| optimize_phase | Integer | Scalar | Flag to optimize planet phase (non-functional) | |
|
|
163
|
+
| ntot | Integer | Scalar | Meaning not explicitly defined in code | |
|
|
164
|
+
| nmeananom | Integer | Scalar | Number of mean anomalies | |
|
|
165
|
+
| norbits | Integer | Scalar | Number of orbits | | | |
|
|
166
|
+
| dist | Length | Scalar | Distance to star | |
|
|
167
|
+
| vmag | Magnitude | Scalar | Stellar magnitude at V band | |
|
|
168
|
+
| mag | Magnitude | [nlambda] | Stellar magnitude at desired wavelengths | |
|
|
169
|
+
| stellar_angular_diameter_arcsec | Arcsecond | Scalar | Angular diameter of star | |
|
|
170
|
+
| nzodis | Zodi | Scalar | Amount of exozodi around target star | |
|
|
171
|
+
| ra | Degree | Scalar | Right ascension of target star | |
|
|
172
|
+
| dec | Degree | Scalar | Declination of target star | |
|
|
173
|
+
| semimajor_axis | Astronomical Units | Scalar | Semimajor axis of the planet's orbit (used to calculate separation; assumes face-on orbit) | |
|
|
174
|
+
|
|
175
|
+
| separation | Arcsecond | Scalar | Separation of planet | |
|
|
176
|
+
| deltamag | Magnitude | Scalar | Magnitude difference between planet and host star | |
|
|
177
|
+
| min_deltamag | Magnitude | Scalar | Brightest planet to resolve at the IWA | |
|
|
178
|
+
| F0V | Photon / (Second * cm² * nm) | Scalar | Flux zero point for V band | |
|
|
179
|
+
| F0 | Photon / (Second * cm² * nm) | [nlambda] | Flux zero points for prescribed wavelengths | |
|
|
180
|
+
| M_V | Magnitude | Scalar | Absolute V band magnitude of target star | |
|
|
181
|
+
| Fzodi_list | Dimensionless | [nlambda] | Zodiacal light fluxes | |
|
|
182
|
+
| Fexozodi_list | Dimensionless | [nlambda] | Exozodiacal light fluxes | |
|
|
183
|
+
| Fbinary_list | Dimensionless | [nlambda] | Binary star fluxes | |
|
|
184
|
+
| Fp_over_Fs | Dimensionless | Scalar | Flux of planet relative to star | |
|
|
185
|
+
| | | | | |
|
|
186
|
+
| | | | | |
|
|
187
|
+
| | | | | |
|
|
188
|
+
-->
|
|
189
|
+
|
|
190
|
+
## Within `coronagraphs.py`
|
|
191
|
+
| Variable Name | Length | Unit | Meaning | User Editable |
|
|
192
|
+
| ------------------------------- | ------------------------ | ------------- | ------------------------------------------------------------ | ------------- |
|
|
193
|
+
| Istar | [npix, npix] | Dimensionless | Star intensity distribution (on-axis PSF) | No |
|
|
194
|
+
| noisefloor | [npix, npix] | Dimensionless | Noise floor of the coronagraph | No |
|
|
195
|
+
| photometric_aperture_radius | Scalar | λ/D | Photometric aperture radius | Yes |
|
|
196
|
+
| psf_trunc_ratio | Scalar | Dimensionless | truncate the off-axis PSF at a threshold (thresh = psf_trunc_ratio * max(off-axis PSF)) | Yes |
|
|
197
|
+
| photometric_aperture_throughput | [npix, npix, npsfratios] | Dimensionless | fraction of light entering the coronagraph that ends up within the photometric core of the off-axis (planet) PSF assuming perfectly reflecting/transmitting optics, where the core is the solid angle area `Omega` and is set by either `psf_trunc_ratio` or `photometric_aperture_radius`. | No |
|
|
198
|
+
| omega_lod | [npix, npix, npsfratios] | (λ/D)² | Solid angle of the photometric aperture | No |
|
|
199
|
+
| skytrans | [npix, npix] | Dimensionless | Sky transmission; the coronagraph’s performance when observing an infinitely extended source | No |
|
|
200
|
+
| pixscale | Scalar | λ/D | Pixel scale of the coronagraph model | No |
|
|
201
|
+
| npix | Scalar | Dimensionless | length of one side of the coronagraph model images (assuming a square) | No |
|
|
202
|
+
| xcenter | Scalar | Pixel | X-coordinate of the image center | No |
|
|
203
|
+
| ycenter | Scalar | Pixel | Y-coordinate of the image center | No |
|
|
204
|
+
| bandwidth | Scalar | Dimensionless | Fractional bandwidth of coronagraph | Yes |
|
|
205
|
+
| stellar_radius | Scalar | R_sun | stellar radius in solar radii | Yes |
|
|
206
|
+
| stellar_angular_diameter_arcsec | Scalar | arcsec | angular diameter of the star | No |
|
|
207
|
+
| npsfratios | Scalar | Dimensionless | Number of PSF truncation ratios (default 1) | No |
|
|
208
|
+
| nrolls | Scalar | Dimensionless | Number of roll angles performed | Yes |
|
|
209
|
+
| nchannels | Scalar | Dimensionless | Number of channels in coronagraph | Yes |
|
|
210
|
+
| minimum_IWA | Scalar | λ/D | Minimum Inner Working Angle | Yes |
|
|
211
|
+
| maximum_OWA | Scalar | λ/D | Maximum Outer Working Angle | Yes |
|
|
212
|
+
| coronagraph_optical_throughput | [nlambda] | Dimensionless | Throughput for all coronagraph optics | Yes |
|
|
213
|
+
| coronagraph_spectral_resolution | Scalar | Dimensionless | Spectral resolution of the coronagraph | Yes |
|
|
214
|
+
| contrast | Scalar | Dimensionless | Noise floor contrast of coronagraph | Yes |
|
|
215
|
+
| noisefloor_factor | Scalar | Dimensionless | Systematic noise floor factor | Yes |
|
|
216
|
+
| noisefloor_PPF | Scalar | Dimensionless | Noise floor post-processing factor | Yes |
|
|
217
|
+
| Tcore | Scalar | Dimensionless | Core throughput of coronagraph (used in ToyModel only, or if photometric_aperture_radius is specified for omega_lod calculation) | Yes |
|
|
218
|
+
| TLyot | Scalar | Dimensionless | Lyot transmission of the coronagraph (used in ToyModel only) | Yes |
|
|
219
|
+
| PSFpeak | Scalar | Dimensionless | Peak value of the off-axis PSF | No |
|
|
220
|
+
|
|
221
|
+
### A note on calculating `omega_lod`:
|
|
222
|
+
The photometric aperture `omega_lod` can be calculated via two methods, and the user should specify
|
|
223
|
+
either the `psf_trunc_ratio` or `photometric_aperture_radius` parameters to do so.
|
|
224
|
+
- `photometric_aperture_radius` simply sets a radius for the photometric aperture, such that `omega_lod = \pi * (photometric_aperture_radius * (lambda/D))^2`,
|
|
225
|
+
where `omega_lod` is the solid angle of the photometric aperture.
|
|
226
|
+
- In contrast, `psf_trunc_ratio` is a more complex way of calculating the photometric aperture solid angle `omega_lod`, necessary because the off-axis PSF is not always going to be a perfect circle, and can be misshapen. In principle, this method takes an off-axis PSF and calculates `omega_lod` as all pixels in the PSF that are above the threshold `psf_trunc_ratio * max(off-axis PSF)`, accounting for imperfect PSF shapes. Note: If the off-axis PSF shape is a perfect airy disk, then `psf_trunc_ratio` is simply `1 - photometric_aperture_radius`.
|
|
227
|
+
- Finally, `photometric_aperture_throughput` is an entirely different, but related, parameter, not to be confused with the two parameters above. This parameter is essentially the core throughput of the off-axis PSF. In other words, this is the fraction of light entering the coronagraph that ends up within the photometric core of the off-axis (planet) PSF assuming perfectly reflecting/transmitting optics, where the core is the solid angle area `omega_lod` and is set by either `psf_trunc_ratio` or `photometric_aperture_radius`.
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
## Within `telescopes.py`
|
|
231
|
+
| Variable Name | Length | Unit | Meaning | User Editable |
|
|
232
|
+
| -------------------- | --------- | ------------- | --------------------------------------------- | ------------- |
|
|
233
|
+
| diameter | Scalar | m | Circumscribed diameter of telescope aperture | Yes |
|
|
234
|
+
| Area | Scalar | m^2 | Effective collecting area of telescope | No |
|
|
235
|
+
| unobscured_area | Scalar | Dimensionless | Unobscured area percentage | Yes |
|
|
236
|
+
| toverhead_fixed | Scalar | Time | Fixed overhead time | Yes |
|
|
237
|
+
| toverhead_multi | Scalar | Dimensionless | Multiplicative overhead time | Yes |
|
|
238
|
+
| telescope_optical_throughput | [nlambda] | Dimensionless | Optical throughput of telescope | Yes |
|
|
239
|
+
| temperature | Scalar | Temperature | Temperature of the warm optics | Yes |
|
|
240
|
+
| T_contamination | Scalar | Dimensionless | Effective throughput factor for contamination | Yes |
|
|
241
|
+
|
|
242
|
+
## Within `detectors.py`
|
|
243
|
+
| Variable Name | Length | Unit | Meaning | User Editable |
|
|
244
|
+
| --------------- | --------- | --------------------------- | ------------------------------------------------- | ------------- |
|
|
245
|
+
| pixscale_mas | Scalar | Milliarcsecond | Detector pixel scale | Yes |
|
|
246
|
+
| npix_multiplier | [nlambda] | Dimensionless | Number of detector pixels per image plane "pixel" | Yes |
|
|
247
|
+
| DC | [nlambda] | Electron / (Pixel * Second) | Dark current | Yes |
|
|
248
|
+
| RN | [nlambda] | Electron / (Pixel * Read) | Read noise | Yes |
|
|
249
|
+
| tread | [nlambda] | Second | Read time | Yes |
|
|
250
|
+
| CIC | [nlambda] | Electron / (Pixel * Photon) | Clock-induced charge | Yes |
|
|
251
|
+
| QE | [nlambda] | Electron / Photon | Quantum efficiency of detector | Yes |
|
|
252
|
+
| dQE | [nlambda] | Dimensionless | Effective QE due to degradation | Yes |
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
## Within `observation.py`
|
|
256
|
+
| Variable Name | Length | Unit | Meaning | User Editable |
|
|
257
|
+
| --------------- | --------- | ------------- | --------------------------------------- | ------------- |
|
|
258
|
+
| wavelength | [nlambda] | um | Observation wavelengths | Yes |
|
|
259
|
+
| SNR | [nlambda] | Dimensionless | Signal-to-noise ratio | Yes |
|
|
260
|
+
| CRb_multiplier | Scalar | Dimensionless | Factor to multiply assuming differential imaging to remove background | Yes |
|
|
261
|
+
| td_limit | Scalar | s | Limit placed on exposure times | No |
|
|
262
|
+
| exptime | [nlambda] | s | Exposure time for each wavelength | No |
|
|
263
|
+
| fullsnr | [nlambda] | Dimensionless | Calculated SNR for each wavelength | No |
|
|
264
|
+
| observing_mode | Scalar | String | Observing mode (e.g., 'IMAGER' or 'IFS') | Yes |
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
## Within `astrophysical_scene.py`
|
|
268
|
+
| Variable Name | Length | Unit | Meaning | User Editable |
|
|
269
|
+
| ----------------------- | --------- | ---------------------------- | ------------------------------------------------- | ------------- |
|
|
270
|
+
| dist | Scalar | pc | Distance to star | Yes |
|
|
271
|
+
| vmag | Scalar | Magnitude | Stellar magnitude at V band | Yes |
|
|
272
|
+
| mag | [nlambda] | Magnitude | Stellar magnitude at desired wavelengths | Yes |
|
|
273
|
+
| stellar_angular_diameter_arcsec | Scalar | Arcsecond | Angular diameter of star | No |
|
|
274
|
+
| nzodis | Scalar | Zodi | Amount of exozodi around target star | Yes |
|
|
275
|
+
| ra | Scalar | Degree | Right ascension of target star | Yes |
|
|
276
|
+
| dec | Scalar | Degree | Declination of target star | Yes |
|
|
277
|
+
| semimajor_axis | Scalar | Astronomical Units | Scalar | Semimajor axis of the planet's orbit (used to calculate separation; assumes face-on orbit) | Yes |
|
|
278
|
+
| separation | Scalar | Arcsecond | Separation of planet | Yes |
|
|
279
|
+
| xp | Scalar | Arcsecond | X-coordinate of planet (defaults to zero for now) | No |
|
|
280
|
+
| yp | Scalar | Arcsecond | Y-coordinate of planet | No |
|
|
281
|
+
| deltamag | [nlambda] | Magnitude | Magnitude difference between planet and host star | Yes |
|
|
282
|
+
| min_deltamag | [nlambda] | Magnitude | Brightest planet to resolve at the IWA | Yes |
|
|
283
|
+
| F0V | Scalar | Photon / (s * cm² * nm) | Flux zero point for V band | Yes |
|
|
284
|
+
| F0 | [nlambda] | Photon / (s * cm² * nm) | Flux zero points for prescribed wavelengths | Yes |
|
|
285
|
+
| M_V | Scalar | Magnitude | Absolute V band magnitude of target star | No |
|
|
286
|
+
| Fzodi_list | [nlambda] | Dimensionless | Zodiacal light fluxes | No |
|
|
287
|
+
| Fexozodi_list | [nlambda] | Dimensionless | Exozodiacal light fluxes | No |
|
|
288
|
+
| Fbinary_list | [nlambda] | Dimensionless | Binary star fluxes | No |
|
|
289
|
+
| Fp_over_Fs | [nlambda] | Dimensionless | Flux of planet relative to star | Yes |
|
|
290
|
+
| Fs_over_F0 | [nlambda] | Dimensionless | Stellar flux relative to F0 | No |
|
|
291
|
+
|
|
292
|
+
## Within `observatory.py`
|
|
293
|
+
| Variable Name | Length | Unit | Meaning | User Editable |
|
|
294
|
+
|---------------|--------|------|---------|---------------|
|
|
295
|
+
| optics_throughput | [nlambda] | Dimensionless | Optical throughput of the entire system | Yes* |
|
|
296
|
+
| epswarmTrcold | [nlambda] | Dimensionless | Warm emissivity * cold transmission factor | Yes* |
|
|
297
|
+
| total_throughput | [nlambda] | Dimensionless | Total throughput including optics and detector | No |
|
|
298
|
+
|
|
299
|
+
## Within `parse_input.py`
|
|
300
|
+
| Variable Name | Length | Unit | Meaning | User Editable |
|
|
301
|
+
| ------------------ | ------ | ------- | ---------------------------------------- | ------------- |
|
|
302
|
+
| secondary_flag | Scalar | Boolean | Flag for secondary variables | Yes |
|
|
303
|
+
| observatory_preset | Scalar | String | Preset configuration for the observatory | Yes |
|
|
304
|
+
| telescope_type | Scalar | String | Type of telescope to use | Yes |
|
|
305
|
+
| coronagraph_type | Scalar | String | Type of coronagraph to use | Yes |
|
|
306
|
+
| detector_type | Scalar | String | Type of detector to use | Yes |
|
|
307
|
+
| observing_mode | Scalar | String | Observing mode (e.g., 'IMAGER' or 'IFS') | Yes |
|
|
308
|
+
|
|
309
|
+
## Within `exposure_time_calculator.py`
|
|
310
|
+
| Variable Name | Length | Unit | Meaning | User Editable |
|
|
311
|
+
| ---------------- | ------ | ------------- | --------------------------------------------------- | ------------- |
|
|
312
|
+
| deltalambda_nm | Scalar | nm | Bandwidth for each wavelength | No |
|
|
313
|
+
| lod | Scalar | Dimensionless | λ/D (wavelength / telescope diameter) | No |
|
|
314
|
+
| lod_rad | Scalar | Radian | λ/D in radians | No |
|
|
315
|
+
| lod_arcsec | Scalar | Arcsecond | λ/D in arcseconds | No |
|
|
316
|
+
| area_cm2 | Scalar | cm² | Telescope collecting area | No |
|
|
317
|
+
| detpixscale_lod | Scalar | λ/D | Detector pixel scale in λ/D units | No |
|
|
318
|
+
| stellar_diam_lod | Scalar | λ/D | Stellar diameter in λ/D units | No |
|
|
319
|
+
| det_sep_pix | Scalar | Pixel | Separation at IWA in pixels | No |
|
|
320
|
+
| det_sep | Scalar | Arcsecond | Separation at IWA in arcseconds | No |
|
|
321
|
+
| det_Istar | Scalar | Dimensionless | Max stellar intensity at IWA | No |
|
|
322
|
+
| det_skytrans | Scalar | Dimensionless | Max sky transmission at IWA | No |
|
|
323
|
+
| det_photometric_aperture_throughput | Scalar | Dimensionless | Max photometric aperture fraction at IWA | No |
|
|
324
|
+
| det_omega_lod | Scalar | (λ/D)² | Solid angle corresponding to max photometric_aperture_throughput at IWA | No |
|
|
325
|
+
| det_npix | Scalar | Pixel | Number of pixels in detector | No |
|
|
326
|
+
| CRp | Scalar | Electron/s | Planet count rate | No |
|
|
327
|
+
| CRbs | Scalar | Electron/s | Stellar leakage count rate | No |
|
|
328
|
+
| CRbz | Scalar | Electron/s | Local zodiacal light count rate | No |
|
|
329
|
+
| CRbez | Scalar | Electron/s | Exozodiacal light count rate | No |
|
|
330
|
+
| CRbbin | Scalar | Electron/s | Binary star count rate | No |
|
|
331
|
+
| CRbth | Scalar | Electron/s | Thermal background count rate | No |
|
|
332
|
+
| CRbd | Scalar | Electron/s | Detector noise count rate | No |
|
|
333
|
+
| CRnf | Scalar | Electron/s | Noise floor count rate | No |
|
|
334
|
+
| CRb | Scalar | Electron/s | Total background count rate | No |
|
|
335
|
+
| t_photon_count | Scalar | s | Photon counting time | No |
|
|
336
|
+
|