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

Clear up DDID vs SPECTRAL_WINDOW confusion #38

Open
jmoldon opened this issue Apr 24, 2020 · 4 comments
Open

Clear up DDID vs SPECTRAL_WINDOW confusion #38

jmoldon opened this issue Apr 24, 2020 · 4 comments

Comments

@jmoldon
Copy link

jmoldon commented Apr 24, 2020

First, thanks a lot for the new version, this is improving really fast!

I have seen that the -c option does not work for SPWs. I don't see spw/datadescid in the data_mappers dictionary, so I guess it is not implemented. I think colourizing by spw would be really useful for other instruments. Probably also many cases would benefit from colourizing by FIELD.

I don't know if those would be plug-and-play additions, but I leave them here as a suggestion.

@o-smirnov
Copy link
Collaborator

That which you seek is already there. You can colour by arbitrary column, so -c FIELD_ID and -c DATA_DESC_ID should work out of the box.

(That does remind me that there is some confusion going on between spw and DDID... at the moment shadeMS treats them as one and the same, which they virtually always are, but don't have to be in principle...)

@jmoldon
Copy link
Author

jmoldon commented Apr 24, 2020

That which you seek is already there. You can colour by arbitrary column

That is even better, thanks! A short mention to that in the argparse help would be useful.

Arg, yes ddid-spw translation, annoying as always. The ddids are in the MS:DATA_DESCRIPTION subtable, with the column SPECTRAL_WINDOW_ID matching the spws. And also the SPWs are described in the MS:SPECTRAL_WINDOWS subtable. It is easy to match both by reading the tables directly. I think casacore has functions to match both, but probably it is not needed.

In any case, I have never actually needed to separate them, but you are right that someone (from far far away in a long long time) may have the problem eventually.

@o-smirnov
Copy link
Collaborator

Well, the implication is that all axes (x, y, colour, alpha) have the same variation available to them.

You can even colour by e.g. chunks of channels, -c CHAN --cmin 0 --cmax 64 --cnum 8, and by the value of a visibility column...

@o-smirnov o-smirnov changed the title A couple of --colour-by options Clear up DDID vs SPECTRAL_WINDOW confusion May 25, 2020
@o-smirnov
Copy link
Collaborator

Renaming the issue since I think @jmoldon's colouring needs have been met...

But the DDID/SPWID logic needs to be cleaned up.

@ratt-ru ratt-ru deleted a comment from codeFairOfficial Mar 9, 2021
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