Skip to content

Commit 9c4be17

Browse files
committed
panel now propagates AZ EL summary.
1 parent df4dd35 commit 9c4be17

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/astrohack/antenna/antenna_surface.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def __init__(
8888
self.pol_state = pol_state
8989
self._read_xds(inputxds)
9090
self.telescope = telescope
91-
91+
9292
if patch_phase:
9393
self.phase = phase_wrapping(self.phase)
9494

@@ -216,12 +216,14 @@ def _read_xds(self, inputxds):
216216
inputxds: X array dataset
217217
"""
218218
# Origin dependant reading
219+
219220
if self.reread:
220221
self._read_panel_xds(inputxds)
221222
else:
222223
self._read_holog_xds(inputxds)
223224

224225
# Common elements
226+
self.az_el_info = inputxds.attrs['az_el_information']
225227
self.antenna_name = inputxds.attrs["ant_name"]
226228
self.ddi = inputxds.attrs["ddi"]
227229
self.label = create_dataset_label(
@@ -919,6 +921,8 @@ def export_xds(self):
919921
xds.attrs["fitted"] = self.fitted
920922
xds.attrs["aperture_resolution"] = self.resolution
921923
xds.attrs["pol_state"] = self.pol_state
924+
xds.attrs['az_el_information'] = self.az_el_info
925+
922926
xds["AMPLITUDE"] = xr.DataArray(self.amplitude, dims=["u", "v"])
923927
xds["PHASE"] = xr.DataArray(self.phase, dims=["u", "v"])
924928
xds["DEVIATION"] = xr.DataArray(self.deviation, dims=["u", "v"])

0 commit comments

Comments
 (0)