Mercurial > hg > fxanalyse
comparison utils.h @ 169:97112b45b838
Get Sr data logger parameters from configuration file. Code reorganization.
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Fri, 14 Feb 2014 16:58:19 +0100 |
parents | be87c8e78266 |
children | e925664b4b1b |
comparison
equal
deleted
inserted
replaced
168:4de7f2c9f328 | 169:97112b45b838 |
---|---|
13 #endif | 13 #endif |
14 | 14 |
15 /* format floating points numbers accordingly to fmt and asdd thousands separator */ | 15 /* format floating points numbers accordingly to fmt and asdd thousands separator */ |
16 const char * thousands(char *buffer, int size, char *fmt, double val); | 16 const char * thousands(char *buffer, int size, char *fmt, double val); |
17 | 17 |
18 /* MJD functiom used by the Sr programs */ | |
19 static inline double utc2mjd(double utc) | |
20 { | |
21 return 15020.0 + utc / 86400.0; | |
22 } | |
23 | |
24 double Peta(double x); | 18 double Peta(double x); |
25 double Tera(double x); | 19 double Tera(double x); |
26 double Giga(double x); | 20 double Giga(double x); |
27 double Mega(double x); | 21 double Mega(double x); |
28 double kilo(double x); | 22 double kilo(double x); |