33 ERRMSG(
"Give parameters: <p> <h2o> <hno3>");
36 double p = atof(argv[1]);
37 double h2o = atof(argv[2]);
38 double hno3 = atof(argv[3]);
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));
double nat_temperature(const double p, const double h2o, const double hno3)
Calculates the nitric acid trihydrate (NAT) temperature.
MPTRAC library declarations.
#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.
int main(int argc, char *argv[])