/[MITgcm]/MITgcm_contrib/gael/profilesMatlabProcessing/profiles_misc/MITprof_resample.m
ViewVC logotype

Diff of /MITgcm_contrib/gael/profilesMatlabProcessing/profiles_misc/MITprof_resample.m

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.5 by gforget, Sun Oct 11 13:37:09 2015 UTC revision 1.6 by gforget, Thu Jan 28 01:54:59 2016 UTC
# Line 44  elseif strcmp(fldIn.tim,'monloop'); Line 44  elseif strcmp(fldIn.tim,'monloop');
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);

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.22