Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vis-convert does not write out autos #41

Open
d3v-null opened this issue Nov 29, 2024 · 0 comments
Open

vis-convert does not write out autos #41

d3v-null opened this issue Nov 29, 2024 · 0 comments

Comments

@d3v-null
Copy link
Collaborator

d3v-null commented Nov 29, 2024

export vis=/scratch/mwaeor/dev/nfdata/1061316544/prep/birli_1061316544_2s_40kHz_edg80.uvfits

singularity exec --cleanenv docker://mwatelescope/mwa-demo:latest-amd64 python -c 'uvd = __import__("pyuvdata").UVData(); path=__import__("sys").argv[-1]; uvd.read(path, read_data=False); uvd.read(path, times=[uvd.time_array[len(uvd.time_array)//2]]); print(uvd.get_data(55,55)[...,0])' $vis

[[37920.348+0.j 37648.33 +0.j 37734.61 +0.j 37459.35 +0.j 37467.63 +0.j
  37048.688+0.j 37035.234+0.j 37054.668+0.j 36972.266+0.j 37110.51 +0.j
  37014.957+0.j 36785.688+0.j 36403.78 +0.j 36633.223+0.j 36332.93 +0.j
  36218.047+0.j 36482.51 +0.j 36066.6  +0.j 35851.117+0.j 36032.062+0.j
  35800.58 +0.j 35798.53 +0.j 35912.31 +0.j 35772.19 +0.j 35877.33 +0.j
...
hyperdrive vis-convert --data /scratch/mwaeor/dev/nfdata/1061312152/prep/birli_1061312152_2s_40kHz_edg80.uvfits --freq-average 80kHz --time-average 2s --outputs birli_1061312152_2s_80kHz.ssins.uvfits --tile-flags Tile105

export vis=birli_1061312152_2s_80kHz.ssins.uvfits

export vis=/scratch/mwaeor/dev/nbdata/birli_novv_ssins_480_2s_80kHz_take2/birli_1061312152_2s_80kHz.ssins.uvfits
singularity exec --bind $PWD --home=$PWD/.fakehome --cleanenv docker://mwatelescope/mwa-demo:latest-amd64 python -c 'uvd = __import__("pyuvdata").UVData(); path=__import__("sys").argv[-1]; uvd.read(path, read_data=False); uvd.read(path, times=[uvd.time_array[len(uvd.time_array)//2]], antenna_nums=[55]); print(uvd.get_data(55,55, "xx")); print(uvd.get_flags(55,55, "xx"))' $vis

[[    0. +0.j     0. +0.j     0. +0.j     0. +0.j     0. +0.j     0. +0.j
  36518.5+0.j     0. +0.j     0. +0.j     0. +0.j     0. +0.j     0. +0.j
[[ True  True  True  True  True  True False  True  True  True  True  True
   True  True  True  True  True  True  True  True  True  True  True  True 
d3v-null added a commit that referenced this issue Nov 30, 2024
use averaging algorithm from Marlu
d3v-null added a commit that referenced this issue Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant