Calculate PSC temperatures.
More...
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
Calculate PSC temperatures.
Definition in file tnat.c.
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 27 of file tnat.c.
29 {
30
31
32 if (argc < 3)
33 ERRMSG(
"Give parameters: <p> <h2o> <hno3>");
34
35
36 double p = atof(argv[1]);
37 double h2o = atof(argv[2]);
38 double hno3 = atof(argv[3]);
39
40
41 printf(" p= %g hPa\n", p);
42 printf(" q_H2O= %g ppv\n", h2o);
43 printf("q_HNO3= %g ppv\n", hno3);
44 printf(
" T_dew= %g K\n",
TDEW(p, h2o));
45 printf(
" T_ice= %g K\n",
TICE(p, h2o));
47
48 return EXIT_SUCCESS;
49}
double nat_temperature(const double p, const double h2o, const double hno3)
Calculates the nitric acid trihydrate (NAT) temperature.
#define ERRMSG(...)
Print an error message with contextual information and terminate the program.
#define TICE(p, h2o)
Calculate frost point temperature (WMO, 2018).
#define TDEW(p, h2o)
Calculate dew point temperature.