pyuvdata
pyuvdata copied to clipboard
uvbeam fails to read CST files with proper-case headers and does not appear to handle directivities/e-field amplitudes in dBi
cst_beam fails to read the following header from a standard CST output file
Theta [deg.] Phi [deg.] Abs(Dir.)[dBi ] Abs(Theta)[dBi ] Phase(Theta)[deg.] Abs(Phi )[dBi ] Phase(Phi )[deg.] Ax.Ratio[dB ] ------------------------------------------------------------------------------------------------------------------------------------------------------
This appears to be for two reasons
- The [dBi] unit indicators are not accomodated by read_cst_beam
- read_cst_beam assumes that all column names are lower case.
read_cst_beam should not break on the [dBi ] tags, and read in the beam with dBi units and should also allow for arbitrary cases.
@bhazelton is this solved by having the yaml files to save metadata?
No, I don't think so. @anguta has a PR on this that we've stalled on and I have had some separate conversations with Nicholas and Eloy that might help with this. I think it comes down to understanding the conversion between the various CST outputs -- it's not just a simple unit change.