PLplot: deltaT_test.c Source File

PLplot 5.15.0

deltaT_test.c
Go to the documentation of this file.
1 #include "deltaT.h"
2 #include "qsastime.h"
3 #include "dsplint.h"
4 #include <stdio.h>
5 int main()
6 {
7 int iyear;
8 // double year, delta, ddelta, d2delta;
9 double year, delta;
10 for ( iyear = -1000; iyear <= 2000; ++iyear )
11 {
12 year = (double) iyear;
13 // dsplint(xspline, yspline, y2spline, number_of_entries_in_spline_tables, year, &delta, &ddelta, &d2delta);
14 dsplint( xspline, yspline, y2spline, number_of_entries_in_spline_tables, year, &delta );
15 // printf("%9.0f.%9.0f.%15.6E%15.6E\n", year, delta, ddelta, d2delta);
16 printf( "%9.0f.%9.0f.\n", year, delta );
17 }
18 return 0;
19 }
20
main
int main()
Definition: deltaT_test.c:5
qsastime.h
number_of_entries_in_spline_tables
const int number_of_entries_in_spline_tables
Definition: deltaT.h:26
xspline
const double xspline[58]
Definition: deltaT.h:28
y2spline
const double y2spline[58]
Definition: deltaT.h:148
dsplint.h
deltaT.h
dsplint
int dsplint(double *xa, double *ya, double *y2a, int n, double x, double *y)
Definition: dsplint.c:33
yspline
const double yspline[58]
Definition: deltaT.h:88