Skip to content

Commit

Permalink
Extend the time range on FHD cals by half the integration time
Browse files Browse the repository at this point in the history
  • Loading branch information
bhazelton committed Oct 15, 2023
1 parent cd8b319 commit 81b3d6c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pyuvdata/uvcal/fhd_cal.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,17 @@ def read_fhd_cal(
time_use = bl_info["time_use"][0]

time_array_use = time_array[np.where(time_use > 0)]
# extend the range by half the integration time in each direction
# to make sure that the original data times are covered by the range.
intime_jd = self.integration_time / (24.0 * 3600.0)
self.time_range = np.reshape(
np.asarray([np.min(time_array_use), np.max(time_array_use)]), (1, 2)
np.asarray(
[
np.min(time_array_use) - intime_jd / 2.0,
np.max(time_array_use) + intime_jd / 2.0,
]
),
(1, 2),
)

self.telescope_name = obs_data["instrument"][0].decode("utf8")
Expand Down

0 comments on commit 81b3d6c

Please sign in to comment.