bifacial_radiance icon indicating copy to clipboard operation
bifacial_radiance copied to clipboard

Windows and Linux versions of gencumulativesky differ

Open nildan opened this issue 5 years ago • 1 comments

Hi! I have run gencumulativesky on both Windows and Linux using the same epw file, and discovered that the outputs are not exactly the same:

Windows:

There were 4119 sun up hours in this climate file Total Ibh/Lbh: 0.000000 { This .cal file was generated automatically by GenCumulativeSky } { gencumulativesky.exe -E test.epw } skybright=row0+row1+row2+row3+row4+row5+row6+row7; row0=if(and(alt-0, 12-alt),select(floor(0.5+az/12.00)+1, 158588.944112, 159634.726253, 162704.519564, 168933.995070, 180471.433600, 200393.493594, 226963.384129, 246700.805922, 261579.696001, 270796.698232, 277838.183194, 284951.542565, 289477.382723, 287174.856971, 284259.020323, 281899.023751, 281020.422634, 280971.772132, 279149.199260, 271939.652967, 265866.844493, 259623.437020, 250718.766234, 235595.403008, 215614.886086, 192309.086129, 175903.538770, 166523.381054, 161514.371344, 159152.936777, 158588.944112),0); ...

Linux:

There were 4219 sun up hours in this climate file Total Ibh/Lbh: 0.000000 { This .cal file was generated automatically by GenCumulativeSky }{ ./gencumulativesky -E test.epw } skybright=row0+row1+row2+row3+row4+row5+row6+row7; row0=if(and(alt-0, 12-alt),select(floor(0.5+az/12.00)+1, 160032.192588, 161089.040250, 164175.640100, 170427.864151, 181994.504203, 201953.001449, 228566.439455, 248353.902512, 263289.063395, 272567.627846, 279669.101289, 286836.975507, 291361.173702, 289043.060253, 286104.660988, 283727.968477, 282844.983774, 282801.558461, 280994.272746, 273800.033137, 267640.848918, 261307.450226, 252331.790551, 237153.103967, 217130.015474, 193792.196797, 177363.898269, 167969.230961, 162952.997118, 160590.867580, 160032.192588),0); ...

Seems like sun up hours are calculated differently, and all results are slightly higher on Linux. Is this a known issue?

nildan avatar Feb 25 '20 12:02 nildan

Hi. Thanks for the comment, this will require some digging into.

cdeline avatar May 21 '20 21:05 cdeline