Saturday, November 26, 2011

Data Analyses

Ideally we should have collected data from the following sensors (in addition to the photos):
  1. Accelerometer
  2. Magnetometer
  3. Gyroscope
  4. GPS
To save power we allowed the phone screen to turn off a few minutes after loading it into the payload. Unbeknownst to us, SL4A or Android decided to shut down the motion and post sensors (1-3) in addition to the screen. We did not discover this until after retrieving the payload and as a result only have GPS data from the launch.

GPS

We logged GPS data every 5 seconds and set the receiver to update for position changes larger than 1 meter. Data were written to a text file (gps.log) with one line per reading and the following columns:
  1. system used to find location, either 1: gps or 0: network
  2. system time of update in milliseconds
  3. longitude in degrees
  4. latitude in degrees
  5. altitude in meters
  6. speed in meters per seconds
  7. accuracy in meters
We ended up with a 1751 line text file with lines 338 to 1008 containing information about the launch, ascent and descent. The log can be found here: https://github.com/braingram/spaceballoon/blob/master/gps_111106.log. Please post a comment if you find it useful.

Analyses

Maximum Altitude

After recovering our payload, driving back to Cambridge ("our fair city"), we reconvened at the Rowland Institute to take a quick stab at analyzing our data. Our first goal was to determine the maximum altitude of the flight. This turned out to be more difficult than we expected. It turns out that the GPS receiver in the phone we used suffers from the more strict interpretation of the CoCom limits. Briefly, to prevent their use in ballistic missile type applications commercial GPS receivers are not supposed to work when moving faster than 1,900 km/h and/or at altitudes greater than 18,000 km. This max-altitude limitation can be seen in our gps data below (red points).
Our first quick and dirty attempt to reconstruct the maximum height was to fit a straight line (using two points just above 5 and 17km) to the ascent and straight line to the descent (using two points just below 17 and 5km) of the payload and calculate the intersection to determine the maximum height. This initial, and most likely flawed analysis resulted in a maximum height of 23,544 meters.
There are a number of potential problems with using this method to calculate the maximum altitude. First, although the ascent is remarkably linear, the descent is definitely non-linear. Second, our measure of ascent slope is inaccurate as it only uses 2 of the hundreds of ascent data points available. To fix these problems, we ran a second analysis, fitting a regression line to the ascent points, and a polynomial to the descent. This second analysis yielded a maximum altitude of approximately 23,540 meters, remarkably close to the first result.

Trajectory

Next, we wanted to compare the trajectory of our payload to the prediction generated from University of Wyoming's weather balloon predictor. To do this, we had to generate a Google Earth kml file from the gps log. The format and units of the gps log were selected to make this conversion easy. We copied columns 3, 4 and 5 from the gps log into this template: https://github.com/braingram/spaceballoon/blob/master/path_template.kml. The prediction (purple) was surprisingly close to the actual flight (yellow).

Dynamical model

After discussing our plans and eventual success with fellow scientists at the Rowland Institute, one took it upon himself to construct a fluid dynamics simulation to model the balloon ascent. He was kind enough to post his code at https://github.com/poilvert/Balloon-Flight-Dynamics along with a detailed readme describing the assumptions, how to run the code, and where the model deviates from the actual data.

1 comment:

  1. What corrosion meter should I get from internet that is good for underwater measurements?

    ReplyDelete