The Fortress of the North
Full post
Labels:
netherlands
The problem with "beginner's mind"
I should say up front that I know nothing about authentic Zen Buddhism. But one of the concepts that has made it into popular culture that I rather like is "beginner's mind": an expert knows what she thinks about things, while a beginner sees everything anew and judges it on what it is. It sounds kind of charming, and like a recipe for creativity. But applying it too literally can get you in trouble.
Concretely, ASTRON (where I work) arranged for a company to come in and teach programming courses to anyone who wanted them. They taught three: Introductory Python, Numeric Python, and Advanced Python. Now, I think that's a brilliant idea: we astronomers all spend most of our time writing code at one level or another, and nobody seems to have bothered to teach us how to do it well. So that ASTRON (actually NWO I think) cares is a really good sign. So of course I wanted to participate. I have lots to learn about writing good programs. I don't think I'm an expert programmer, or even a Python expert, but that latter is partly because I try not to think of myself as an expert in anything. I knew the Introductory Python course would not be productive — I write python code every day. And the Numerical Python, again, was a good idea, but having written, for example, the reshape function in numpy, and the spatial module in scipy, I figured that was probably not going to be too productive either. But the Advanced Python course sounded promising. And I wanted to show my support for the whole idea. So I signed up.
Well, the course was the last three days, and it was a pretty good course, but not at all what I needed. Which should not have been much of a surprise: when I stopped to do the math, I realize that I wrote my first python program eighteen years ago. (Good God.) Still, it was interesting to see how they ran the course, and to think about how I would run one (because if I end up somewhere like McGill that has basically nothing for physics grad students, I will run one, official or not).
Concretely, ASTRON (where I work) arranged for a company to come in and teach programming courses to anyone who wanted them. They taught three: Introductory Python, Numeric Python, and Advanced Python. Now, I think that's a brilliant idea: we astronomers all spend most of our time writing code at one level or another, and nobody seems to have bothered to teach us how to do it well. So that ASTRON (actually NWO I think) cares is a really good sign. So of course I wanted to participate. I have lots to learn about writing good programs. I don't think I'm an expert programmer, or even a Python expert, but that latter is partly because I try not to think of myself as an expert in anything. I knew the Introductory Python course would not be productive — I write python code every day. And the Numerical Python, again, was a good idea, but having written, for example, the reshape function in numpy, and the spatial module in scipy, I figured that was probably not going to be too productive either. But the Advanced Python course sounded promising. And I wanted to show my support for the whole idea. So I signed up.
Well, the course was the last three days, and it was a pretty good course, but not at all what I needed. Which should not have been much of a surprise: when I stopped to do the math, I realize that I wrote my first python program eighteen years ago. (Good God.) Still, it was interesting to see how they ran the course, and to think about how I would run one (because if I end up somewhere like McGill that has basically nothing for physics grad students, I will run one, official or not).
Full post
Visualizing the new pet
I recently wrote about a new object I am studying: a millisecond pulsar with two white dwarf companions. There is lots more I want to say about it, but I think it would be nice to show what it looks like, or at least, to show a video I made trying to make visible what's going on:
Edited to note that Blogger's YouTube embedding is distinctly flaky; video is here.
This video shows the orbital motions in the triple system. The orbits are drawn to scale, showing the actual motions of the two stars (red and yellow) and the pulsar (white). The first ten seconds are played relatively slowly, showing the motion around the inner orbit, then we speed up to see the motion around the outer orbit. For a sense of the time scale, an "MJD" is a modified Julian day, so a single day long. The larger left panel shows all three bodies, with trails marking the motion of the outer companion and the center of mass of the inner system. The inset in the top right zooms in on the inner system, showing the pulsar and the companion, with trails marking their orbits. The dots that appear on the orbits mark moments when we have observations of the system, color-coded by telescope; it should be clear that we have quite thorough coverage of both orbits. Each measurement tells us the distance to the pulsar to within a kilometer, so that we can measure the tiny deviations of these orbits from perfect Keplerian ellipses, allowing us to reconstruct the orbit.
There's a little more to it than that.
This video shows the orbital motions in the triple system. The orbits are drawn to scale, showing the actual motions of the two stars (red and yellow) and the pulsar (white). The first ten seconds are played relatively slowly, showing the motion around the inner orbit, then we speed up to see the motion around the outer orbit. For a sense of the time scale, an "MJD" is a modified Julian day, so a single day long. The larger left panel shows all three bodies, with trails marking the motion of the outer companion and the center of mass of the inner system. The inset in the top right zooms in on the inner system, showing the pulsar and the companion, with trails marking their orbits. The dots that appear on the orbits mark moments when we have observations of the system, color-coded by telescope; it should be clear that we have quite thorough coverage of both orbits. Each measurement tells us the distance to the pulsar to within a kilometer, so that we can measure the tiny deviations of these orbits from perfect Keplerian ellipses, allowing us to reconstruct the orbit.
There's a little more to it than that.
Full post
New pet: PSR J0337+17
I did my PhD thesis on PSR J1023+0038, a millisecond pulsar that is at a fascinating point in its evolution. (In fact there have been developments since the thesis was submitted; more about that later.) But during a moment of procrastination, I got involved with a new and fascinating system. The name, unedifying as usual, is PSR J0337+17, and it is unique in that the pulsar has not just one white dwarf companion but two.Full post
Flywheel energy storage
In the quest for something better to run our cars on than gasoline, one of the proposals is flywheels. In fact, for a while there were flywheel-powered buses running in Switzerland and Belgium. On one level, it makes a lot of sense: you're storing energy as mechanical motion, and we're pretty good at transmitting mechanical motion from place to place. On another level it scares the living daylights out of me: a car in motion uses tens of kilowatts, so the car must be able to store hundreds of kilowatt-hours. If you let all those loose at once bad things will happen: 100 g of TNT going off releases about a hundred kilowatt-hours. Fortunately it's hard to get gasoline to do this, but a flywheel is just itching to dump all its energy. Batteries are a little scary too, to be honest. But anyway, that's all a digression: I want to talk about some really staggering examples of flywheel energy storage: pulsars and black holes.
Full post
New job, new country
I just started a new job, and in the way of academic life, I had to move. I put some things in storage, hopped on a plane with two suitcases, and hey presto, I live in the Netherlands now. The new job is with ASTRON, the Dutch institute for radio astronomy, and it's going really well. Living in a new country actually takes more getting used to.
For one thing, in spite of the fact that I live in arguably the most pedestrianized city in Europe, and in a densely-populated country with good transit systems and cities built when rapid transit meant corn-fed horses, I find myself tempted to carpool to work. See, the thing is, ASTRON was built in the middle of a national park in order to minimize interference with the radio telescope that was also being built. Since the fifties, though, radio astronomy has made a few strides, and the telescope is now used chiefly in education. The telescopes we do use are all off-site, so we're in the middle of the park for historical reasons. It means we're twelve kilometers from the nearest train station, and even the bus drops you off in the village of Lhee, a kilometer or so away from work. So a ride to work is tempting. Fortunately, this is the Netherlands, so I've been biking.
Full post
Labels:
netherlands
Differentiating the solutions to differential equations
A kind of problem that turns up quite often in physics and elsewhere is to find the solution of an ordinary differential equation, given some initial conditions. That is, you have a system with some state $x$ represented as a vector of real numbers, you have an initial state $x_0$, and you have a rule describing the evolution of the state:
$$
\frac{dx}{dt} = F(x,t)
$$
And your goal is to find $x(t)$. This standard problem has some standard solution techniques, some quite advanced - Runge-Kutta methods, symplectic methods, Hermite integrators. A few are implemented in scipy. But it sometimes happens that solving this problem is only part of a more complicated process, say of fitting, where it would be nice to have the derivatives of the solution with respect to the various initial conditions. It turns out this isn't too hard to work out, usually.
Full post
Labels:
curve fitting,
numerical,
python
Weighted Poisson Uncertainties
I recently ran across a rather awkward mathematical problem. I'm trying to make a histogram of photon arrival phases, complete with an uncertainty on the number of photons in each bin. Normally this is done by just taking the square root of the number of photons, which is at least approximately right based on Poisson statistics. But in my problem — data from the Fermi space telescope, which is not very good at localizing low-energy gamma rays — the photons are weighted: for each photon I have a probability that it really came from the source. So the values in the histogram should be the total probability. But what should the uncertainty be? The short version is: the square root of the sum of the squares of the weights.ETA: This is in the literature, without justification as far as I can tell. See below.
Full post
git tear-hair
I use git. It's fast, it's convenient, it gives you github, and mostly it works. But several times now I've managed to bollix a git repository, been faced with impenetrable messages, and been unable to continue using git unless I sort them out. This latest time I had enough stubbornness to figure out how to un-bollix my repository, and I wanted to record it for posterity (specifically, for people whose problem-solving technique involves Googling for the specific error message). The error I received was:
error: object file .git/objects/86/5d2dffe9a3d72917934ed9693c7167efb6d8d5 is empty fatal: loose object 865d2dffe9a3d72917934ed9693c7167efb6d8d5 (stored in .git/objects/86/5d2dffe9a3d72917934ed9693c7167efb6d8d5) is corruptRead on for how it happened, my understanding of what it means, and how I fixed it. Or skip this even-more-technical-than-usual post; I'll try to post something with corals or kittens soon.
Full post
Justice
![]() |
| Available from Amazon |
Full post
Talking about radio astronomy
Full post
Labels:
astronomy
Prediction
![]() |
| The book can be bought from Amazon |
Full post
Labels:
review,
statistics
The Maya-Muon experiment
This week's Friday colloquium talk really had me feeling like I was in a science fiction show. The speaker is building machines to use cosmic-ray muons to see the interiors of still-buried Mayan ruins. Does this not sound like a line of technobabble from Stargate SG-1? But it's nearly feasible.
Full post
Higgs liveblog
![]() |
| A candidate Higgs event; see below. |
Full post
Fireworks
In honor of Canada Day (and for my neighbours to the south, the fourth of July) here's a video:
While this might look like a meteor, and in fact it is asteroidal material falling to Earth, it's actually some extremely expensive fireworks. It's the Hayabusa spacecraft returning to Earth after visiting asteroid 25143 Itokawa, and the material it brought back was safely encapsulated.
Full post
The Too-wide Web
For some reason, computer monitors have been getting wider and wider for years. This puzzles me, since like most people, when I'm working, I tend to use tall narrow documents, both to read and to edit. Sometimes I can arrange things so that I have two panels on the screen, which restores them to a more sensible shape, but the Web is a problem. Web pages seem to have begun adapting to wide monitors by adding wider and wider margins, often filled with ads and/or navigation materials. For me, these margins are often too wide for me to use a two-panel setup (it's just a laptop) but often they leave so much width when used full-screen that the text is tiresomely long. Typesetters have a rule of thumb that you shouldn't put more than about twelve words on a line because it's hard to read. Fortunately, I found a Chrome hack that lets me solve the problem.
![]() |
| The RepRap wiki is too wide. |
Full post
Labels:
do it yourself,
web
USB Stick
| Broken centerboard from her dinghy, Scout |
Full post
Labels:
do it yourself
Recipe/Remedy
I'm fighting off the tail end of a cold, that stage where you're all congested and just can't seem to clear your lungs. So I figured I'd whip up a home remedy that is also dinner. Simple, easy, and effective. Black beans and corn.
Full post
Labels:
recipe
NuSTAR about to launch
NASA is getting ready to launch a new X-ray satellite, NuSTAR. This satellite will observe harder X-rays than we are currently able to. More specifically, this satellite is able to produce high-resolution images of the hard X-rays that come from the decay of isotopes produced in supernovae; the ability to observe hard X-rays with high spectral resolution should also let us probe neutron star formation. Plus it may help us pin down that hard X-ray emission from anomalous X-ray pulsars that nobody understands.
If all this sounds hopelessly technical, sorry. It's still impressive to me that they're going to take this hundred million dollar spaceship, fill it with what amounts to high explosives, strap it underneath a discontinued Lockheed airplane, fly it up into the air near Kwajalein, then drop it and light the fuse. The rocket will then burn for a few hundred seconds, dropping several stages and winding up in low Earth orbit. Once there, the mast holding the mirrors will extend from its one-meter storage canister to its full ten-meter length, the satellite will extend its solar arrays, and scientists will begin debugging and calibrating the instruments. That's if everything goes well; no Pegasus launcher (which this is) has ever actually exploded, though one pair of satellites failed to exit its fairing. So there are some people chewing fingernails, and there's some real drama here. You can watch it online.
Sorry for the hurried nature of the post; I'm planning to watch it live and report on the results as soon as we know.
Edited to add: Success! At least so far. The satellite is in orbit and the solar panels work. The last big worry-point is the extension of the boom; the ten-meter beam that holds the mirrors in position relative to the cameras is currently folded into a one-meter canister. Supposedly, the scientists were reassured that "we can't give you any details, but we know how" to build such a boom, but it won't extend for another week. That'll be followed by a few weeks worth of testing and calibration. But so far so good.
If all this sounds hopelessly technical, sorry. It's still impressive to me that they're going to take this hundred million dollar spaceship, fill it with what amounts to high explosives, strap it underneath a discontinued Lockheed airplane, fly it up into the air near Kwajalein, then drop it and light the fuse. The rocket will then burn for a few hundred seconds, dropping several stages and winding up in low Earth orbit. Once there, the mast holding the mirrors will extend from its one-meter storage canister to its full ten-meter length, the satellite will extend its solar arrays, and scientists will begin debugging and calibrating the instruments. That's if everything goes well; no Pegasus launcher (which this is) has ever actually exploded, though one pair of satellites failed to exit its fairing. So there are some people chewing fingernails, and there's some real drama here. You can watch it online.
Sorry for the hurried nature of the post; I'm planning to watch it live and report on the results as soon as we know.
Edited to add: Success! At least so far. The satellite is in orbit and the solar panels work. The last big worry-point is the extension of the boom; the ten-meter beam that holds the mirrors in position relative to the cameras is currently folded into a one-meter canister. Supposedly, the scientists were reassured that "we can't give you any details, but we know how" to build such a boom, but it won't extend for another week. That'll be followed by a few weeks worth of testing and calibration. But so far so good.
Full post
Error 451: Unavailable for legal reasons
Proposed new HTTP error code (like the well-known 404): 451 (Unavailable for legal reasons). Contains the usual hacker humour, including a thank-you to Ray Bradbury (may he rest in peace) and the following example:
Of course, this particular error might have been the result of hacking by the People's Front for Judea.HTTP/1.1 451 Unavailable For Legal Reasons Content-Type: text/html <html> <head> <title>Unavailable For Legal Reasons</title> </head> <body> <h1>Unavailable For Legal Reasons</h1> <p>This request may not be serviced in the Roman Province of Judea due to Lex3515, the Legem Ne Subversionem Act of AUC755, which disallows access to resources hosted on servers deemed to be operated by the Judean Liberation Front.</p> </body> </html>
Full post
Labels:
computers
Subscribe to:
Posts (Atom)



