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

Writes non-conformant dataset upon selection of only -dc CORRECTED_DATA #24

Closed
bennahugo opened this issue Mar 14, 2021 · 7 comments
Closed
Labels
bug Something isn't working

Comments

@bennahugo
Copy link
Collaborator

Currently when selecting only to average CORRECTED_DATA the averager writes a non-conformant average measurement set with only CORRECTED_DATA in it. In this case the column has to be renamed to DATA in the output dataset similar to the CASA split task

@bennahugo bennahugo added the bug Something isn't working label Mar 14, 2021
@sjperkins
Copy link
Member

Could you be more precise about what is meant by non-conformant?

Note that the DATA column is optional:

https://casa.nrao.edu/Memos/229.html#SECTION00061000000000000000

I'm closing this issue for the above reason. Please re-open if you believe this to be incorrect.

@bennahugo
Copy link
Collaborator Author

bennahugo commented Mar 15, 2021

The defacto standard behaviour for averaging is to put CORRECTED_DATA into DATA upon the absence of the DATA column (see e.g. behaviour of split, oldsplit and mstransform). With this column missing most CASA tasks will fail. There is no way to reinitialize DATA from CORRECTED_DATA in casa (the inverse can be done by the clearcal task). It is not urgent, I'm just marking it as a problem

Edit:
A typical workflow would be: transfer calibrate into corrected data, average into DATA and then do selfcal for instance back into CORRECTED_DATA. So as it stands the standard workflow cannot be implemented.

@bennahugo bennahugo reopened this Mar 15, 2021
@sjperkins
Copy link
Member

sjperkins commented Mar 15, 2021

The defacto standard behaviour for averaging is to put CORRECTED_DATA into DATA upon the absence of the DATA column (see e.g. behaviour of split, oldsplit and mstransform). With this column missing most CASA tasks will fail. There is no way to reinitialize DATA from CORRECTED_DATA in casa (the inverse can be done by the clearcal task). It is not urgent, I'm just marking it as a problem

From memory, it's possible to use the following switch in xova to obtain the desired behaviour -dc CORRECTED_DATA:DATA

@bennahugo
Copy link
Collaborator Author

Oh? Ok then that is fine though.

@sjperkins
Copy link
Member

Note the defaults from xova bda --help:

  -dc DATA_COLUMN [DATA_COLUMN ...], --data-column DATA_COLUMN [DATA_COLUMN ...]
                        Column(s) to average. Default CORRECTED_DATA:DATA

@sjperkins
Copy link
Member

Help could be improved tho. Could you add a sentence in your current PR to mention the -dc source:target convention?

@bennahugo
Copy link
Collaborator Author

bennahugo commented Mar 15, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants