function fixed_yearbase = fix_yearbase(cfg)
% called by @bb/rad.m
%take cfg it apart into variables
% first look at the variables that already exist

fixed_yearbase = cfg.yearbase;
% now override if necessary
if (cfg.yearbase == 0)
   error('must set yearbase')
end
if (cfg.yearbase < 70)  %they used a 2-digit year
   fixed_yearbase = cfg.yearbase + 1900;
   warning('you should use a 4-digit yearbase for clarity')
end
