FACT++  1.0
static void t_ref ( int *  status)
static

Definition at line 1889 of file palTest.c.

References palAtmdsp(), palDcs2c(), palRefco(), palRefcoq(), palRefro(), palRefv(), palRefz(), and vvd().

Referenced by main().

1889  {
1890  double ref, refa, refb, refa2, refb2, vu[3], vr[3], zr;
1891 
1892  palRefro( 1.4, 3456.7, 280, 678.9, 0.9, 0.55,
1893  -0.3, 0.006, 1e-9, &ref );
1894  vvd( ref, 0.00106715763018568, 1e-12, "palRefro",
1895  "o", status );
1896 
1897  palRefro( 1.4, 3456.7, 280, 678.9, 0.9, 1000,
1898  -0.3, 0.006, 1e-9, &ref );
1899  vvd( ref, 0.001296416185295403, 1e-12, "palRefro",
1900  "r", status );
1901 
1902  palRefcoq( 275.9, 709.3, 0.9, 101, &refa, &refb );
1903  vvd( refa, 2.324736903790639e-4, 1e-12, "palRefcoq",
1904  "a/r", status );
1905  vvd( refb, -2.442884551059e-7, 1e-15, "palRefcoq",
1906  "b/r", status );
1907 
1908  palRefco( 2111.1, 275.9, 709.3, 0.9, 101,
1909  -1.03, 0.0067, 1e-12, &refa, &refb );
1910  vvd( refa, 2.324673985217244e-4, 1e-12, "palRefco",
1911  "a/r", status );
1912  vvd( refb, -2.265040682496e-7, 1e-15, "palRefco",
1913  "b/r", status );
1914 
1915  palRefcoq( 275.9, 709.3, 0.9, 0.77, &refa, &refb );
1916  vvd( refa, 2.007406521596588e-4, 1e-12, "palRefcoq",
1917  "a", status );
1918  vvd( refb, -2.264210092590e-7, 1e-15, "palRefcoq",
1919  "b", status );
1920 
1921  palRefco( 2111.1, 275.9, 709.3, 0.9, 0.77,
1922  -1.03, 0.0067, 1e-12, &refa, &refb );
1923  vvd( refa, 2.007202720084551e-4, 1e-12, "palRefco",
1924  "a", status );
1925  vvd( refb, -2.223037748876e-7, 1e-15, "palRefco",
1926  "b", status );
1927 
1928  palAtmdsp ( 275.9, 709.3, 0.9, 0.77,
1929  refa, refb, 0.5, &refa2, &refb2 );
1930  vvd ( refa2, 2.034523658888048e-4, 1e-12, "palAtmdsp",
1931  "a", status );
1932  vvd ( refb2, -2.250855362179e-7, 1e-15, "palAtmdsp",
1933  "b", status );
1934 
1935  palDcs2c ( 0.345, 0.456, vu );
1936  palRefv ( vu, refa, refb, vr );
1937  vvd ( vr[0], 0.8447487047790478, 1e-12, "palRefv",
1938  "x1", status );
1939  vvd ( vr[1], 0.3035794890562339, 1e-12, "palRefv",
1940  "y1", status );
1941  vvd ( vr[2], 0.4407256738589851, 1e-12, "palRefv",
1942  "z1", status );
1943 
1944  palDcs2c ( 3.7, 0.03, vu );
1945  palRefv ( vu, refa, refb, vr );
1946  vvd ( vr[0], -0.8476187691681673, 1e-12, "palRefv",
1947  "x2", status );
1948  vvd ( vr[1], -0.5295354802804889, 1e-12, "palRefv",
1949  "y2", status );
1950  vvd ( vr[2], 0.0322914582168426, 1e-12, "palRefv",
1951  "z2", status );
1952 
1953  palRefz ( 0.567, refa, refb, &zr );
1954  vvd ( zr, 0.566872285910534, 1e-12, "palRefz",
1955  "hi el", status );
1956 
1957  palRefz ( 1.55, refa, refb, &zr );
1958  vvd ( zr, 1.545697350690958, 1e-12, "palRefz",
1959  "lo el", status );
1960 
1961 
1962 
1963 }
void palAtmdsp(double tdk, double pmb, double rh, double wl1, double a1, double b1, double wl2, double *a2, double *b2)
Definition: palAtmdsp.c:129
void palRefro(double zobs, double hm, double tdk, double pmb, double rh, double wl, double phi, double tlr, double eps, double *ref)
Definition: palRefro.c:185
void palRefco(double hm, double tdk, double pmb, double rh, double wl, double phi, double tlr, double eps, double *refa, double *refb)
Definition: palRefco.c:102
void palRefz(double zu, double refa, double refb, double *zr)
Definition: palRefz.c:136
void palDcs2c(double a, double b, double v[3])
Definition: palOne2One.c:368
static void vvd(double val, double valok, double dval, const char *func, const char *test, int *status)
Definition: palTest.c:99
void palRefcoq(double tdk, double pmb, double rh, double wl, double *refa, double *refb)
Definition: palOne2One.c:1477
void palRefv(double vu[3], double refa, double refb, double vr[3])
Definition: palRefv.c:129

+ Here is the call graph for this function:

+ Here is the caller graph for this function: