


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.8 2008/08/08 12:29:16 hewitson 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.8 2008/08/08 12:29:16 hewitson 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 % append history 0028 as(j).addHistory(info, pl, ao_invars(j), as(j).hist); 0029 % Set new AO name 0030 as(j).setName([method '(' ao_invars{j} ')'], 'internal'); 0031 end 0032 0033 end 0034 0035