15.01.2015 Views

processamento di dati lidar per l'analisi dell'evoluzione ... - CO.RI.STA

processamento di dati lidar per l'analisi dell'evoluzione ... - CO.RI.STA

processamento di dati lidar per l'analisi dell'evoluzione ... - CO.RI.STA

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

% formula <strong>per</strong> il <strong>di</strong>gitale<br />

data_1 = dec(1:1024) * (bin_width_1/7.5) *<br />

(20/number_of_shots_1);<br />

% formula <strong>per</strong> l'analogico<br />

data_2 = (dec(1025:end) * data_range_of_the_ADC_2) / (4096 *<br />

number_of_shots_2);<br />

% 3) entrambi i laser acquisiscono i <strong>dati</strong> in modalità analogica<br />

elseif (ad_1==0) & (ad_2==0)<br />

% formula <strong>per</strong> l'analogico<br />

data_1 = (dec(1:1024) * data_range_of_the_ADC_1) / (4096 *<br />

number_of_shots_1);<br />

% formula <strong>per</strong> l'analogico<br />

data_2 = (dec(1025:end) * data_range_of_the_ADC_2) / (4096 *<br />

number_of_shots_2);<br />

% 4) entrambi i laser acquisiscono i <strong>dati</strong> in modalità <strong>di</strong>gitale<br />

elseif (ad_1==1) & (ad_2==1)<br />

% formula <strong>per</strong> il <strong>di</strong>gitale<br />

data_1 = dec(1:1024) * (bin_width_1/7.5) *<br />

(20/number_of_shots_1);<br />

% formula <strong>per</strong> il <strong>di</strong>gitale<br />

data_2 = dec(1025:end) * (bin_width_2/7.5) *<br />

(20/number_of_shots_2);<br />

end<br />

% ------------------------------------------------------------------<br />

quota_max = number_of_data_points_1 * 50*(10^-9)*3*10^8/2;<br />

quota=0:7.5:(quota_max-15);<br />

if grafico==1<br />

if ad_1==1<br />

figure<br />

plot(quota,data_1(1:end-1))<br />

xlabel('quota (m)')<br />

ylabel('fotoni acquisiti(Hz)')<br />

title('Dati acquisiti in modalità DIGITALE')<br />

else<br />

figure<br />

plot(quota,data_1(1:end-1))<br />

xlabel('quota (m)')<br />

ylabel('fotoni acquisiti(Hz)')<br />

title('Dati acquisiti in modalità ANALOGICA')<br />

end<br />

if ad_2==1<br />

figure<br />

plot(quota,data_2(1:end-1))<br />

xlabel('quota (m)')<br />

ylabel('fotoni acquisiti(Hz)')<br />

title('Dati acquisiti in modalità DIGITALE')<br />

else<br />

figure<br />

94

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!