+ if (has_summary && !summary_file)
+ summary_file = open_output(summary_name, argv[i], ".summary");
+ if (has_detail && !detail_file)
+ detail_file = open_output(detail_name, argv[i], ".detail");
+ if (has_plot) {
+ if (plot_name)
+ this_plot_name = plot_name;
+ else
+ this_plot_name = replace_extension(argv[i], ".plot");
+ }
+ if (has_raw && !raw_file)
+ raw_file = open_output(raw_name, argv[i], ".raw");
+ if (has_gps && !gps_file)
+ gps_file = open_output(gps_name, argv[i], ".gps");
+ if (has_kml && !kml_file)
+ kml_file = open_output(gps_name, argv[i], ".kml");