Open Clark0907 opened 1 year ago
@Clark0907 -- I think this might actually be a bug in the analysisUtils package, but we should be able to find a workaround here. Would you mind posting the listobs
log output here for the SPW table? I'm wondering what's causing there to be so many SPWs.
Hi @e-koch here is the listobs for the calibrated ms file of the tm1 configuration on ALMA that is causing us problems!
Hi @Clark0907 -- thank you! I'm thinking is possibly an edge-case in how the PHANGS pipeline expects the SPWs for measurement sets with the same config labeled.
would you mind running a quick test by labelling the current tm1 to tm1_1, tm1_2, and tm1_3, and checking whether combining those separately with the 12m tm2 an 7m works? you'll need to update the config_definitions.txt
file with these, too. I think you could just run the staging step to save time.
Hi @Clark0907 , thank you for finding the issue and providing the details. Hi @e-koch , thank you for the checking too! Sorry for my late reply.
I think this error is caused by the analysisUtils package which cannot make a ValueMapping object from the measurement set "calibrated_final.ms". A minimum reproducible code is probably like this (please confirm if you may):
import sys
sys.path.insert(1, '/your/path/to/analysis_scripts')
import analysisUtils as au
vm = au.ValueMapping('/your/path/to/calibrated_final.ms')
#--> The error about the index error should occur at this point
My guess is that when the calibration pipeline produces the "calibrated_final.ms"
, only science spws are extracted and non-science spws are discarded, therefore, the "DATA_DESCRIPTION"
table does not contain the full list of "SPECTRAL_WINDOW_ID"
.
I guess one possible solution is to use the "calibrated.ms"
if you have one, or, as what we have been doing, using the individual "uid___A002_*.ms"
data (if not found then "uid___A002_*.ms.split.cal"
data).
Please have a try with the "calibrated.ms"
first if you have that data in your calibrated directory. If it is not found, then please list all the "uid___A002_*.ms"
data in the "keys/ms_file_key.txt".
Thanks for having a try! Please let us know if any solution could work! Good luck!
Best regards, Daizhong
In addition, why combinespw
works? I think this is because when combinespw
is set to True
, our imaging pipeline will call casaVisRoutines.find_spws_for_science
instead of casaVisRoutines.find_spws_for_line
. The later will call the au.ValueMapping
function whereas the former will not call that function in default...
Hi everyone!
Thank you for getting back to me about this issue I appreciate it:) I am going to be out of the office for the next week so I will run these tests and provide updates when I return!
Thanks Again,
Ilyse Clark
On Sun, Jul 2, 2023 at 4:44 PM 1054 @.***> wrote:
In addition, why combinespw works? I think this is because when combinespw is set to True, our imaging pipeline will call casaVisRoutines.find_spws_for_science instead of casaVisRoutines.find_spws_for_line. The later will call the au.ValueMapping function whereas the former will not call that function in default...
— Reply to this email directly, view it on GitHub https://github.com/akleroy/phangs_imaging_scripts/issues/239#issuecomment-1616812641, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARDXNYKMV6XCLJVFYMDUBQTXOHMRXANCNFSM6AAAAAAZQZEE7Q . You are receiving this because you were mentioned.Message ID: @.***>
Hi @e-koch this approach to changing the array tags to 12_1, 12_2, and 12_3 in the ms key file and in the config key file where is asks for the array tags, along with using the "combinespw=True" in the config key file, worked on making a dirty image for all the ms files together which I was not able to do before!
We will run the full clean soon and update if this method still works:) Thank you so much for the help I appreciate it alot!
Glad to hear! did you have a chance to check out @1054's suggestion if the MSs are the calibrated_final.ms
delivered by ALMA?
Glad to hear! did you have a chance to check out @1054's suggestion if the MSs are the
calibrated_final.ms
delivered by ALMA?
Hi, sorry I forgot to respond to that message! All of the ms files we use from each configuration are the calibrated_final.ms products from ALMA except for the tm2 data which is in two separate ms files that we put into in the pipeline!
I am running into an issue when executing the "run_casa_pipeline_phangs-alma.py" part of the pipeline. There is another issue that references something similar, issue #180, and the fix seems to be setting "combinespw:True" in the config_definitions.txt key file.
I was wondering if there were any updates to this issue as I have multiple ms files that I am combing at once, other than the one that is throwing the error, and I do not want to combine the spws for all of them. Here is the error message below: