44 |
rec_fld=[nt 1:nt 1]; |
rec_fld=[nt 1:nt 1]; |
45 |
tmp1=datenum([1992 1 1 0 0 0]); |
tmp1=datenum([1992 1 1 0 0 0]); |
46 |
tmp2=datenum([1992+nt/12 1 1 0 0 0]);; |
tmp2=datenum([1992+nt/12 1 1 0 0 0]);; |
47 |
tim_prof=tmp1+mod(profIn.prof_date-tmp1,tmp2); |
tim_prof=tmp1+mod(profIn.prof_date-tmp1,tmp2-tmp1); |
48 |
|
%round up tim_prof to prevent interpolation in time: |
49 |
|
% tmp3=tim_prof*ones(1,length(tim_fld))-ones(length(tim_prof),1)*tim_fld; |
50 |
|
% tmp4=sum(tmp3>0,2); |
51 |
|
% tim_prof=tim_fld(tmp4)'; |
52 |
elseif strcmp(fldIn.tim,'const')|strcmp(fldIn.tim,'std'); |
elseif strcmp(fldIn.tim,'const')|strcmp(fldIn.tim,'std'); |
53 |
tim_fld=[1 2]; rec_fld=[1 1]; |
tim_fld=[1 2]; rec_fld=[1 1]; |
54 |
tim_prof=1.5*ones(profIn.np,1); |
tim_prof=1.5*ones(profIn.np,1); |