function [profIn]=idma_resample(profIn); % % IDMA_RESAMPLE subsamples ECCO temperature fields to observed locations and times % % Example: % [p]=idma_float_plot('4900828'); % grid_load; % p=idma_resample(p); p = genpath('gcmfaces/'); addpath(p);%TBE p = genpath('MITprof/'); addpath(p);%TBE p = genpath('matlab/'); addpath(p);%TBE fil='release1/nctiles_climatology/THETA'; fld=read_nctiles([fil '/THETA'],'THETA'); THETA=mean(fld,4); THETAfil=fil; fldIn.tim='const'; fldIn.fil=THETAfil; fldIn.name='prof_THETAconst'; fldIn.fld=THETA; profIn=MITprof_resample(profIn,fldIn); fldIn.tim='monclim'; fldIn.fil=THETAfil; fldIn.name='prof_THETAclim'; fldIn.fld=[]; profIn=MITprof_resample(profIn,fldIn); if isdir('release1/nctiles/THETA/'); fldIn.tim='monser'; fldIn.fil='release1/nctiles/THETA'; fldIn.name='prof_THETA'; fldIn.fld=[]; profIn=MITprof_resample(profIn,fldIn); end;