AIRS Code Collection
src
sza.c
Go to the documentation of this file.
1
/*
2
This file is part of the AIRS Code Collection.
3
4
the AIRS Code Collections is free software: you can redistribute it
5
and/or modify it under the terms of the GNU General Public License
6
as published by the Free Software Foundation, either version 3 of
7
the License, or (at your option) any later version.
8
9
The AIRS Code Collection is distributed in the hope that it will be
10
useful, but WITHOUT ANY WARRANTY; without even the implied warranty
11
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
General Public License for more details.
13
14
You should have received a copy of the GNU General Public License
15
along with the AIRS Code Collection. If not, see
16
<http://www.gnu.org/licenses/>.
17
18
Copyright (C) 2019-2025 Forschungszentrum Juelich GmbH
19
*/
20
26
#include "
libairs.h
"
27
28
int
main
(
29
int
argc,
30
char
*argv[]) {
31
32
/* Check arguments... */
33
if
(argc != 4)
34
ERRMSG(
"Give parameters: <jsec> <lon> <lat>"
);
35
36
/* Read arguments... */
37
const
double
jsec = atof(argv[1]);
38
const
double
lon = atof(argv[2]);
39
const
double
lat = atof(argv[3]);
40
41
/* Compute solar zenith angle... */
42
printf(
"%g\n"
, RAD2DEG(acos(cos_sza(jsec, lon, lat))));
43
44
return
EXIT_SUCCESS;
45
}
libairs.h
AIRS Code Collection library declarations.
main
int main(int argc, char *argv[])
Definition:
sza.c:28
Generated by
1.9.4