Beamforming routine - 180 degree uncertainty?

Hi,

I am doing some beam forming using a source in the atmosphere. The routines all work fine, but the plots that I get out all have a 180 degree difference between the backazimuth of maximum energy incidence as compared to what I expect knowing the source and being able to see the arrival pattern.

I am just wondering if somewhere in the code, there’s an implicit assumption that the source must be coming from below the stations? I realise this probably isn’t a bug so can fix it on my own, but just want to check before I start messing around as it was not super obvious to me.

Thanks