-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JP-3455: Updated MIRI imager photom step (#8096)
Co-authored-by: Howard Bushouse <[email protected]>
- Loading branch information
1 parent
2a70810
commit faee866
Showing
4 changed files
with
82 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import logging | ||
import numpy as np | ||
|
||
log = logging.getLogger(__name__) | ||
log.setLevel(logging.DEBUG) | ||
|
||
# Routine to find a time-dependent correction to the PHOTOM value. | ||
|
||
def time_corr_photom(param, t): | ||
""" | ||
Short Summary | ||
-------------- | ||
Time dependent PHOTOM function. | ||
The model parameters are amplitude, tau, t0. t0 is the reference day | ||
from which the time-dependent parameters were derived. This function will return | ||
a correction to apply to the PHOTOM value at a given MJD. | ||
Parameters | ||
---------- | ||
param : numpy array | ||
Set of parameters for the PHOTOM value | ||
t : int | ||
Modified Julian Day (MJD) of the observation | ||
Returns | ||
------- | ||
corr: float | ||
The time-dependent correction to the photmjsr term. | ||
""" | ||
|
||
amplitude, tau, t0 = param["amplitude"], param["tau"], param["t0"] | ||
corr = amplitude * np.exp(-(t - t0)/tau) | ||
|
||
return corr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters