2027: Lightning Distance

Explain xkcd: It's 'cause you're dumb.
Revision as of 20:43, 1 August 2018 by 108.162.246.149 (talk) (Explanation)
Jump to: navigation, search
Lightning Distance
The index of radio refraction does have a lot of variation, which might throw off your calculations, so you can also look at the difference in brightness between the visible flash and more-attenuated UV and x-rays.
Title text: The index of radio refraction does have a lot of variation, which might throw off your calculations, so you can also look at the difference in brightness between the visible flash and more-attenuated UV and x-rays.

Explanation

Ambox notice.png This explanation may be incomplete or incorrect: Created by a RADIO BURST - Calculations might be incorrect. Spelling needs checking. Needs mile values (well, according to me, it doesn't, but oh well...) Please change this comment when editing this page. Do NOT delete this tag too soon.
If you can address this issue, please edit the page! Thanks.

The usual trick for determining the distance to a lightning flash is to count the seconds from when you see the flash until when you hear thunder, and divide by five to get miles (or three to get kilometers). This works because the speed of light is essentially instantaneous over the relevant distances, while the speed of sound is 331.2 m/s (1,087 ft/s, 1,192 km/h, or 741 mph, varying a bit based on temperature), or about 1/5 mile per second.

This comic subverts the usual trick by having Megan describe a highly impractical alternative method. Megan's method is based on the fact that the speed of electromagnetic radiation, which includes light and radio waves, is not truly infinite. The radiation produced by lightning on Earth also has to travel through air, which changes their speed in a fashion which depends on its frequency.

Wikipedia lists refractive index of air at standard temperature and pressure as 1.000277, which equates to a speed of light around 299709.4 km/s (186230.8 miles/s). According to this paper refractive index for radio waves in similar conditions is 1.000428, which equates to a speed of light around 299664.2 km/s (186202.7 miles/s). This means that to get the distance, the time difference in seconds between visible flash and radio burst should be multiplied by a number around 2.0 billion for kilometers (around 1.2 billion for miles). Depending on actual conditions (temperature, humidity, etc.), this number can change dramatically. For example, the same calculation at 0°C would yield a multiplier of 13.6 billion for kilometers (8.5 billion for miles). More details for the calculations are in the comments below.

With sufficiently precise instruments, it would theoretically be possible to use this effect to determine the distance to a lightning flash, as proposed by Randall. The joke is that it is impractical for humans, both because we can't measure such small time intervals and because we can't detect radiation outside the visible spectrum without very specialized instruments. For the purpose of the joke, the "5 billion" value used in the comic is a fair rule of thumb which also references the original rule of 5 seconds per mile nicely, though the result may be inaccurate by as much as a factor of three.

The title text suggests another method of calculating distance to lightning. Since the absorption of light is also different in different wavelengths, it would be possible to calculate the difference by comparing the brightness instead of delays. This would, however, require the knowledge about prior relative brightness of lightning, i.e. the spectrum, in the compared wavelengths.

Transcript

Ambox notice.png This transcript is incomplete. Please help editing it! Thanks.
[Cueball and Megan stand on either side of a window, observing a bolt of lightning in a dark sky.]
Cueball: What's that trick for telling how many miles away lightning is?
Megan: Just count the seconds between the visible flash and the radio wave burst, then multiply by 5 billion.
comment.png add a comment! ⋅ comment.png add a topic (use sparingly)! ⋅ Icons-mini-action refresh blue.gif refresh comments!

Discussion

Calculations I used:

t_1=\frac{s}{v_1}

t_2=\frac{s}{v_2}

Substract:

t_1-t_2=\Delta t=\frac{s}{v_1}-\frac{s}{v_2}=\frac{sv_2-sv_1}{v_1v_2}=s\frac{v_2-v_1}{v_1v_2}=s\frac{\Delta v}{v_1v_2}

Therefore

s=\Delta t\frac{v_1v_2}{\Delta v}

I evaluated \frac{v_1v_2}{\Delta v} and it came to be 13.6 billion. Can someone verify it's correct? 172.68.51.112 13:08, 1 August 2018 (UTC)

The comic begins with the question "how many miles away", so converting to kilometers isn't the right calculation.172.69.71.24 17:06, 1 August 2018 (UTC)

I used refractive index for visible light of 1.000277 (air at STP as opposed to 0C 1atm) and arrived at around 7.9 billion instead. Refractive index of 1.000337 is then required for the radio waves for the comic to be correct. 172.68.11.221 13:46, 1 August 2018 (UTC)

Do you mean 7.9 billion to convert to miles or to kilometers? Because my 13.6 bilion is to kilometers.
I'm sure the actual comic is referring to miles and 5 billion was picked to match with the "divide by five" rule for miles. 172.69.70.131 13:59, 1 August 2018 (UTC)
I did mean kilometers. If we use miles, 1.000314 fits almost precisely! (5.04 billion) 172.68.11.17 14:42, 1 August 2018 (UTC)

If you can count several seconds, as is suggested in the comic, the flash is still billions of miles away, the widest possible distance between Earth and Neptune is about 5 billion km. Sebastian --172.68.110.40 14:51, 1 August 2018 (UTC)

Not to mention that there's not a lot of air within a few billion miles of earth, so the dispersion will be much lower for all but the last 100-ish miles, AFAIK.172.68.54.142 20:12, 1 August 2018 (UTC)
Also, while Jupiter has VERY gigantic storms, they are still too small to see the lightning from them from Earth. -- Hkmaly (talk) 23:17, 1 August 2018 (UTC)

Do you really need to know the spectrum of the flash? If we assume that a flash contains UV and X-ray radiation and that the visible light is generated at the same time as the UV or X-ray radiation then you only need to know the refractive index of light/UV/X-ray in air under the same temperature conditions and not the exact spectrum. Condor70 (talk)

I initially made the mistake of thinking this referred to time difference between visible and UV/X-ray, but it specifically says "brightness." If you want to compare the brightness at a distance to the brightness at the source you'll need to know the brightness at the source, i.e. the spectrum of the flash itself. With this technique you don't need to know the dispersion "only" the relative attenuation, but I suspect that would be a more error-prone measurement.172.68.54.142 18:54, 1 August 2018 (UTC)

I understand the joke Randall was going for, but have a problem with the wording. "Count the number of seconds" won't work for fractions of anything. "Measure" would work, but spoils the gag a bit. Counting numbers are integers; counting the seconds between the visible and radio frequency flashes will give you zero. 172.69.71.24 17:00, 1 August 2018 (UTC)

You're certainly correct, but the joke works (for me at least) by its comparison to the standard rule of counting seconds, and humans are not generally precise enough to resolve better than one second. By keeping Megan's wording as close to the customary rule as possible I think it optimizes the humor. That "Billion" at the end is the whole joke for me, the replacement of "sound" with "radio wave" can be glossed-over on first reading, until you get to the unexpected extra 9 orders of magnitude in the conversion.172.68.54.142 18:54, 1 August 2018 (UTC)
No, they would've been correct if she'd said "count the number of seconds" but she said "count the seconds".It's part of the joke, because it's correct, just completely impractical, because you'd be "counting" something like 10^(-10) seconds--172.68.132.47 07:23, 5 August 2018 (UTC)
Just realized I also glossed-over the replacement of "divide" with "multiply." The brain is a funny thing.172.68.54.142 20:07, 1 August 2018 (UTC)
I took the "count the number of seconds" to be part of the joke, or rather Randall setting us up for the joke. Redbelly98 (talk) 02:18, 6 August 2018 (UTC)

Do these account for the air pressure variability common in most thunderstorms?

I think explanation and transcript are pretty complete now. 172.68.51.112 20:58, 1 August 2018 (UTC)

There is the additional problem that a flash is no instantaneous, but progresses at a fraction of the speed of light. Who says that radio waves and light at different wavelenghts or xrays have their maximum at the same moment? ;-) --162.158.91.59 08:05, 2 August 2018 (UTC)
I added a few words about the problem that a flash is not instantaneous and removed the 'incomplete' tag. Hope that's OK. Chrisahn (talk) 19:41, 2 August 2018 (UTC)

