function [Rg, Ng,ele] = sfc_finder(param)
beamwidth = 1.9; 
bin_spacing = 150;
phi=param(1).az - 180;

sinel = sin(deg2rad(param(1).tilt)).*sin(deg2rad(param(1).pitch)) - cos(deg2rad(param(1).tilt)).*cos(deg2rad(param(1).pitch)).*cos(deg2rad(phi));
ele=asin(sinel);
Rg = - param(1).radar_alt./ sinel;
Ng = Rg*deg2rad(beamwidth)./(bin_spacing*tan(ele));
Ng=round(abs(Ng)/2);