From f5f993a1510655c353e57cc4271264695b280452 Mon Sep 17 00:00:00 2001 From: Attila Kovacs Date: Sun, 17 Nov 2024 17:10:29 +0100 Subject: [PATCH] make_on_surface() to leave humidity undefined to maintain ABI compatibility with 1.0 --- src/novas.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/novas.c b/src/novas.c index 587e36b8..1a23cd56 100644 --- a/src/novas.c +++ b/src/novas.c @@ -6956,9 +6956,9 @@ int make_observer_in_space(const double *sc_pos, const double *sc_vel, observer * the given parameters. * * Note, that because this is an original NOVAS C routine, it does not have an argument to set - * a humidity value (e.g. for radio refraction). As such the call will set humidity to 0.0. - * To set the humidity, set the output structure's field after calling this funcion. Its unit - * is [%], and so the range is 0.0--100.0. + * a humidity value (e.g. for radio refraction). As such, the humidity value remains undefined + * after this call. To set the humidity, set the output structure's field after calling this + * funcion. Its unit is [%], and so the range is 0.0--100.0. * * @param latitude [deg] Geodetic (ITRS) latitude in degrees; north positive. * @param longitude [deg] Geodetic (ITRS) longitude in degrees; east positive. @@ -6981,7 +6981,9 @@ int make_on_surface(double latitude, double longitude, double height, double tem loc->height = height; loc->temperature = temperature; loc->pressure = pressure; - loc->humidity = 0.0; + + // FIXME starting v2.0 set humidity to 0.0 + //loc->humidity = 0.0; return 0; }