![]() |
JURASSIC
|
JURASSIC forward model. More...
Go to the source code of this file.
Functions | |
| void | call_formod (ctl_t *ctl, const tbl_t *tbl, const char *wrkdir, const char *obsfile, const char *atmfile, const char *radfile, char task_mode, const char *obsref, int formod_scalar, int batch_size) |
| Perform forward model calculations in a single directory. More... | |
| char | parse_task_mode (const char *task) |
| Parse the formod task selector and map aliases to an internal task code. More... | |
| int | parse_formod_scalar (int argc, char *argv[]) |
| Parse the formod execution selector. More... | |
| int | parse_formod_batch_size (int argc, char *argv[]) |
| Parse the benchmark batch size. More... | |
| void | exec_formod_single (const ctl_t *ctl, const tbl_t *tbl, atm_t *atm, obs_t *obs, los_t *los_scratch, obs_t *obs_scratch, int formod_scalar) |
| Execute a single forward model call via the default batch path or the scalar debug path. More... | |
| void | exec_formod_batch_setup (const ctl_t *ctl, const atm_t *atm, const obs_t *obs, int batch_size, atm_t *atm_batch, obs_t *obs_batch) |
| Build a batch of randomly perturbed copies of the input atmosphere. More... | |
| void | compute_rel_errors (const ctl_t *ctl, const obs_t *obs_test, const obs_t *obs_ref, double *mre, double *sdre, double *minre, double *maxre) |
| Calculate relative errors. More... | |
| void | compute_abs_errors (const ctl_t *ctl, const obs_t *obs_test, const obs_t *obs_ref, double *meanae, double *sdae, double *minae, double *maxae) |
| Calculate signed absolute errors in the observation output units. More... | |
| void | exec_formod_profiles (ctl_t *ctl, const tbl_t *tbl, const char *wrkdir, const char *radfile, const atm_t *atm, obs_t *obs, atm_t *atm_scratch, obs_t *obs_single, los_t *los_scratch, obs_t *obs_scratch, int formod_scalar) |
| Process observation data profile by profile using time-based matching. More... | |
| void | eval_formod_results (const ctl_t *ctl, const char *wrkdir, const char *obsref, const obs_t *obs, obs_t *obs_ref) |
| Print relative-error diagnostics against reference observations. More... | |
| void | exec_formod_contributions (ctl_t *ctl, const tbl_t *tbl, const char *wrkdir, const char *radfile, const atm_t *atm, obs_t *obs, atm_t *atm_scratch, los_t *los_scratch, obs_t *obs_scratch, int formod_scalar) |
| Write emitter and extinction contribution outputs. More... | |
| void | exec_formod_benchmark (const ctl_t *ctl, const tbl_t *tbl, const atm_t *atm, obs_t *obs, atm_t *atm_scratch, los_t *los_scratch, obs_t *obs_scratch, int formod_scalar, int batch_size) |
| Run the built-in runtime benchmark. More... | |
| void | exec_formod_stepsize (ctl_t *ctl, const tbl_t *tbl, atm_t *atm, obs_t *obs, obs_t *obs_ref, los_t *los_scratch, obs_t *obs_scratch, int formod_scalar) |
| Analyze sensitivity to ray-tracing step sizes. More... | |
| void | usage (void) |
| Print command-line help. More... | |
| int | main (int argc, char *argv[]) |
JURASSIC forward model.
Definition in file formod.c.
| void call_formod | ( | ctl_t * | ctl, |
| const tbl_t * | tbl, | ||
| const char * | wrkdir, | ||
| const char * | obsfile, | ||
| const char * | atmfile, | ||
| const char * | radfile, | ||
| char | task_mode, | ||
| const char * | obsref, | ||
| int | formod_scalar, | ||
| int | batch_size | ||
| ) |
Perform forward model calculations in a single directory.
Definition at line 777 of file formod.c.

| char parse_task_mode | ( | const char * | task | ) |
Parse the formod task selector and map aliases to an internal task code.
Definition at line 345 of file formod.c.
| int parse_formod_scalar | ( | int | argc, |
| char * | argv[] | ||
| ) |
Parse the formod execution selector.
Definition at line 368 of file formod.c.

