forked from yqiuu/sector
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mag_calc_cext.h
49 lines (40 loc) · 1.16 KB
/
mag_calc_cext.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
37
38
39
40
41
42
43
44
45
46
47
48
49
int **g_firstProgenitor;
int **g_nextProgenitor;
float **g_metals;
float **g_sfr;
struct props {
short index;
float metals;
float sfr;
};
struct prop_set {
struct props *nodes;
int nNode;
};
struct prop_set *read_properties_by_progenitors(int **firstProgenitor, int **nextProgenitor,
float **galMetals, float **galSFR,
int tSnap, int *indices, int nGal);
struct sed_params {
double *Z;
int nZ;
int minZ;
int maxZ;
double *waves;
int nWaves;
double *age;
int nAge;
double *data;
};
struct dust_params {
double tauUV_ISM;
double nISM;
double tauUV_BC;
double nBC;
double tBC;
};
float *composite_spectra_cext(struct sed_params *rawSpectra,
struct prop_set *galProps, int nGal,
double z, double *ageList, int nAgeList,
double *filters, double *logWaves, int nFlux, int nObs,
double *absorption, struct dust_params *dustArgs,
short outType, short nThread);