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

sanity check should check if dishes all move together #66

Open
mariogrs opened this issue Oct 21, 2023 · 0 comments
Open

sanity check should check if dishes all move together #66

mariogrs opened this issue Oct 21, 2023 · 0 comments
Assignees

Comments

@mariogrs
Copy link
Collaborator

This check should apply both to az and el or ra/dec. I suggest checking the tracks and scans separately. Currently only elevation seems to be checked. One possibility for az:

d=katdal.open(' ....')
d.select(corrprods='auto', scans='scan', strict=True)
azmedian=(np.median(d.az, axis=1))
azdev=np.average(np.absolute((d.az[:,:]-azmedian[:,None])/azmedian[:,None]),axis=0)
print((azdev > 0.01).sum()) # Number of bad dishes. only allows a 1% deviation
print((np.asarray(azdev > 0.01).nonzero())[0]) # list of bad dishes

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

2 participants