Skip to content

Commit

Permalink
Merge pull request #1030 from cta-observatory/dl1ab_sin_az_tel
Browse files Browse the repository at this point in the history
Recalculate sin_az_tel
  • Loading branch information
rlopezcoto authored Oct 24, 2022
2 parents 859a924 + 2d9014e commit e5929be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lstchain/scripts/lstchain_dl1ab.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ def main():
'time_gradient',
'n_pixels',
'wl',
'log_intensity'
'log_intensity',
'sin_az_tel'
]

nodes_keys = get_dataset_keys(args.input_file)
Expand Down Expand Up @@ -327,6 +328,8 @@ def main():
dl1_container['disp_angle'] = disp_angle
dl1_container['disp_sign'] = disp_sign

dl1_container['sin_az_tel'] = np.sin(params['az_tel'][ii])

for p in parameters_to_update:
params[ii][p] = u.Quantity(dl1_container[p]).value

Expand Down

0 comments on commit e5929be

Please sign in to comment.