function [quadrant_inb, quadrant_outb]=which_quadrant(input_data)

file_info=dir([['C:\Documents and Settings\lorsolo\My Documents\research\HRD research\Gamache_soft\wfiles\',input_data.hurricane,'\',input_data.jour(1:2)],'\*leg*']) ;
fichier=['C:\Documents and Settings\lorsolo\My Documents\research\HRD research\Gamache_soft\wfiles\',input_data.hurricane,'\',input_data.jour(1:2),'\',file_info(input_data.file_number).name];
file_info(input_data.file_number).name
leg_data=textread(fichier,'%s','bufsize', 8191);

azi_inb=str2num(cell2mat(leg_data(17)))
uc=str2num(cell2mat(leg_data(28)))
vc=str2num(cell2mat(leg_data(29)))


azi_outb=str2num(cell2mat(leg_data(22)))



[tc_motion]=wind_direction_deg(uc,vc, 1,1);
tc_motion=tc_motion+180
if tc_motion >=360
    tc_motion=tc_motion-360
end



A = tc_motion;
B= 90 + tc_motion;
if B >= 360
    B = B-360;
    
end

C = 180 + tc_motion;
if C >= 360
    C = C-360;
    
end

D = 270 + tc_motion;
if D >= 360
    D = D-360;
    
end
full_azi=[azi_inb azi_outb];
for i=1:2
    azi=full_azi(i);
    
    if A > B
        if azi > A | azi <= B
            quadrant='Right Front quadrant';
        end
    elseif A < B
        if azi > A & azi <= B
            quadrant='Right Front quadrant';
        end
    end
    
    
    if B > C
        
        if azi > B | azi<= C
            quadrant='Right Rear quadrant';
        end
    elseif B < C
        if azi > B & azi<= C
            quadrant='Right Rear quadrant';
        end
    end
    
    if C > D
        if azi > C | azi<= D
            quadrant='Left Rear quadrant';
        end
    elseif C < D
        if azi > C & azi<= D
            quadrant='Left Rear quadrant';
        end
    end
    
    if D > A
        if azi > D | azi<= A
            quadrant='Left Front quadrant';
        end
    elseif D < A
        if azi > D & azi<= A
            quadrant='Left Front quadrant';
        end
    end
    
    if i==1
        quadrant_inb=quadrant;
    else
        quadrant_outb=quadrant;
    end
end