Here's a variation of the calculation above that simplifies numeric evaluation:

The refractive index is defined as n=\frac{c}{v}, so v=\frac{c}{n} and thus t=\frac{s}{v}=\frac{s\,n}{c}.

t_1=\frac{s\,n_1}{c}

t_2=\frac{s\,n_2}{c}

Subtract:

t_1-t_2=\Delta t=\frac{s\,n_1}{c}-\frac{s\,n_2}{c}=s\frac{n_1-n_2}{c}=s\frac{\Delta n}{c}

Therefore

s=\Delta t\frac{c}{\Delta n}

and the factor we want to calculate is

\frac{c}{\Delta n}

With the numbers given in the sources in the main text:

n_1=1.000315

n_2=1.000277

\Delta n=n_1-n_2=0.000038

For kilometers: \frac{c}{\Delta n}\approx\frac{300,000\,km/s}{0.000038}\approx7.9\cdot10^9\,km/s

For miles: \frac{c}{\Delta n}\approx\frac{186,000\,mi/s}{0.000038}\approx4.9\cdot10^9\,mi/s

Chrisahn (talk) 18:28, 2 August 2018 (UTC)

Nice one. I didn't think to use the refractive indicies directly. 172.68.51.118 22:22, 2 August 2018 (UTC)
Agreed, nice clear analysis by Chrisahn. I'd like to suggest a couple of corrections regarding the index values:
  • n for air at 0 C, 1 atm, is closer to 1.000292, according to both the Wikipedia link and also the "Simple Shop-floor Formula" given by NIST at the bottom of this site. This would give a {\Delta n} of 0.000023, and a time-to-distance conversion value of \frac{c}{\Delta n} \approx 7.9\cdot10^9 mi/s.
  • Thunderstorms rarely occur at 0 C. Using values for 30 C (86 F) instead, we have 1.000261 for air (from the simple NIST formula) and 1.000429 for radio waves (from Table 1, p. 8 of the Rueger paper). This gives a {\Delta n} of 0.000168, and a time-to-distance conversion value of \frac{c}{\Delta n} \approx 1.1\cdot10^9 mi/s.
