10 September 2009

Climate and Computer Science

I'll pick up John Mashey's comment from the 'relevance' thread, as it illustrates in another way some of what I mean regarding relevance, and about who might know what. He wrote:

As a group, computer scientists are properly placed in the last tier.

Once upon a time, computer scientists often had early backgrounds in natural sciences, before shifting to CMPSC, especially when there were few undergraduate CMPSC degree programs.

This is less true these days, and people so inclined can get through CMPSC degrees with less physics, math, and statistics than one would expect.

Many computer scientists would fit B3 background, K2-K3 level of knowledge on that chart I linked earlier.

On that scale, I only rate myself a K4, which corresponds roughly to Robert's Tier 5. Many CMPSC PhDs would rate no higher than K2 (or even K1, I'm afraid, on climate science).


Of course John is one who has been spending serious effort at learning the science, so although our shortcut puts him on a low tier in this area (he's high for computer science!), the earned knowledge is higher. Best, of course, is to work from the actual knowledge of the individual. On the other hand, presented a list of 60 speakers at a meeting, and seeing few from fields in the upper levels (applicable to the topic at hand), it's not a bad bet that the meeting isn't really about the science (or whatever expertise is involved).

If we're talking specifically about climate modellers, we're talking about people who use computers a lot, and make the computers run for very long periods. So, does that mean that all climate modellers are experts about computers the way that computer scientists are? Absolutely not. Again, different matters. Some climate modellers, particularly those from the early days, are quite knowledgeable about gruesome details of computer science. But, as with computer scientists and climate models, that's not the way to bet.

I'll link again to John's K-scale. A computer scientist spends most time learning about computer science. At low levels, this means things like learning programming languages, how to write simple algorithms, and the like. Move up, and a computer scientist will be learning how to write the programs that turn a program in to something the computer can actually work with (compilers), how to write the system that keeps the computer doing all the sorts of processing you want it to (operating systems), interesting (to computer scientists, at least :-) things about data structures, data bases, syntactic analysis (how to invent programming languages, among other things), abstract algorithms, and ... well probably quite a few more things. It's a long time since I was an undergraduate rooming with the teaching assistant for the operating systems class. Things have changed, I'm sure.

Anyhow, on that scale of computer science knowledge, I probably sit in the K2-K3 level. I use computers a lot. And, on the scale of things in my field, am pretty good with the computer science end of things. But, considered as matters of computer science, things like numerical weather prediction models, ice sheet models, ocean models, climate models, etc., are just not that involved. The inputs take predictable paths through the program (clouds don't get to change their mind about how they behave, unlike what happens when you're making the computer work hard by making it do multiple different taxing operations at the same time and do what you like to the programs as they run). Our programs are very demanding in terms of it takes a lot of processing to get through to the answer. But in the computer science sense, it's fairly simple stuff -- beat on nail with hammer a billion times; here's your hammer and there's the nail, go to it.

The climate science, figuring out how to design the hammer, what exactly the nail looks like, and whether it's a billion times or a trillion you have to whack on it -- that part is quite complex. So, same as you can do well in my fields with only K2-K3 levels of knowledge of computer science, computer scientists can do well in theirs with only K2-K3 knowledge of climate science (or mechanical engineering, or Thai, or Shakespeare, ...).

Again, what the most relevant expertise is depends on what question you're trying to answer or problem you're trying to solve. If you want to write a climate model, you should study a lot of climate science, and a bit of computer science. To write the whole modern model yourself, you'll want to study meteorology, oceanography, glaciology, thermodynamics, radiative transfer, fluid dynamics, turbulence, cloud physics, and at least a bit (these days) of hydrology, limnology, and a good slug of mathematics. On the computer science side, you need to learn how to write in a programming language. That's it. It would be nice to know more, as for all things. But the only thing required, from a computer science standpoint, is a programming language. No need for syntactic analysis, operating system design, or the rest of the list I gave above. Not for climate model building, that is. If you want to solve a different problem, they can be vital. (I include numerical analysis in mathematics -- the field predated the existence of electronic computers. Arguably so did computer science. But the modern field, as with modern climatology, is different than 100 years ago.)

09 September 2009

Vickie is now blogging

My wife has started, tonight, blogging. It is about her experiences volunteering at one of the few nonprofit organizations that works with prostituted women. For the adults in my audience, I strongly recommend reading. Excellent writing, and a real problem. (Yes, I'm probably biased, as Vickie will be the first to tell you. But the Maryland State Arts Council is beyond my radius of influence, and they awarded her the major first prize a couple of years ago, as did the MD Writer's Association. Read for yourself.)

Her blog is Vickie's Prostitution Blog.

I've also established a facebook group for her, 'Vickie Grumbine Writing'
Update: Vickie Grumbine Writing. Thanks thingsbreak.

08 September 2009

What fields are relevant?

I've never met someone who knew everything. Certainly I've met some very bright people, and people who knew quite a lot. But nobody has known everything. Conversely, I'm a bright guy, and know a lot of stuff, but I've never met anybody who didn't know things that I didn't. That including an 8 year old who was pointing out to me how to identify some animal tracks (they'd talked about this in her science class recently).

People know best what they've studied the most is my rule of thumb. That's why I go to a medical doctor when I'm sick, but take the dogs to a veterinarian when they're sick. I call up a plumber when the water heater needs replacing, and take my car to an auto mechanic when it needs work. And not vice versa on any of them. It might be true that the auto mechanic is also a good plumber. But, odds are, the person who focused on learning plumbing is the better plumber.

None of this should be a surprise to anybody, yet it seems in practice that it is once we come to climate. Let's be a little more specific in that -- make it the question of whether and how much human activity is affecting climate. There are many other climate questions, but it's this one that attracts the attention, and lists of people on declarations and petitions. If you look only at the people who have professionally studied the matter and contributed to our knowledge of the matter, then the answer to the question is an overwhelming 'yes', and a less overwhelming but substantial 'about half the warming of the last 50 years'.

I've tried to set up a graphic (you folks who have actual skills in graphics are invited to submit improved versions!) of 'the way to bet'. The idea is to provide a loose relative guide as to which fields most commonly have people who you can have the greatest expectations that they have studied material relevant to the question of global warming and human contributions to it from a standpoint of the natural science of the climate system.

Climatology, naturally, is on the top tier -- many people in that field will have relevant background. Not all, remember. Some climatologists look no further than their own forest (microclimatology of forests -- how the conditions in the forest differ locally from the larger scale averages) or other small area, or small time scale. Still, many will be relevant.

Second tier, fewer of the people will be climate-relevant, but still many. Oceanography, meteorology, glaciology.

Third tier, most people will not be climate-relevant. But some have made their way, at least, from those fields over to studying climate. That includes areas like Geomorphology (study of the shape of the surface of the earth) and quantum physics (the ones who come to climate were studying absorption of radiation).

Fourth tier, almost nobody is studying things relevant to the question I posed. The extremely rare exception does exist -- Judith Lean has come from astrophysics and done some good work (with David Rind, a more classically obvious climate scientist) regarding solar influence on climate. Milankovitch was an astronomer/mathematical analyst who developed an important theory of the ice ages.

Fifth tier, I don't think anybody has studied the question I posed directly. I do know a couple of nuclear physicists who have moved to climate-relevant studies. But they essentially started their careers over with some years of study to make the migration. In this, it's more a matter that they once were nuclear physicists. After some years of retraining, they finally were able to make contributions to weather and climate. At which point, really, they were meteorologists who happened to know surprisingly large amounts about nuclear physics.

Sixth tier, I wouldn't include at all except that they show up sometimes on the lists. My doctor is a good guy, bright, interested, and so on. But it takes a lot of work studying things other than climate to become a doctor, and more work after the degree is awarded to stay knowledgeable in that field. That doesn't leave a lot of time to become expert in some other highly unrelated field.

[Figure removed 14 September 2009 -- See Intro to Peer Review for details]


Suggestions of areas to add, or to move up or down, are welcome. I'm sure I have missed many fields and others are probably too high or low.

For now, though, if you're not an expert on climate yourself, I'll suggest that if the source is in the first two tiers, there's a fair chance that they've got some relevant background. If they're in the bottom 3, almost certainly not -- skip these. And the third level, is probably to skip but maybe pencil them in for later study, after you've developed more knowledge yourself from studying sources on the first two levels.

This ranking, of course, applies to the particular question asked. If the question is different, say "What are the medical effects of a warmer climate?", the pyramid would be quite different and MD's would be the top tier. Meteorology would move down one or two levels. Expertise exists only within some area. As I said, nobody knows everything.

Update:
frequent commenter jg has contributed the following graphic:


A general good change he's made is to split between general skills, that can transfer to studying climate, as well as what particular sorts of detailed skills or knowledge one might have. Almost everyone, for instance, involved in studying climate knows some statistics and mathematical analysis. Many fields also require such knowledge, so those would find it easier to move over to climate.

Different good change he made was to put the question directly into the graphic. This is important. As I said, but didn't illustrate, the priority list depends on exactly what question is at hand.

04 September 2009

One dimensional climate models

Some time back, I described the simplest meaningful climate model, and then gave a brief survey of the 16 climate models.

The next 4 I'll take up are the 4 1 dimensional climate models. These are the models that vary only in longitude, only time, only in latitude, or only in the vertical. It'll be in that order. This turns out to be the order of difficulty, and the order of interest. It isn't until the vertical that we'll get to how exactly it is that the greenhouse effect works.

On the other hand, with the model in latitude we'll see some powerful statements about the fact that energy has to move from the equator towards the pole. Not just the fact, but how much, and how it changes with latitude.

In the model with only time, we can look a little more at things we were thinking towards with the simplest model -- what happens if the solar output varies, or if the earth's albedo does. More is involved, and required, than just that. We'll have to start paying attention to how energy is taken up in the atmosphere, ocean, ice, and land. Not a very large amount of attention -- we can't tell the difference between the poles and the equator, or upper vs. lower atmosphere or ocean. But it's a start.

But for now, let's look at the simplest model in longitude only. As with any of our models, they start with the conservation of energy. The energy coming in is, as before, from the sun. How much energy arrives does not depend on what longitude we're at. Remember, even though the sun rises in the east and sets in the west -- east and west being matters of longitude -- the sun does eventually rise everywhere.

Energy coming in has to be balanced by energy going out. If it weren't, things would be changing over time and there is no time in this model. One part of the energy going out is the solar energy that gets bounced straight out. This fraction is called the albedo. Now albedo is something that can depend on longitude. For instance, land is more reflective than ocean. And along, say, 30 E, the earth is mostly land, while along, say 170 W, it is almost entirely ocean. Clouds can be anywhere. So ... we arrive at one of those unpleasant realities -- we have to get some data.

Normal business. The process arrives at telling us that we need to find averaged albedo over time (say some years) and all latitudes for each longitude. (We don't have to average over elevation because albedo is defined as the energy bounced out -- from whatever level of the atmosphere -- divided by the energy coming in.)

Once we have that, we can compute the temperatures at each longitude that will permit us to balance, with terrestrial radiation out, the incoming energy. These temperatures should be something like the blackbody temperature of the earth we found in the simplest model. But they'll vary some.

The next piece of data we'll need are the observed blackbody temperatures, by longitude. Then we'll compare the simplest model to the observations.

One thing which is possible, and we'll be looking for in our comparison, is that now we've added longitude, a new thing can happen. In the simplest model, the energy coming in had to be balanced, right there, by energy going out. Now that we have longitude, it's possible for energy to shift from one longitude to another. The Gulf Stream and North Atlantic Currents, for instance, move a lot of energy from west to east. If no energy is being transported, on the average, then the temperature for a longitude will be just what we expect. If there's a mismatch, energy has to be getting moved from one longitude to another.

I haven't collected the data yet, so I don't really know how it will turn out. I expect that clouds will cover the albedo differences between land and ocean to a fair extent, so the temperatures we'll compute will be fairly constant. I also expect that heat transport by longitude will be small -- the Gulf Stream's eastward warm current is balanced at least partly by a cool current (relative to local temperatures, that is!) at the equator.

On the other hand, I haven't looked at the data yet, so there is room for surprise. That'll be fun. Means we get to learn more than we expected.

02 September 2009

Models and Modelling

"All models are wrong. Some models are useful." George Box

Box was a modeller, and the sentiment is widely spread among modellers of all kinds. This might be a surprise to many, who imagine that modellers think they're producing gospel. The reality is, we modellers all acknowledge the first statement. We are more interested in the second -- Some models are useful.

But let's back up a bit. What is a model? In figuring out some of this, we'll see how it is that models can be imperfect, but still useful.

There are several sorts of model, is one thing to remember. On fashion runways or covers of magazines, we'll see fashion models. In hobby shops, we can get a model spacecraft or car. We could head more towards science, and find a laboratory model, or a biological model animal, statistical model, a process model, numerical model, and so on.

Common to the models is that they have some limited purpose. A fashion model is to display some fashion to advantage -- making the dress/skirt/make up/... look good. She's not to be considered an attempt to represent all women accurately. The model spacecraft is not intended to reach the moon. But you can learn something about how a spacecraft is constructed by assembling one, and the result will look like the real thing.

In talking about a laboratory model, read that as being a laboratory experiment. You hope that the set up you arrange in the lab is an accurate representation of what you're trying to study. The lab is never exactly the real thing, but if you're trying to study, say, how much a beam flexes when a weight is put in the middle, you might be able to get pretty close. If you want to know the stability of a full-size bridge with full size beams and welds and rivets assembled by real people, it'll be more a challenge -- represent the 1000 meter bridge inside your lab that's only 10 meters long. It won't be exact, but it can be good enough. Historical note for the younger set: Major bridges like the Golden Gate Bridge, Brooklyn Bridge, Tower Bridge, and such, were designed and built based on scale models like this. The Roman Aqueducts designed over 2000 years ago, still stand, and never came near a computer. They were all derived from models, not a single one of which was entirely correct.

In studying diseases, biologists use model animals. They're real animals of course. They're being used a models to study the human disease. Lab rats and such aren't humans. But, after extensive testing was done, it was discovered that the rats for some diseases, and other animals for other diseases, reacted closely enough to how humans did. Not exactly the same. But closely enough that the early experiments and tests of early ideas could be done on the rats rather than on people. The model is wrong, but useful.

Statistical models seem to be the sort that the most people are most familiar with. My note Does CO2 correlate with temperature arrives at a statistical model, for instance -- that for each 100 ppm CO2 rises, temperature rises by 1 K. It's an only marginally useful model, but useful enough to show a connection between the two variables, and an approximate order of magnitude of the size. As I mentioned then, this is not how the climate really is modelled. A good statistical model is the relationship between exercise and heart disease. A statistical model, derived from a long term study of people over decades, showed that the probability of heart disease declined as people did more aerobic exercise. Being statistical, it can't guarantee that if you walk 5 miles a week instead of 0 you'll decrease your heart disease chances by exactly X%. But it does provide strong support that you're better off if you cover 5 miles instead of 0. Digressing a second: Same study was (and is still part of) the support of the 20-25 miles per week running or walking or equivalent (30-40 km/week) suggestion for health. The good news being that while 20 is better than 10, 10 is better than 5, and 5 is way better than 0. (As always, before starting check with your doctor about your particular situation, especially if you're older, have a history of heart problems already, or are seriously overweight). This model is wrong -- it won't tell you how much better, and in some cases your own results might be a worsening. But it's useful -- most people will be better off, many by a large amount, if they exercise.

Process models started as lab experiments, but also are done in numerical models. Either way, the method is to strip out everything in the universe except for exactly and only the thing you want to study. Galileo, in studying the motion of bodies under gravity stripped the system, and slowed it down, by going to the process model of balls rolling down sloping planes. He did not fire arrows, cannon balls, use birds, or bricks, etc.. Simplified to just the ball rolling down the plane. The model was wrong -- it excluded many forces that act on birds, bricks, and all. But it was useful -- it told him something about how gravity worked. Especially, it told him that gravity didn't care about how big the ball was, it accelerated by the same rules. In climate, we might use a process model that included only how radiation travelled up and down through the atmosphere. It would specify everything else -- the winds, clouds, where the sun was, what the temperature of the surface was, and so on. Such process models are used to try to understand, for instance, what is important about clouds -- is it the number of cloud droplets, their size, some combination, ...? As a climate model, it would be wrong. But it's useful to help us design our cloud observing systems.

Numerical models, actually we need to expand this to 'general computational models' as the statistical, process, and even some disease models now, are done as computational models. These general models attempt to model relatively thoroughly (not as a process model) much of what goes on in the system of interest. An important feature being that electronic computers are not essential. The first numerical weather prediction was done by pencil, paper, and sometimes an adding machine -- more than 25 years before the first electronic computer. Bridges, cars, and planes are now also modelled in this way, in addition or instead of scale models. Again, all of them are wrong -- they all leave out things that the real system has, or treat them in ways simpler (easier to compute) than the real thing. But all can be useful -- they let us try 'what if' experiments much faster and cheaper than building scale models. Or, in the case of climate, they make it possible to try out the 'what if' at all. We just don't have any spare planets to run experiments on.

Several sorts of models, but one underlying theme -- all wrong, but they can be useful. In coming weeks, I'll be turning to some highly simplified models for the climate. The first round will be the four 1-dimensional models. Two are not very useful at all, and two will be extremely educational. These are 4 of the 16 climate models.