glog.fatal("==========> beg create the xml file.") doy_xml = os.path.join(xml_dir, "gns_pod_%4s%03d.xml" % (args.year, int(args.idoy))) create_xml_py = os.path.join(scp_dir, "gns_xml_create_xml.py") update_xml_py = os.path.join(scp_dir, "gns_xml_update_editres.py") update_ambfix_xml_py = os.path.join(scp_dir, "gns_xml_update_ambfix.py") os.system("chmod +x " + create_xml_py) os.system("chmod +x " + update_xml_py) os.system("chmod +x " + update_ambfix_xml_py) glog.fatal("==========> creat xml.") tool.run_py_cmd(python_version=python_version, python_name=create_xml_py, log_dir=log_dir, log_name="create_xml.cmd_log", year=year, idoy=idoy, ilen=1, idst=mod_xml, odst=doy_xml) # first, check out the src and bin, if not bin, we cmake and make it # second, preedit glog.fatal("==========> beg preedit.") tool.run_grt_cmd(app_dir=bin_dir, app_name="great_preedit", xml_path=doy_xml, log_dir=log_dir, log_name="great_preedit.cmd_log") tool.run_cp_cmd(prj_dir, ics, prd_dir, "_pre") tool.run_cp_cmd(prj_dir, pre_app_log, log_dir, "_pre")
tool.run_cp_cmd(prj_dir, orb, prd_dir, "_lsq1") tool.run_cp_cmd(prj_dir, rcv, prd_dir, "_lsq1") tool.run_cp_cmd(prj_dir, car, prd_dir, "_lsq1") tool.run_cp_cmd(prj_dir, cas, prd_dir, "_lsq1") tool.run_cp_cmd(prj_dir, dif, prd_dir, "_lsq1") tool.run_cp_cmd(prj_dir, lsq_app_log, log_dir, "_lsq1") tool.run_cp_cmd(prj_dir, int_app_log, log_dir, "_lsq1") tool.run_cp_cmd(prj_dir, dif_app_log, log_dir, "_lsq1") # update editres glog.fatal("==========> beg editres.") tool.run_py_cmd(python_version=python_version, python_name=update_xml_py, log_dir=log_dir, log_name="gns_xml_update_xml_lsq1.cmd_log", idst=doy_xml, freq="LC", short=600, jump=80, bad=80) tool.run_grt_cmd(app_dir=bin_dir, app_name="great_editres", xml_path=doy_xml, log_dir=log_dir, log_name="great_editres_lsq1.cmd_log") tool.run_cp_cmd(prj_dir, pos_app_log, log_dir, "_lsq1") # ========================================== 2nd glog.fatal("==========> beg podlsq 2nd.") tool.run_grt_cmd(app_dir=bin_dir, app_name="great_podlsq",
year = '%04s' % args.year idoy = '%03s' % args.idoy yeardoy = "%04s%03s" % (year, idoy) # create the xml file glog.fatal("==========> beg tb.") doy_xml = os.path.join(xml_dir, "gns_tb_%4s%03d.xml" % (args.year, int(args.idoy))) create_xml_py = os.path.join(scp_dir, "gns_xml_create_xml.py") tool.run_py_cmd(python_version=python_version, python_name=create_xml_py, log_dir=log_dir, log_name="create_xml.cmd_log", year=year, idoy=idoy, ilen=1, idst=mod_xml, odst=doy_xml) print(grt_bin) print(doy_xml) print(log_dir) print(bin_dir) work_dir = os.path.join(log_dir, year, idoy) os.system("mkdir -p " + work_dir) os.chdir(work_dir) tool.run_grt_cmd(app_dir=grt_bin,
glog.fatal("==========> beg GNSS POD ALL MODE.") glog.fatal("==========> beg create the xml file.") doy_xml = os.path.join(xml_dir, "gns_pod_%4s%03d.xml" % (args.year, int(args.idoy))) create_xml_py = os.path.join(scp_dir, "gns_xml_create_xml.py") update_xml_py = os.path.join(scp_dir, "gns_xml_update_editres.py") update_ambfix_xml_py = os.path.join(scp_dir, "gns_xml_update_ambfix.py") os.system("chmod +x " + create_xml_py) os.system("chmod +x " + update_xml_py) os.system("chmod +x " + update_ambfix_xml_py) tool.run_py_cmd(python_version=python_version, python_name=create_xml_py, log_dir=log_dir, log_name="create_xml.cmd_log", year=year, idoy=idoy, ilen=1, idst=mod_xml, odst=doy_xml) # first, check out the src and bin, if not bin, we cmake and make it # second, preedit glog.fatal("==========> beg preedit.") tool.run_grt_cmd(app_dir=bin_dir, app_name="great_preedit", xml_path=doy_xml, log_dir=log_dir, log_name="great_preedit.cmd_log") tool.run_cp_cmd(prj_dir, ics, prd_dir, "_pre") tool.run_cp_cmd(prj_dir, pre_app_log, log_dir, "_pre")