Commit 36e2a6c
authored
Update ALS11012RSoXSLoader.py dark pedestal
Added proper dark subtraction code. Previous version had
img = (img - darkimg + self.dark_pedestal)/corr, which permanently adds the value of the dark pedestal to your data. Corrected version adds the dark pedestal first, performs the subtraction and correction, and then takes the pedestal back out.
Interestingly, I think that this code used to be correct.1 parent caeb18e commit 36e2a6c
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
170 | 172 | | |
171 | 173 | | |
172 | 174 | | |
| |||
0 commit comments