Earthquake/new_version/loadDataEvent.m

38 lines
961 B
Matlab
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

%% By L_DelOff
% Функция подготовки массива с данными (длинная последовательность
% кадров, по всем спутникам за все года)
function data=loadDataEvent(month)
global param
if 1%param.loadDataEvent.debug
end
data=[];
%% Формирую список интересующих дат
[years,months]=formDateArray(month);
%% Прохожусь по каждому дню
for yyyy=years
for mm=months
if mm==[1 3 5 7 8 10 12]
days=1:31;
end
if mm==[4 6 9 11]
days=1:30;
end
if mm==2
if mod(yyyy,4)
days=1:29;
else
days=1:28;
end
end
for dd=days
%% Проверка наличия в каталоге
status=checkCatalog(yyyy,mm,dd);
%% ---------------------- %%
end
end
end