Skip to content

Commit

Permalink
change the adjusted time to match END_INTEG_TIME - INTEG/2 always
Browse files Browse the repository at this point in the history
  • Loading branch information
javierggt committed Oct 23, 2024
1 parent c6d03ad commit 6b14a9d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions chandra_aca/maude_decom.py
Original file line number Diff line number Diff line change
Expand Up @@ -1103,8 +1103,9 @@ def get_aca_packets(
If True, ACA subimages are combined to form a full image (depending on size),
If False, ACA subimages are not combined, resulting in multiple rows for 6x6 and 8x8 images.
adjust_time : bool
If True, TIME is at the middle of the integration window (END_INTEG_TIME - INTEG/2).
If False, TIME is the VCDU time in telemetry (END_INTEG_TIME + 1.025 sec).
If True, TIME is at the middle of the integration window.
If False, TIME is the VCDU time in telemetry of the packet frame (combine=False)
or the VCDU time of the first sub-image of the combined image (combine=True).
calibrate : bool
If True, pixel values will be 'value * imgscale / 32 - 50' and temperature values will
be: 0.4 * value + 273.15
Expand Down Expand Up @@ -1286,7 +1287,7 @@ def _get_aca_packets(
# END_INTEG_TIME to the end:
# END_INTEG_TIME == TIME + INTEG / 2.0
# See also https://cxc.harvard.edu/mta/ASPECT/Docs/aca_l0_icd.pdf section D.2.4.
table["TIME"] -= table["INTEG"] / 2 + 1.025
table["TIME"] = table["END_INTEG_TIME"] - table["INTEG"] / 2

if calibrate:
if "IMG" in table.colnames:
Expand Down

0 comments on commit 6b14a9d

Please sign in to comment.