RadioAstronomySoftwareGroup / pyuvdata

A pythonic interface for radio astronomy interferometry data (uvfits, miriad, others)
https://pyuvdata.readthedocs.io/en/latest/index.html
BSD 2-Clause "Simplified" License
83 stars 26 forks source link

Implement support for reading CST beam files with phi ranging from -180 to 180. #864

Open mickeyhorn opened 4 years ago

mickeyhorn commented 4 years ago

In the default configuration for CST's exported beam files, the phi/azimuthal angle ranges from 0 to 360 degrees. There is an option to export it as -180 to 180 degrees, and ECHO would like to do so for our current analysis. Would this be possible to implement?

bhazelton commented 4 years ago

I actually think it might be supported already, from a quick read of the code. What isn't currently supported is changing from 180 to 180 to 0 to 360 -- the code just leaves it as is and the user would need to makes sure they asked for angles in the appropriate range for e.g. interpolation calls.