| int parse_formod_batch_size | ( | int | argc, |
| char * | argv[] | ||
| ) |
| void exec_formod_single | ( | const ctl_t * | ctl, |
| const tbl_t * | tbl, | ||
| atm_t * | atm, | ||
| obs_t * | obs, | ||
| los_t * | los_scratch, | ||
| obs_t * | obs_scratch, | ||
| int | formod_scalar | ||
| ) |
Execute a single forward model call via the default batch path or the scalar debug path.
Definition at line 401 of file formod.c.

| void exec_formod_batch_setup | ( | const ctl_t * | ctl, |
| const atm_t * | atm, | ||
| const obs_t * | obs, | ||
| int | batch_size, | ||
| atm_t * | atm_batch, | ||
| obs_t * | obs_batch | ||
| ) |
Build a batch of randomly perturbed copies of the input atmosphere.
Definition at line 567 of file formod.c.
| void compute_rel_errors | ( | const ctl_t * | ctl, |
| const obs_t * | obs_test, | ||
| const obs_t * | obs_ref, | ||
| double * | mre, | ||
| double * | sdre, | ||
| double * | minre, | ||
| double * | maxre | ||
| ) |
Calculate relative errors.
Definition at line 847 of file formod.c.
| void compute_abs_errors | ( | const ctl_t * | ctl, |
| const obs_t * | obs_test, | ||
| const obs_t * | obs_ref, | ||
| double * | meanae, | ||
| double * | sdae, | ||
| double * | minae, | ||
| double * | maxae | ||
| ) |
Calculate signed absolute errors in the observation output units.
Definition at line 898 of file formod.c.
| void exec_formod_profiles | ( | ctl_t * | ctl, |
| const tbl_t * | tbl, | ||
| const char * | wrkdir, | ||
| const char * | radfile, | ||
| const atm_t * | atm, | ||
| obs_t * | obs, | ||
| atm_t * | atm_scratch, | ||
| obs_t * | obs_single, | ||
| los_t * | los_scratch, | ||
| obs_t * | obs_scratch, | ||
| int | formod_scalar | ||
| ) |
Process observation data profile by profile using time-based matching.
Definition at line 425 of file formod.c.

| void eval_formod_results | ( | const ctl_t * | ctl, |
| const char * | wrkdir, | ||
| const char * | obsref, | ||
| const obs_t * | obs, | ||
| obs_t * | obs_ref | ||
| ) |
Print relative-error diagnostics against reference observations.
Definition at line 484 of file formod.c.

| void exec_formod_contributions | ( | ctl_t * | ctl, |
| const tbl_t * | tbl, | ||
| const char * | wrkdir, | ||
| const char * | radfile, | ||
| const atm_t * | atm, | ||
| obs_t * | obs, | ||
| atm_t * | atm_scratch, | ||
| los_t * | los_scratch, | ||
| obs_t * | obs_scratch, | ||
| int | formod_scalar | ||
| ) |
Write emitter and extinction contribution outputs.
Definition at line 512 of file formod.c.

| void exec_formod_benchmark | ( | const ctl_t * | ctl, |
| const tbl_t * | tbl, | ||
| const atm_t * | atm, | ||
| obs_t * | obs, | ||
| atm_t * | atm_scratch, | ||
| los_t * | los_scratch, | ||
| obs_t * | obs_scratch, | ||
| int | formod_scalar, | ||
| int | batch_size | ||
| ) |
Run the built-in runtime benchmark.
Definition at line 622 of file formod.c.

| void exec_formod_stepsize | ( | ctl_t * | ctl, |
| const tbl_t * | tbl, | ||
| atm_t * | atm, | ||
| obs_t * | obs, | ||
| obs_t * | obs_ref, | ||
| los_t * | los_scratch, | ||
| obs_t * | obs_scratch, | ||
| int | formod_scalar | ||
| ) |
Analyze sensitivity to ray-tracing step sizes.
Definition at line 735 of file formod.c.

| static void usage | ( | void | ) |
Print command-line help.
Definition at line 273 of file formod.c.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 168 of file formod.c.
