Go to the documentation of this file.
29 char *atm_prm_root[] = {
"Lr_",
"tg_sol_",
"tg_sen_",
"t_sol_",
"t_sen_",
31 int iprm, ibnd, nchr, sptr;
40 if ((sdr_info->ham_side = (
unsigned char *)
41 malloc(in_rec->nscan * sizeof (
unsigned char))) ==
NULL) {
42 printf(
"%s, %d: Error, failed to allocate ham_side storage\n",
53 if (ctl->l2_use == 1) {
60 nchr = sprintf((parm_list + sptr),
"vLt_%d:",
61 *(in_rec->lam_band + ibnd));
64 if (ctl->rhos_use == 1) {
65 for (iprm = 0; iprm < 7; iprm++) {
67 nchr = sprintf((parm_list + sptr),
"%s%d:",
68 *(atm_prm_root + iprm), *(in_rec->lam_band + ibnd));
73 *(parm_list + sptr - 1) = 0;
75 printf(
"%s: initializing input from L2 file: %s\n", __FILE__,
77 if (
openL2(ctl->l2_file, parm_list, &in_rec->l2_str) != 0) {
78 printf(
"%s, %d: Failure to open L2 TOA dataset: %s\n", __FILE__,
79 __LINE__, ctl->l2_file);
83 printf(
"%s, %d: Dummy L2 data initialization (none currently)\n",
int32_t openL2(const char *fname, char *plist, l2_prod *l2_str)
int rd_sim_init(ctl_struc *ctl, sdr_info_struc *sdr_info, in_rec_struc *in_rec)
int rd_geo_init(ctl_struc *ctl, sdr_info_struc *sdr_info, in_rec_struc *in_rec)