APPLYMETHOD to the analysis object %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: APPLYMETHOD to the analysis object Private AO function that applies the given method to the given AOs. This is called by all the simple methods like abs, mean, acos, etc. CALL: as = applymethod(as, ao_invars, method, pl-input, pl-default, info) VERSION: $Id: applymethod.m,v 1.9 2008/09/02 13:12:57 ingo Exp $ HISTORY: 11-06-2008 Hewitson Creation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001 % APPLYMETHOD to the analysis object 0002 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0003 % 0004 % DESCRIPTION: APPLYMETHOD to the analysis object 0005 % Private AO function that applies the given method to 0006 % the given AOs. This is called by all the simple methods like 0007 % abs, mean, acos, etc. 0008 % 0009 % CALL: as = applymethod(as, ao_invars, method, pl-input, pl-default, info) 0010 % 0011 % VERSION: $Id: applymethod.m,v 1.9 2008/09/02 13:12:57 ingo Exp $ 0012 % 0013 % HISTORY: 11-06-2008 Hewitson 0014 % Creation 0015 % 0016 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0017 0018 function applymethod(as, ao_invars, method, pl, dpl, info) 0019 0020 import utils.const.* 0021 0022 for j=1:numel(as) 0023 % Message 0024 utils.helper.msg(msg.PROC1, 'applying %s to %s ', method, as(j).name); 0025 % Apply method to data 0026 applymethod(as(j).data, pl, plist('method', method), dpl); 0027 %combine the input plist and the default plist for the history 0028 plh = combine(pl, dpl); 0029 % append history 0030 as(j).addHistory(info, plh, ao_invars(j), as(j).hist); 0031 % Set new AO name 0032 as(j).setName([method '(' ao_invars{j} ')'], 'internal'); 0033 end 0034 0035 end 0036 0037