star-meteo

Time varying meteorological data
git clone git://git.meso-star.fr/star-meteo.git
Log | Files | Refs | README | LICENSE

commit fe639bc4740f64a561e308f9e5a30e35c8aec0ec
parent 7e7e4aa31162f7f175973347c9aac39a8907bc59
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu, 14 Aug 2025 17:07:44 +0200

stardis: comment on time conversion

The conversion of a duration in seconds to day_1850 does not take leap
seconds into account.  This approximation is justified by the simplicity
of the conversion, given the marginal approximation it introduces.

As an additional argument, the day_1850 data itself is certainly
calculated without taking this detail into account.

Diffstat:
Msrc/stardis_smeteo.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/stardis_smeteo.c b/src/stardis_smeteo.c @@ -62,7 +62,8 @@ get_meteo_entry_id ASSERT(bcond); /* Define the input time in relation to January 1, 1850, i.e., in terms of the - * number of days that have elapsed since 00:00 on January 1, 1850 */ + * number of days that have elapsed since 00:00 on January 1, 1850. + * Note that this simple conversion ignored leap seconds. */ time_1850 = time/*[s]*/ / (24/*hours*/*3600/*[s]*/); /* Limit to 0, i.e. January 1, 1850, i.e. the initial condition */