suncalc icon indicating copy to clipboard operation
suncalc copied to clipboard

Height Units?

Open Xeonzinc opened this issue 5 years ago • 2 comments

Hi,

I can see the height parameter has been added as an optional input, but it doesn't seem to say anywhere what units this should be input in? Meters? Kilometers? AU?

Xeonzinc avatar May 16 '21 11:05 Xeonzinc

@Xeonzinc Looks like it's meters. https://github.com/mourner/suncalc/blob/031c4ad3f6f330a02863ec0f43b820115294ccca/suncalc.js#L140

ay8s avatar May 17 '21 21:05 ay8s

Thanks, good spot!

Xeonzinc avatar May 18 '21 09:05 Xeonzinc