From 625b0a5c20393202f2961fe0b263cf553fb9310a Mon Sep 17 00:00:00 2001 From: Chris Piker Date: Thu, 11 Jul 2024 19:24:42 -0500 Subject: [PATCH] Fixed missing digit in ns1970 to us2000 conversions --- das2/units.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/das2/units.c b/das2/units.c index c919e6e..0215d5e 100644 --- a/das2/units.c +++ b/das2/units.c @@ -1530,7 +1530,7 @@ double _Units_convertFromUS2000( double value, das_units toUnits ) { if(toUnits == UNIT_T2000) return value * 1e-6; if(toUnits == UNIT_MJ1958) return value / ( 86400 * 1e6 ) + 15340; if(toUnits == UNIT_T1970) return value / 1e6 + 946684800; - if(toUnits == UNIT_NS1970) return value * 1e3 + 9.46684e+17; + if(toUnits == UNIT_NS1970) return (value + 9.466848e+14) * 1e3; if(toUnits == UNIT_TT2000) return das_us2K_to_tt2K(value); das_error(DASERR_UNITS,