The calculation of c1_lim appears different than described in the JRSE paper.
|
z = (20:0.01:90)'; |
|
% produce a linearly spaced correction factor as proposed by Larraneta |
|
% 2017. Note that they used three fixed bins whereas we smooth this |
|
% through interpolation |
|
|
|
c1_lim = flip([linspace(BrightSunCriteria.ghi_c1_big_zenith,BrightSunCriteria.ghi_c1_mean_diff,find(z==zenith_turn_around))';... |
|
linspace(BrightSunCriteria.ghi_c1_mean_diff,BrightSunCriteria.ghi_c1_small_zenith,length(z)-find(z==zenith_turn_around))']); |
This calculation produces c1_lim that has a break at zenith=80, rather than at zenith_turn_around = 30 as described in Table 3 of the paper.
>> plot(z, c1_lim)
>> xlabel('z')
>> ylabel('c1\_lim')

Should there be a flipud(z) in the function somewhere? Flipping z produces the right picture:
>> plot(flipud(z), c1_lim)
>> xlabel('z')
>> ylabel('c1\_lim')

The calculation of
c1_limappears different than described in the JRSE paper.csd-library/models/BrightSun2020CSDs.m
Lines 568 to 574 in f2d81b6
This calculation produces
c1_limthat has a break at zenith=80, rather than atzenith_turn_around= 30 as described in Table 3 of the paper.Should there be a
flipud(z)in the function somewhere? Flipping z produces the right picture: