Closed PeterKamphuis closed 1 year ago
Thanks for reporting this. Could you maybe copy to full log?
Here is the log
disabling the summary works but then it has to be disabled every where, i.e. when disabled in the first flag it crashes in crosscal on the same issue. I'll try to add the antenna's to the transform worker.
cool, thanks!
The solution is to check for NaNs in MSUtils/flag_stats.py
and replace them with 0s. @Athanaseus you perhaps?
@PeterKamphuis is it possible to share/email me a subset of the similar GMRT data?
@SpheMakh the cab/casa_mstransform does not have the antenna parameter while mstransform does. Is there a reason for this? Or am I missing something?
Also according to stimela cabs -i casa_mstransform
the scan parameter is there twice. Maybe this is a stimela issue instead of caracal?
Solved in #1428
you can add a transform after the obsconf with :
transform: enable: false field: 'calibrators' label_out: 'cal' split_field: enable: true col: 'data' antennas: '0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29&'
and caracal should run fine.
Facing the exact same 'Flag summary error'. Then added the antennas as follows:
transform:
enable: true
label_out: cal
field: calibrators
split_field:
enable: true
col: data
antennas: 'C00,C01,C02,C03,C04,C05,C06,C08,C09,C10,C11,C12,C13,C14,E02,E03,E04,E05,E06,S01,S02,S03,S04,S06,W01,W02,W03,W04,W05,W06&'
Now the pipeline stops running. Returning below error:
2022-12-23` 15:23:12 CARACal INFO: Invoked as /home/rramij/venv/bin/caracal -ct singularity -c uGMRT_pipe.yml -sid /home/rramij/singularity_images
2022-12-23 15:23:13 CARACal ERROR: configuration file uGMRT_pipe.yml fails to validate, list of errors follows:
transform:
- Key 'antennas' was not defined. Path: '/transform/split_field'
``
Running the current master version on a GMRT data set results in an error when producing the flag summary. This is due to the two fake GMRT antennas that throw a NaN in 'output/diagnostic_plots/Original-cal-flag-flagging-summary-0.json' (See full traceback below).
This is is despite setting the inspect to false in the yaml file.
It is easily solveable by running an mstransform that exclude the given antennas, antenna = '0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29&' In my casa (v5.5) antenna ='!30,31' does not work.
Unfortunately this problem is not solveable within caracal as transform does not allow for the selection of antennas (Why not?). Making it difficult to create a caracal yaml file that can deal with GMRT observations out of the box.