xradio 0.0.4__py3-none-any.whl → 0.0.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- xradio/image/_util/_casacore/xds_from_casacore.py +2 -2
- xradio/image/_util/_casacore/xds_to_casacore.py +3 -3
- xradio/vis/convert_msv2_to_processing_set.py +3 -3
- {xradio-0.0.4.dist-info → xradio-0.0.5.dist-info}/METADATA +1 -1
- {xradio-0.0.4.dist-info → xradio-0.0.5.dist-info}/RECORD +8 -8
- {xradio-0.0.4.dist-info → xradio-0.0.5.dist-info}/LICENSE.txt +0 -0
- {xradio-0.0.4.dist-info → xradio-0.0.5.dist-info}/WHEEL +0 -0
- {xradio-0.0.4.dist-info → xradio-0.0.5.dist-info}/top_level.txt +0 -0
|
@@ -162,7 +162,7 @@ def __get_time_format(value:float, unit:str) -> str:
|
|
|
162
162
|
def __add_time_attrs(xds: xr.Dataset, coord_dict: dict) -> xr.Dataset:
|
|
163
163
|
time_coord = xds['time']
|
|
164
164
|
meta = {}
|
|
165
|
-
meta['
|
|
165
|
+
meta['time_scale'] = coord_dict['obsdate']['refer']
|
|
166
166
|
meta['unit'] = coord_dict['obsdate']['m0']['unit']
|
|
167
167
|
meta['format'] = __get_time_format(time_coord[0], meta['unit'])
|
|
168
168
|
time_coord.attrs = copy.deepcopy(meta)
|
|
@@ -245,7 +245,7 @@ def __casa_image_to_xds_attrs(img_full_path: str, history: bool=True) -> dict:
|
|
|
245
245
|
else:
|
|
246
246
|
telescope['position'] = coord_dict[k]
|
|
247
247
|
elif k == 'obsdate':
|
|
248
|
-
obsdate['
|
|
248
|
+
obsdate['time_scale'] = coord_dict[k]['refer']
|
|
249
249
|
obsdate['unit'] = coord_dict[k]['m0']['unit']
|
|
250
250
|
obsdate['value'] = coord_dict[k]['m0']['value']
|
|
251
251
|
obsdate['format'] = __get_time_format(obsdate['value'], obsdate['unit'])
|
|
@@ -113,11 +113,11 @@ def __coord_dict_from_xds(xds: xr.Dataset) -> dict:
|
|
|
113
113
|
coord['telescope'] = xds.attrs['telescope']['name']
|
|
114
114
|
coord['observer'] = xds.attrs['observer']
|
|
115
115
|
obsdate = {}
|
|
116
|
-
obsdate['refer'] = xds.time.attrs['
|
|
116
|
+
obsdate['refer'] = xds.coords['time'].attrs['time_scale']
|
|
117
117
|
obsdate['type'] = 'epoch'
|
|
118
118
|
obsdate['m0'] = {}
|
|
119
|
-
obsdate['m0']['unit'] = xds.time.attrs['unit']
|
|
120
|
-
obsdate['m0']['value'] = xds.time.values[0]
|
|
119
|
+
obsdate['m0']['unit'] = xds.coords['time'].attrs['unit']
|
|
120
|
+
obsdate['m0']['value'] = xds.coords['time'].values[0]
|
|
121
121
|
#obsdate['format'] = xds.time.attrs['format']
|
|
122
122
|
coord['obsdate'] = obsdate
|
|
123
123
|
coord['pointingcenter'] = xds.attrs[__pointing_center].copy()
|
|
@@ -408,9 +408,9 @@ def convert_and_write_partition(
|
|
|
408
408
|
rename_ids=subt_rename_ids["FIELD"],
|
|
409
409
|
)
|
|
410
410
|
|
|
411
|
-
delay_dir = {"dims":"", "data":list(field_xds["delay_dir"].data[field_id, 0, :]), "attrs": {"units": "rad", "type":"sky_coord", "description":"Direction of delay center in right ascension and declination."}}
|
|
412
|
-
phase_dir = {"dims":"", "data":list(field_xds["phase_dir"].data[field_id, 0, :]), "attrs": {"units": "rad", "type":"sky_coord", "description":"Direction of phase center in right ascension and declination."}}
|
|
413
|
-
reference_dir = {"dims":"", "data":list(field_xds["delay_dir"].data[field_id, 0, :]), "attrs": {"units": "rad", "type":"sky_coord", "description":"Direction of reference direction in right ascension and declination. Used in single-dish to record the associated reference direction if position-switching has already been applied. For interferometric data, this is the original correlated field center, and may equal delay_direction or phase_direction."}}
|
|
411
|
+
delay_dir = {"dims":"", "data":list(field_xds["delay_dir"].data[field_id, 0, :]), "attrs": {"units": "rad", "type":"sky_coord", "reference_frame":"FK5", "description":"Direction of delay center in right ascension and declination."}}
|
|
412
|
+
phase_dir = {"dims":"", "data":list(field_xds["phase_dir"].data[field_id, 0, :]), "attrs": {"units": "rad", "type":"sky_coord", "reference_frame":"FK5", "description":"Direction of phase center in right ascension and declination."}}
|
|
413
|
+
reference_dir = {"dims":"", "data":list(field_xds["delay_dir"].data[field_id, 0, :]), "attrs": {"units": "rad", "type":"sky_coord", "reference_frame":"FK5","description":"Direction of reference direction in right ascension and declination. Used in single-dish to record the associated reference direction if position-switching has already been applied. For interferometric data, this is the original correlated field center, and may equal delay_direction or phase_direction."}}
|
|
414
414
|
|
|
415
415
|
field_info = {
|
|
416
416
|
"name": field_xds["name"].data[field_id],
|
|
@@ -13,15 +13,15 @@ xradio/image/_util/image_factory.py,sha256=0XEgtO8MDCiXhqQvO-WkHExPHNoyQG4uU5JxK
|
|
|
13
13
|
xradio/image/_util/zarr.py,sha256=HAmQzvukFGltlMdJhbKRkZhfRYxtX1aPpVKiwQaERtw,454
|
|
14
14
|
xradio/image/_util/_casacore/__init__.py,sha256=AzU22a8tVAbxO7EAYfE8M3Xn8217YANKiXYtPkewM20,42
|
|
15
15
|
xradio/image/_util/_casacore/common.py,sha256=m2MKjM7aZ-gXvGLl7HzyN8KqoVUyiv_GyTDN-DIyg98,224
|
|
16
|
-
xradio/image/_util/_casacore/xds_from_casacore.py,sha256=
|
|
17
|
-
xradio/image/_util/_casacore/xds_to_casacore.py,sha256=
|
|
16
|
+
xradio/image/_util/_casacore/xds_from_casacore.py,sha256=ByadUH6fPLvhvlXGJpvS6fgdO-bHfxEJZJudWi4URmQ,39661
|
|
17
|
+
xradio/image/_util/_casacore/xds_to_casacore.py,sha256=BEe8U2Awbe3YXEQIYKuCTdOXz2FGNNnsFE7JWFgB20M,11113
|
|
18
18
|
xradio/image/_util/_fits/fits_to_xds.py,sha256=x_ZNCu2FLDkZnp4aMbZaQBOKnKZ4LI6SGgD63JLPRjI,11132
|
|
19
19
|
xradio/image/_util/_zarr/common.py,sha256=rCntE2QrGMseMJ7DsuWnbNk9kuvCgFFJXMyIzzedo0U,349
|
|
20
20
|
xradio/image/_util/_zarr/xds_from_zarr.py,sha256=Es97yMB74SY2D_ecY8c_y6M4Vm7eqmvofWWyWe_btUE,1697
|
|
21
21
|
xradio/image/_util/_zarr/xds_to_zarr.py,sha256=Sh2RbvKHLJx3vOVzDcrurNE215YWbKP1NFGM7zuQFRA,1642
|
|
22
22
|
xradio/vis/__init__.py,sha256=u5CAJpknYDspPF_50istwz70FHSNc3eL8J76ndwgYZo,111
|
|
23
23
|
xradio/vis/_processing_set.py,sha256=dpZbhGDvq4EQFBp5-XgUFJ48MYF897_21Xw77UF0SmE,905
|
|
24
|
-
xradio/vis/convert_msv2_to_processing_set.py,sha256=
|
|
24
|
+
xradio/vis/convert_msv2_to_processing_set.py,sha256=YBgcUXDtL5Auvw8oe2vrg4vUu72MGsljpH49fTwcb_8,20764
|
|
25
25
|
xradio/vis/load_processing_set.py,sha256=HXQEjfZThK85sVhwp1JxxUTl1LqedZgAXQFyf9i5Wuw,4505
|
|
26
26
|
xradio/vis/read_processing_set.py,sha256=E4nIWGz3fDkoOaF1uG09OcmstEN11Do3ekGIHONn2ac,688
|
|
27
27
|
xradio/vis/vis_io.py,sha256=5b0htEaaAJ1XFJcR2HSNgQmxmmJNW-znrku7-QuPdSo,6022
|
|
@@ -49,8 +49,8 @@ xradio/vis/_vis_utils/_utils/stokes_types.py,sha256=rMX7BQFbGFfT6oP54qTit4q16JRA
|
|
|
49
49
|
xradio/vis/_vis_utils/_utils/xds_helper.py,sha256=xrS46H7INWTxiuo2zN_a2wOaTr6irbVlkv1efjm7YxY,11853
|
|
50
50
|
xradio/vis/_vis_utils/_zarr/read.py,sha256=fxznKzP0G8YFjkyMxg04PMI3Mtnu1mMjSnvEhY2arIU,7834
|
|
51
51
|
xradio/vis/_vis_utils/_zarr/write.py,sha256=fnu9xh_AZ4OfoOGHsMnCpVEZ_2UiZGP7qXhlqZesCCs,9585
|
|
52
|
-
xradio-0.0.
|
|
53
|
-
xradio-0.0.
|
|
54
|
-
xradio-0.0.
|
|
55
|
-
xradio-0.0.
|
|
56
|
-
xradio-0.0.
|
|
52
|
+
xradio-0.0.5.dist-info/LICENSE.txt,sha256=dvACd-5O67yjSZlnEKcWmu3DqwzBtbC922iPv0KOeAw,1516
|
|
53
|
+
xradio-0.0.5.dist-info/METADATA,sha256=zs0uCEuxHGf60CmklFGqASlAmxu5GfghrNWhfgNNjH8,4000
|
|
54
|
+
xradio-0.0.5.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
55
|
+
xradio-0.0.5.dist-info/top_level.txt,sha256=dQu27fGBZJ2Yk-gW5XeD-dZ76Xa4Xcvk60Vz-dwXp7k,7
|
|
56
|
+
xradio-0.0.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|