caracal-pipeline / caracal

Containerized Automated Radio Astronomy Calibration (CARACal) pipeline
GNU General Public License v2.0
28 stars 6 forks source link

Polcal: Update unpolarized source list? #1531

Closed ktrehaeven closed 10 months ago

ktrehaeven commented 11 months ago

Hi

I'm using the current master branch, version 1.1.2, and trying to do polcal. My primary and polarisation calibrators are labelled in the MS as "1934-638" and "3C286", respectively. But the polcal worker is saying it cant recognise a polarization calibration strategy. I think this is because it doesn't recognise the name "1934-638" as being "PKS 1934-638". It could be something else wrong but here's the log file. If this is case, I can just go into the ms and rename this source to "PKS 1934-638" to solve the issue, but want to ask if there could be a deeper issue? log-caracal.txt

AstroRipples commented 10 months ago

Hey @ktrehaeven 👋 hope you've managed to look into this in the past month... I was just scrolling through your log file and I suspect you might be right, 1934-638 doesn't seem to be among the list of "accepted" names for the source: PKS1934-63, J1939-6342, J1938-6341, PKS 1934-638, PKS 1934-63, PKS1934-638. I would have thought, however, that the pipeline would be able to recognise it from the coordinates.

By and large the rest of the file looks okay, although note that early on there's a problem with Tricolour. Looks like we've got some rogue non-ascii characters in there -- probably an accented "e". The pipeline has had the same problem with AOflagger (the "é" in André Offringa's name) for some time... Note that in your case Tricolour still seems to run, which is something.

Your error copied below:

# 2023-08-04 18:03:07: Running tricolour --config /stimela_mount/input/stalin1.yaml --flagging-strategy polarisation --data-column DATA --field-names 3C286,J1313-333,1934-638 --window-backend numpy /stimela_mount/msdir/A3562_west-cal3.ms
# --- Logging error ---
# Traceback (most recent call last):
#   File "/usr/lib/python3.6/logging/__init__.py", line 996, in emit
#     stream.write(msg)
# UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position 452: ordinal not in range(128)
# Call stack:
#   File "/usr/local/bin/tricolour", line 8, in <module>
#     sys.exit(main())
#   File "/usr/local/lib/python3.6/dist-packages/tricolour/apps/tricolour/app.py", line 258, in main
#     _main(args)
#   File "/usr/local/lib/python3.6/dist-packages/tricolour/apps/tricolour/app.py", line 264, in _main
#     log.info(banner())
# Message: "\n*******************************************************************************\n                  _______   _           _\n                 |__   __| (_)         | |\n                    | |_ __ _  ___ ___ | | ___  _   _ _ __\n                    | | '__| |/ __/ _ \\| |/ _ \\| | | | '__|\n                    | | |  | | (_| (_) | | (_) | |_| | |\n                    |_|_|  |_|\\___\\___/|_|\\___/ \\__,_|_|\n\nViva la r\xe9volution!\n"
...
ktrehaeven commented 10 months ago

Hi @AstroRipples. I got around the issue by directly renaming my polarisation calibrator in the ms to one of the names caracal can recognise. Regarding the tricolour error... I dont think it affects the running of the flagging besides making the log file a little bit ugly. But thats fine with me. I think I can close the issue since its not major. Thanks!!