forked from gmcgarragh/seviri_util
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmisc_util.h
36 lines (29 loc) · 1.02 KB
/
misc_util.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*******************************************************************************
*
* Copyright (C) 2014-2018 Greg McGarragh <mcgarragh@atm.ox.ac.uk>
*
* This source code is licensed under the GNU General Public License (GPL),
* Version 3. See the file COPYING for more details.
*
******************************************************************************/
#ifndef MISC_UTIL_H
#define MISC_UTIL_H
#include "external.h"
#ifdef __cplusplus
extern "C" {
#endif
int su_is_little_endian(void);
double su_rint(double x);
void su_init_array_uc(uchar *a, uint n, uchar x);
void su_init_array_us(ushort *a, uint n, ushort x);
void su_init_array_f(float *a, uint n, float x);
void su_init_array_d(double *a, uint n, double x);
double su_get_ar_val(double ac, double bc, double g0);
double su_get_br_val(double bc, double gs);
void su_jul_to_cal_date(long jul, int *y, int *m, int *d);
long su_cal_to_jul_day(int y, int m, int d);
double su_solar_distance_factor2(double jday);
#ifdef __cplusplus
}
#endif
#endif /* MISC_UTIL_H */