pyuvdata icon indicating copy to clipboard operation
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

Open aewallwi opened this issue 6 years ago • 2 comments

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.

aewallwi avatar Aug 09 '18 04:08 aewallwi

@bhazelton is this solved by having the yaml files to save metadata?

plaplant avatar Apr 26 '19 15:04 plaplant

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.

bhazelton avatar Apr 26 '19 20:04 bhazelton