16
MnSGC Ballooning Team Techniques: APRS tracking-data processing James Flaten Summer 2010

MnSGC Ballooning Team Techniques: APRS tracking-data processing James Flaten Summer 2010

Embed Size (px)

Citation preview

Page 1: MnSGC Ballooning Team Techniques: APRS tracking-data processing James Flaten Summer 2010

MnSGC Ballooning Team Techniques:APRS tracking-data processing

James FlatenSummer 2010

Page 2: MnSGC Ballooning Team Techniques: APRS tracking-data processing James Flaten Summer 2010

After each flight, tracking data files are saved from car-tracking computers andfrom the internet record on aprs.fi from all transmitters on the flight. Usuallythe internet record is the most complete, but it may be manually supplementedwith a transmissions from the launch site and/or the landing zone. It is sufficientto process just the data from the transmitter that worked best on that flight.

Page 3: MnSGC Ballooning Team Techniques: APRS tracking-data processing James Flaten Summer 2010

Here are some lines from a raw data file. Sample data of interest is highlighted(yellow is timestamp in hr,min,sec – ends with “h” for “hour”) (green is latitudegiven in deg,decmin – ends the “N/” for “north”) (turquoise is longitude also indeg,decmin – ends with “W” for “west”) (gray is altitude in ft – starts with “A=”). Notice not all lines contain useful data. Red type indicates duplicate data recordsor problematic data. Manually erase all lines that don’t contain useful data.

Page 4: MnSGC Ballooning Team Techniques: APRS tracking-data processing James Flaten Summer 2010

Here is all that is left after extra lines are erased. Now use the Find and Replace Allfeature of MS Word to add “/” characters in the vicinity of each piece of useful data.For example, replace “h” with “/h/”, replace “N/” with “/N/”, replace “W” with “/W/”,and replace “A=” with “A=/”. Now the file looks like this (below). Notice that someextraneous replacements occurred too.

Page 5: MnSGC Ballooning Team Techniques: APRS tracking-data processing James Flaten Summer 2010

Save the file in Plain Text (*.txt) format, accepting the defaults offered. CloseMS Word and reopen the file using MS Excel (will need to tell Excel to look forFiles of type “All Files”, not just “All Excel Files”).

Indicate that data in this file is“delimited” by specific charactersrather than of fixed width.

Tell Excel to watch for the “/”character to delimit data points.

Page 6: MnSGC Ballooning Team Techniques: APRS tracking-data processing James Flaten Summer 2010

Erase data from all cells that don’t interest you. Notice that the data doesn’tline up vertically (yet). Erase extra characters (in the altitude boxes in this case).

Page 7: MnSGC Ballooning Team Techniques: APRS tracking-data processing James Flaten Summer 2010

Now delete the extra cells themselves, shifting to the left (not vertically) untileverything lines up. Here is what it looks like part way through and at the end.Add title line and save in .xls format as a “scrubbed” data file.

Page 8: MnSGC Ballooning Team Techniques: APRS tracking-data processing James Flaten Summer 2010

Find an “Altitude vs Time Analysis” file from a flight that has already been processed.Study how it works (next several slides) before putting data from new flight in place.The columns highlighted here are where the scrubbed data will go.

Page 9: MnSGC Ballooning Team Techniques: APRS tracking-data processing James Flaten Summer 2010

The green columns highlighted show extraction of hours, minutes, and seconds indi-vidually from the hr,min,sec raw data column. The orange column (see equation in boxat the top) calculates the total amount of time in seconds since the release (call thatt = 0). If some tracking data lines come from prior to release, their Time boxes will havenegative values. You need to figure out exactly when balloon was released and subtractthat number of seconds from the Time column. For flight shown the offset was 58130 sec.

Page 10: MnSGC Ballooning Team Techniques: APRS tracking-data processing James Flaten Summer 2010

Tan columns repeat Time, now in minutes, and Altitude. The graph shows the rawAltitude vs Time for the flight. There might be gaps in the record, depending on howwell the tracking went. Expect a linear ascent rate to some altitude A1 and time t1, a(slower) linear ascent rate to burst at time t2, then a rapid, non-linear descent to thelanding (rest of the data). The change in ascent slope is sometimes fairly subtle.

Page 11: MnSGC Ballooning Team Techniques: APRS tracking-data processing James Flaten Summer 2010

The next 3 graphs are of Phase 1, Phase 2, and Phase 3 separately. (Notice the highlighted graph only uses some of the data points.) Use a linear fit on the first two graphs and a 3rd or 4th order polynomial fit for the last graph. The equations for the fits are printed right on the graphs. Instructions for doing such fits with Excel are on the next slide.

Page 12: MnSGC Ballooning Team Techniques: APRS tracking-data processing James Flaten Summer 2010

To do fitting with Excel, click on the data (on the graph) to select it then right-click and choose “Add Trendline”. In the Format Trendline window be sure to select “Display Equation on chart” so that you can see the fit parameters it uses to do the fitting. Linear fits work well but parameters for high-order polynomial fits may be reported on-screen with insufficient digits for the next step, so you may need to do those fits using different software.

Page 13: MnSGC Ballooning Team Techniques: APRS tracking-data processing James Flaten Summer 2010

The parameters for the two linear fits (2 parameters each) plus the polynomial fit(about 5 parameters) go in the boxes highlighted, as do notes about times in the datarecord where each fit is valid. Note that the parameter values and the times to switchbetween phases will be different for every flight.

Page 14: MnSGC Ballooning Team Techniques: APRS tracking-data processing James Flaten Summer 2010

Now generate altitude values (blue columns) for a set of uniform times (gray column) and plot them (pink plot). This should look very like the original data plot in overall shape.

Page 15: MnSGC Ballooning Team Techniques: APRS tracking-data processing James Flaten Summer 2010

In the yellow cells a single (complicated) formula (see equation at top of window) selects the right fit and then calculates the altitude A for any time t. This is the A[t] function, which is the desired result for this data processing.

Page 16: MnSGC Ballooning Team Techniques: APRS tracking-data processing James Flaten Summer 2010

Now on to the new data! Copy the scrubbed data from the new flight into the correctcolumns of the spreadsheet, update the title, then save it with an appropriate name thatincorporates the actual flight number (e.g. “GL27”) Study the data to determine the timewhen the flight began and force that to become t=0 in the Time column by subtraction.Examine the plot of the original data to decide where Phase I, Phase 2, and Phase 3 beginand end (in minutes). Plot just Phase 1 data and apply a linear fit, extracting the two fitparameters. Do the same for Phase 2 data. Fit the descent with a 3rd or 4th order poly-nomial fit, whichever looks better, and extract those parameters too (seeking additionaldigits from another fitting program if need be). Calculate altitudes for evenly-space timevalues in all 3 phases and plot them to make sure they fit together reasonably. Finally,update the A[t] function and plot all the phases, comparing to the original data plot.