This suggests that the conversion value is the desired 5 billion for some temperature between 0 and 30 C. Linear interpolation of the above suggests this temperature is about 13 C or 55 F [EDIT: See note after this comment]. More to the point, the conversion value varies too strongly with temperature for there to be a simple rule. That being said, I do like that the 5 billion figure ties in nicely with the familiar (in USA) divide by 5 rule. Redbelly98 (talk) 02:18, 6 August 2018 (UTC)
NOTE: Please ignore the linearly interpolated "13 C" above. It turns out n for radio waves is a highly nonlinear function of temperature. Plus the 1/Δn dependence -- where Δn changes by a factor of 7 or 8 -- makes the nonlinearity even worse. --Redbelly98 (talk) 01:05, 7 August 2018 (UTC)

Assumptions on the medium properties sound?

Refractive index of *dry* air might be pretty close to 1 for both light and RF EM waves, but:

Let's assume that the air is humid, if not even full of water drops. After all, lightning.

Let's further assume that an air/water mixture or solution has electromagnetic properties between these two materials.

In water, refractive index for light is about n_{\text{water, optical}}=1.33 n_{\text{air, optical}}, (as easily demonstrated by the optical refractive effects); for RF, we typically use values of \frac{n_{\text{water, RF}}^2}{\mu_r}=\epsilon\approx 80. So, n_{\text{water, RF}}\approx \sqrt{80}n_{\text{air, RF}}.


Let's assume a 10⁻³ "EM-effective" water content in the comic air.

That would lead to \frac{v_{\text{opt.}}}{v_{\text{RF}}} = \frac{\frac34}{\sqrt{80}^{-1}}= \frac34\sqrt{80}=6.7.

While the humidity (amount of water vapor) is certainly higher during the rain, I don't think that would count as a proper "water-air mixture". Wikipedia says that "Violent rain" is above 5 cm/h. If you divide it by 3600 (to get cm/s), and then imagine stretching that all the way to the cloud, you'll find out there's not that much water at given moment in the air. 172.68.51.112 19:12, 1 August 2018 (UTC)
Great point. To finish the calculation let's use a typical terminal velocity for a large raindrop (it's a big storm, I'm sure) of 9m/s. 0.05 m/hr / 3600 s/hr / 9 m/s = 0.00015% water by volume. Sure seems like more than that when I have to drive through it! Then it seems more like [1].172.68.54.142 20:32, 1 August 2018 (UTC)


we can't detect radiation outside the visible spectrum without very specialized instruments Something that I think was overlooked in the explanation is that while humans can't *directly* sense radio waves, there are devices called "radios" which at one point in time were fairly commonly owned by humans, whose whole purpose is to detect encoded radio waves and convert them into sounds which humans can sense. I.e. you hear static during an electrical storm. So you could listen for the static and compare that to the flash... if you were fast enough. 172.68.54.64 14:22, 3 August 2018 (UTC) (newbie)

But radios ARE specialized equipment. 172.68.51.52 10:35, 4 August 2018 (UTC)
Ehh... I see your point, but I'm not sure I'm *really* convinced. In my mind, a Gamma Ray Spectrometer is specialized equipment. People don't normally have them in their house or car. Radios are (or, at least, *were*) very common. But you're right, it says specialized instrument, not "rare" instrument. I'm not changing the explanation, just wanted to point out for those geeky enough to read the comments that for normal people, *detecting* the radio wave output lightning is doable without buying extra equipment one doesn't normally have in the home. Detecting the difference between the flash and the static on the radio is where it gets impractical. 172.68.54.64 15:01, 6 August 2018 (UTC) (newbie)

Whoops!

I always thought it was 1 second per mile. I didn't know about the 'divide by 5" part. These Are Not The Comments You Are Looking For (talk) 01:23, 5 August 2018 (UTC)

Storms just became 5 times more scary for you :) 188.114.103.95 12:12, 6 August 2018 (UTC)