Skip to content

Commit

Permalink
Rename antenna{1,2}_name -> baseline_antenna{1,2}_name (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjperkins authored Sep 19, 2024
1 parent 3381cdd commit c6ddb1c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 14 deletions.
24 changes: 12 additions & 12 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,21 @@ to be developed on well-understood MSv2 data.
│ creation_date: 2024-09-18T10:49:55.133908+00:00
│ data_description_id: 0
└── Group: /DATA_DESC_ID=0,FIELD_ID=0,OBSERVATION_ID=0/ANTENNA
Dimensions: (antenna_name: 74,
cartesian_pos_label/ellipsoid_pos_label: 3)
Dimensions: (antenna_name: 74,
cartesian_pos_label/ellipsoid_pos_label: 3)
Coordinates:
antenna1_name (baseline) object 22kB ...
antenna2_name (baseline) object 22kB ...
baseline_id (baseline) int64 22kB ...
* frequency (frequency) float64 128B 1.202e+08 1.202e+08 ... 1.204e+08
* polarization (polarization) <U2 32B 'XX' 'XY' 'YX' 'YY'
* time (time) float64 230kB 1.601e+09 1.601e+09 ... 1.601e+09
* antenna_name (antenna_name) object 592B 'CS001HBA0' ... 'IE613HBA'
mount (antenna_name) object 592B 'X-Y' 'X-Y' ... 'X-Y' 'X-Y'
station (antenna_name) object 592B 'LOFAR' 'LOFAR' ... 'LOFAR'
baseline_antenna1_name (baseline) object 22kB ...
baseline_antenna2_name (baseline) object 22kB ...
baseline_id (baseline) int64 22kB ...
* frequency (frequency) float64 128B 1.202e+08 1.202e+08 ... 1.204e+08
* polarization (polarization) <U2 32B 'XX' 'XY' 'YX' 'YY'
* time (time) float64 230kB 1.601e+09 1.601e+09 ... 1.601e+09
* antenna_name (antenna_name) object 592B 'CS001HBA0' ... 'IE613HBA'
mount (antenna_name) object 592B 'X-Y' 'X-Y' ... 'X-Y' 'X-Y'
station (antenna_name) object 592B 'LOFAR' 'LOFAR' ... 'LOFAR'
Dimensions without coordinates: cartesian_pos_label/ellipsoid_pos_label
Data variables:
ANTENNA_POSITION (antenna_name, cartesian_pos_label/ellipsoid_pos_label) float64 2kB ...
ANTENNA_POSITION (antenna_name, cartesian_pos_label/ellipsoid_pos_label) float64 2kB ...
Measurement Set v4
------------------
Expand Down
1 change: 1 addition & 0 deletions doc/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Changelog

X.Y.Z (DD-MM-YYYY)
------------------
* Rename antenna{1,2}_name to baseline_antenna{1,2}_name (:pr:`26`)
* Update Cloud Storage write documentation (:pr:`25`)
* Use datatree as the primary representation (:pr:`24`)
* Remove unnecessary coordinate attributes (:pr:`23`)
Expand Down
10 changes: 8 additions & 2 deletions xarray_ms/backend/msv2/main_dataset_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,14 @@ def get_variables(self) -> Mapping[str, Variable]:
"baseline_id",
(("baseline",), np.arange(len(ant1)), {"coordinates": "baseline_id"}),
),
("antenna1_name", (("baseline",), ant1_names, {"coordinates": "antenna1_name"})),
("antenna2_name", (("baseline",), ant2_names, {"coordinates": "antenna2_name"})),
(
"baseline_antenna1_name",
(("baseline",), ant1_names, {"coordinates": "baseline_antenna1_name"}),
),
(
"baseline_antenna2_name",
(("baseline",), ant2_names, {"coordinates": "baseline_antenna2_name"}),
),
("polarization", (("polarization",), partition.corr_type, None)),
]

Expand Down

0 comments on commit c6ddb1c

Please sign in to comment.