## Hough transform report

Thursday, April 5th, 2018 at 10:02 pm

I’ve been deeply not keeping up with blogging on this Slovenia hang-gliding trip. Telegram and Twitter seem to take the wind out of such activities. So maybe this thing is for mainly technical reports. There are a lot of dead blogs out there that only have such things. This blog was started for technical content, and then I began putting all my own activities into it.

I’ve been working on this technical thing to do with gliding and tracklogs for so long without any breakthrough that I finally decided I had to start reporting negative results.

My latest failure was attempting to use a Hough transform to derive wind speed and direction from the 2second interval GPS sample point of a glider flying around in the air mass.

There are many made up algorithms for doing this, but I wanted something mathematical. This time I based it on the assumption that the glider is mostly flying at a constant speed, so that changes in its GPS/ground speed were entirely due to flying with or against the wind. In particular, given three consecutive positions p0, p1, p2 with td seconds between them, then the correct wind velocity w would satisfy the following equation:

```|p1 - p0 - wtd| = |p2 - p1 - wtd|
```

There is no unique solution for w in this equation; the solutions all lie along a line. So if we add some spread and combine the probability fields of solutions for every sequence of three points in the track, then the peak probability will be the best guess at the wind direction.

It’s all explained here in this jupyter notebook.

After so many failures, I’m much pleased with this result. The actual wind was blowing towards the northeast, and the bad guesses are when the glider was on glide and not doing any circles.

That was from a four hour mega flight all round the three ridges near Gorzia where at one point I got lifted smoothly one thousand metres into the blue sky at the rate of 5m/s. I could see from the capital city inland to the container ships on the Adriatic.

Here’s a picture after landing from a lesser flight today where the clouds were pretty low on the ridge.

I need to grab some self-portraits from the other folks some point real soon of me taking off, and me landing quite properly on my feet. I’m starting to hanker after a new glider, one that’s sleeker and goes faster. This one’s beginning to feel sluggish all of a sudden. I can’t afford anything else now, and it would be quite naughty. And after my spectacular failure of an XC last week on Bradwell, I don’t deserve an upgrade.