%% lshsf.m is a small function file that produces a weighting function that is
%% 1 below L=2.5 and 0 above L=4 and uses the function from Gallagher 2000 for
%% the region in between.

function wt=lshsf(lsh);

lsh0=3.25;
dlsh=0.75;
wt=0.5-0.5*tanh(3.4534*((lsh)-lsh0)/dlsh);