Skip to content

Criteria 1 limit in BrightSun2020CSDs.m #3

@cwhanse

Description

@cwhanse

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')

c1_lim_no_flip

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')

c1_lim_flip_z

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions