Commit d69c51c
romanisim.models (#328)
* add romanisim.models
* in romanisim.models.wcs: change wcs.numerical_inverse() to wcs.invert()
* update import models.wcs, models.parameters
* modify romanisim.models APIs, now they also takes image_mod, reffiles as valid inputs
* modify texts in example_APIs notebook
* fix a wcs call error in image.py
* mv bandpass name conversions into models.bandpass. Fix a duplicated file read in models.bandpass
* fix a coner case in models.nonlinearity
* update models.bandpass to stick to SOC filter naming convention. Pass test_image, test_l1 unit tests
* update example API notebook
* add galsim_filter_name boolean option to read_gsfc_effarea in models.bandpass to make it also compatible with SOC naming convention.
* remove all galsim.roman dependence, replace the calls of romanisim.(parameters, wcs, psf, bandpass) with romanisim.models.(parameters, wcs, psf, bandpass)
* fix a bug in models.wcs
* update integral nonlinearity correction to the current implementation in romanisim
* for reading files in the roman-tech-info, change: RuntimeError to Exception. Add this try except block to models.bandpass
* update example notebook
* fix a bug in read_gsfc_effarea, remove unused import of asdf astropy.unit etc.
* Squashed 'romanisim/data/roman-technical-information/' content from commit 229bd3c
git-subtree-dir: romanisim/data/roman-technical-information
git-subtree-split: 229bd3ccc23e1a37fba76b62ed537a24d31f2e13
* add roman-technical-information repo as a subtree in romanisim.data, fix galsim.roman calls in docstring examples
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* ignore pre-commit check for roman-technical-information subtree
* fixed a typo in read_noise.py
* removed redundant fermi parameters
* default values for gain, dark_current, and read_noise are now retrieved from models.parameters, and can be updated via passing a metadata dict to the constructor
* moved romanisim.models.psf to romanisim.psf, modified the corresponding imports
* add __all__ to romanisim.psf
* import romanisim in bandpass docstring
* add a helper function to get the reference files (from local or crds)
* deprecated the contents in romanisim.wcs and romanisim.bandpass; corrct for an typo in the docstring in romanisim.models.bandpass
* update models.nonlinearity so it takes a integralnonlinearity datamodel as an input. Correspondingly updated the implementations in tests (test_l1 and test_linear).
* Added deprecation warnings in romanisim.nonlinearity. Also introduced backward compatibility in romanisim.models.nonlinearity for the functions repair_coefficients and evaluate_nl_polynomial. Note that romanisim.nonlinearity.NL is deprecated and is replaced by romanisim.models.nonlinearity.Nonlinearity.
* added a README.md for romanisim.data; changed the logic of accessing the default per SCA throughputs (now the defaults point to roman-tech-info local copy)
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* removed the unused throughput files in romanisim.data
* expose psf_utils and wcs_utils in romanisim.models.__init__
* fix a typo in nonlinearity, add reciprocity failure method in nonlinearity
* update bandpass to allow for getting a subset of Roman bandpasses
* add a getBandpass function (for getting a single band) to models.bandpass
* add relevant galsim.roman unittests
* fixed bugs in image.py and docstring
* fix style failures
* update docstrings for model classes
* remove romanisim/models/example_APIs.ipynb
---------
Co-authored-by: Eddie Schlafly <eschlafly@stsci.edu>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent 8b6ceec commit d69c51c
227 files changed
Lines changed: 25321 additions & 1318 deletions
File tree
- romanisim
- data
- roman-technical-information
- data
- CoronagraphInstrument
- CoronagraphParameters
- Detector
- Filters
- Imaging
- ObservingModes
- Polarimetry
- Spectroscopy
- Observatory
- MissionandObservatoryTechnicalOverview
- Orbit
- RollAngles
- SlewSettle
- Visibility
- WideFieldInstrument
- FPSPerformance
- Imaging
- Backgrounds
- BandEdges
- EffectiveAreas
- FiltersSummary
- PointSpreadFunctions
- Sensitivity
- ZeroPoints
- ZodiacalLight
- RelativeCalibrationSystem
- Spectroscopy
- Backgrounds
- BandEdges
- Dispersion
- EffectiveAreas
- PrismGrismSummary
- Sensitivity
- ZodiacalLight
- models
- tests
- test_data
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 | | |
6 | 11 | | |
7 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 8 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 9 | + | |
22 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
23 | 17 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
31 | 21 | | |
32 | | - | |
33 | | - | |
34 | | - | |
| 22 | + | |
35 | 23 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | | - | |
18 | | - | |
| 16 | + | |
| 17 | + | |
19 | 18 | | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
414 | | - | |
415 | | - | |
| 414 | + | |
| 415 | + | |
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
| |||
592 | 592 | | |
593 | 593 | | |
594 | 594 | | |
595 | | - | |
596 | | - | |
| 595 | + | |
| 596 | + | |
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 commit comments