-
- static void process_summary(String filename) {
- AltosRecordIterable iterable = record_iterable_file(filename);
- try {
- AltosFlightStats stats = new AltosFlightStats(iterable);
- if (stats.serial > 0)
- System.out.printf("Serial: %5d\n", stats.serial);
- if (stats.flight > 0)
- System.out.printf("Flight: %5d\n", stats.flight);
- if (stats.year > 0)
- System.out.printf("Date: %04d-%02d-%02d\n",
- stats.year, stats.month, stats.day);
- if (stats.hour > 0)
- System.out.printf("Time: %02d:%02d:%02d UTC\n",
- stats.hour, stats.minute, stats.second);
+
+ static boolean process_summary(File file) {
+ AltosRecordSet set = record_set(file);
+ if (set == null)
+ return false;
+ System.out.printf("%s:\n", file.toString());
+ AltosFlightSeries series = make_series(set);
+ AltosFlightStats stats = new AltosFlightStats(series);
+ if (stats.serial != AltosLib.MISSING)
+ System.out.printf("Serial: %5d\n", stats.serial);
+ if (stats.flight != AltosLib.MISSING)
+ System.out.printf("Flight: %5d\n", stats.flight);
+ if (stats.year != AltosLib.MISSING)
+ System.out.printf("Date: %04d-%02d-%02d\n",
+ stats.year, stats.month, stats.day);
+ if (stats.hour != AltosLib.MISSING)
+ System.out.printf("Time: %02d:%02d:%02d UTC\n",
+ stats.hour, stats.minute, stats.second);
+ if (stats.max_height != AltosLib.MISSING)