41 {
42
45
46
48
49
50 if (argc < 4)
51 ERRMSG(
"Missing or invalid command-line arguments.\n\n"
52 "Usage: hydrostatic <ctl> <atm_in> <atm_hyd> [KEY VALUE ...]\n\n"
53 "Use -h for full help.");
54
55
57
58
61
62
63 read_atm(NULL, argv[2], &ctl, &atm, 0);
64
65
67
68
70
71 return EXIT_SUCCESS;
72}
void write_atm(const char *dirname, const char *filename, const ctl_t *ctl, const atm_t *atm, int profile)
Write atmospheric data to a file.
void read_ctl(int argc, char *argv[], ctl_t *ctl)
Read model control parameters from command-line and configuration input.
void read_atm(const char *dirname, const char *filename, const ctl_t *ctl, atm_t *atm, int profile)
Read atmospheric input data from a file.
void hydrostatic(const ctl_t *ctl, atm_t *atm)
Adjust pressure profile using the hydrostatic equation.
#define ERRMSG(...)
Print an error message with contextual information and terminate the program.
#define USAGE
Print usage information on -h or --help.
Atmospheric profile data.
double hydz
Reference height for hydrostatic pressure profile (-999 to skip) [km].