Open Jordatious opened 3 years ago
Btw, when installing shadeMS via pip (following https://github.com/ratt-ru/shadeMS/pull/95), I get the same error.
Ok perhaps I should have checked https://github.com/ratt-ru/shadeMS/issues/85... It's a different error that is output though.
Same underlying cause as #85 I'll bet. Good excuse to bite the bullet and sort out SPW support properly. Could you please split out one scan of your MS for me @Jordatious, for testing?
Hey @o-smirnov,
Sure! I put the first scan of the target (scan 3) here:
/scratch3/users/oms/1587795059_sdp_l0.J03323-28075-scan3.ms/
Interestingly, I get the same error when I try to plot this manually... I have no idea how plotms
managed to get it working...
In [4]: tb.open('1587795059_sdp_l0.J03323-28075.ms')
Out[4]: True
In [5]: dat=tb.query('ANTENNA1==1 AND ANTENNA2==2',columns='MODEL_DATA,TIME')
In [6]: dat.getcol('MODEL_DATA')[0]
2021-03-11 14:25:35 SEVERE getcol::MODEL_DATA Exception Reported: Table DataManager error: getArrayColumnCells shape mismatch in column MODEL_DATA
That's not too surprising. getcol()
wants to read the column as a (row,chan,corr) array, and since your selection has a "ragged" channel axis, it simply can't.
I suppose plotms
iterates over spectral windows to avoid this, so I should just do the same in shadeMS...
Ahhh ok that makes sense. You may already know, but this works for me, which you can see corresponds to the channel count from here:
In [9]: dat = tb.query("ANTENNA1==0 AND ANTENNA2==1 AND DATA_DESC_ID==0", columns='MODEL_DATA,TIME')
In [10]: data=dat.getcol('MODEL_DATA')
In [11]: data.shape
Out[11]: (2, 63, 3283)
In [12]: dat2 = tb.query("ANTENNA1==0 AND ANTENNA2==1 AND DATA_DESC_ID==1", columns='MODEL_DATA,TIME')
In [13]: data2=dat2.getcol('MODEL_DATA')
data
In [14]: data2.shape
Out[14]: (2, 59, 3283)
Yep so this is working for me when I iterate over the above, and it's quite fast actually. The plotting bit is what takes so long...
Just a quick correction to the above, which I've edited - this was the run where I have all 8 SPWs, without overlap, only avoiding RFI bands, so there's no missing bands. It's the one for which I'm running CubiCal, which was partially successful, and which I'll report back about later. Part of determining why it wasn't 100% successful is plotting the MODEL_DATA
and DIR1_DATA
columns.
I'm getting the error below when calling shadeMS in the following way:
I managed to get it working when plotting amplitude as a function of time, but not as a function of frequency, as with this call.
Here's some info about the data in case it's useful. There are discontinuities between SPWs, either side of RFI bands. And then obviously the number of channels isn't consistent between SPWs. I'm not sure if that's problematic or not.
Log: