Skip to content

Commit 22013b5

Browse files
committed
reverse sign of X in hci output
1 parent cdc2a4a commit 22013b5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

pfb/utils/stokes2im.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ def stokes_image(
216216
tdec = radec[1]
217217

218218
ra_deg = np.rad2deg(tra)
219+
if ra_deg > 180:
220+
ra_deg -= 360
219221
dec_deg = np.rad2deg(tdec)
220222

221223

@@ -456,7 +458,7 @@ def stokes_image(
456458
'FREQ': (('FREQ',), np.array([freq_out])),
457459
'TIME': (('TIME',), utime),
458460
'STOKES': (('STOKES',), list(corr)),
459-
'X': (('X',), ra_deg + np.arange(-(nx//2), nx//2) * cell_deg),
461+
'X': (('X',), ra_deg + np.arange(nx//2, -(nx//2), -1) * cell_deg),
460462
'Y': (('Y',), dec_deg + np.arange(-(ny//2), ny//2) * cell_deg),
461463
}
462464
# X and Y are transposed for compatibility with breifast

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ scikit-image = ">=0.24.0"
2525
PyWavelets = ">=1.7.0"
2626
katbeam = ">=0.1"
2727
numexpr = ">=2.10.1"
28-
pyscilog = ">=0.1.2"
28+
pyscilog = { git = "https://github.com/gijzelaerr/pyscilog", branch = "update" }
2929
Click = ">=8.1"
3030
ducc0 = ">=0.35.0"
3131
sympy = ">=1.9"
3232
stimela = ">=2.0.2"
3333
streamjoy = ">=0.0.8"
3434
codex-africanus = {extras = ["dask", "scipy", "astropy", "python-casacore"], version = ">=0.4.1"}
35-
dask-ms = {extras = ["s3", "xarray", "zarr"], version = ">=0.2.22"}
35+
dask-ms = {extras = ["s3", "xarray", "zarr"], version = ">=0.2.23"}
3636
tbb = ">=2021.13.1"
3737
jax = {extras = ["cpu"], version = ">=0.4.31"}
3838
lz4 = ">=4.3.3"

0 commit comments

Comments
 (0)