35 static atm_t atm_i, atm_apr;
37 static obs_t obs_i, obs_meas;
44 ERRMSG(
"Give parameters: <ctl> <dirlist>");
57 if (!(dirlist = fopen(argv[2],
"r")))
58 ERRMSG(
"Cannot open directory list!");
61 while (fscanf(dirlist,
"%4999s", ret.
dir) != EOF) {
64 LOG(1,
"\nRetrieve in directory %s...\n", ret.
dir);
82 LOG(1,
"\nRetrieval done...");
void read_ctl(int argc, char *argv[], ctl_t *ctl)
Read model control parameters from command-line and configuration input.
void optimal_estimation(ret_t *ret, ctl_t *ctl, tbl_t *tbl, obs_t *obs_meas, obs_t *obs_i, atm_t *atm_apr, atm_t *atm_i, double *chisq)
Perform optimal estimation retrieval using Levenberg–Marquardt minimization.
void read_atm(const char *dirname, const char *filename, const ctl_t *ctl, atm_t *atm)
Read atmospheric input data from a file.
void read_obs(const char *dirname, const char *filename, const ctl_t *ctl, obs_t *obs)
Read observation data from an input file.
void read_ret(int argc, char *argv[], const ctl_t *ctl, ret_t *ret)
Read retrieval configuration and error parameters.
tbl_t * read_tbl(const ctl_t *ctl)
Read all emissivity lookup tables for all gases and frequencies.
JURASSIC library declarations.
#define ERRMSG(...)
Print an error message with contextual information and terminate the program.
#define TIMER(name, mode)
Start or stop a named timer.
#define LOG(level,...)
Print a log message with a specified logging level.
int main(int argc, char *argv[])
Atmospheric profile data.
Observation geometry and radiance data.
Retrieval control parameters.
char dir[LEN]
Working directory.
Emissivity look-up tables.