16 October 2008

Computers in climate

Earlier I talked a bit about the math and science classes you would probably take if you went to study climate. Somehow, perhaps because they're so ubiquitous, I forgot to mention anything about the computer end of things. On the other hand, they are ubiquitous, so I should catch up a bit and mention the computer hardware, operating systems, software packages, and programming languages you might run in to, or that I have, in working on climate modelling and data analysis. A different part: the computers are just tools. Being good with computers (knowing many languages, whatever) is like being good with a hammer. Being good with hammers doesn't make you a carpenter, nor does being good with computers make you a scientist.

The hardware is pretty much anything you can find. For small models or data sets, a single processor desktop is still used. Small being defined as 'what you can do on a single processor desktop system'. Given that they're about a million times more powerful than the desktops of 30 years ago, this is actually not a minor set. In intermediate ranges are multiprocessor desktops or workstations (or at least what we used to call workstations; the distinction seems far less common now), up to a few dozen home-style processors. I see that you can now get at home, if not cheaply, 8 processor systems with 8 Gb memory. The first computer I worked on had 8 Kb of memory. These mid-range systems can do substantial work, particularly if used well. At the high end, you're looking at hundreds to thousands of processors, or vector processors. The latter were the domain of Cray in the mid 70s-90s; NEC started producing them as well. They had (from the later 80s) multiple processors, but the number was fairly small. The power of such systems was that each processor could do the same thing many time (16-32 in the early 90s). Since our models tend to do just that, this can be an effective design.

Operating systems have often been a matter of whatever the vendor shipped. In the 70s and 80s, this was often home-grown at the vendor's. These days for larger systems it's almost always some flavor of Unix or related. For smaller systems, it's hardware-based (Mac, which these days is also Unix-based), Unix-related (Linux, BSD), Windows, or other, what seem to be more regional systems (Acorn?).

Programming languages are often a matter that people get ... let's stay 'testy' ... about. I don't really understand it myself. For the models themselves, the main language is Fortran in whatever flavor is widespread. These days 90/95. But others get used as well or instead, including C, C++, Java, and Python. For the data processing, it is usually one of these others which is most-used (mostly C, with the others increasing; at least from where I sit). The reason I don't see the problem is that I am polylingual myself (more below) and learning a new programming language just isn't a big deal and doesn't seem like it ought to be. The one significant hurdle is going between procedural languages like Fortran/C/... and object oriented languages like C++/Java/... But if you're staying on one side of that hurdle, going from one language to another is a fairly minor matter if you learned to be rigorous in the first place.

You'll also likely wind up using one or another graphics or toolbox sort of package. Some are: Matlab, IDL, R, GraDS, MacSYMA, MAPL. I'm sure there are a raft more; these are just ones I've heard of recently. As they're (mostly) commercial packages, which one gets used varies widely by what center you're at.

So a fairly typical set to know is something like:
  • Fortran and at least one other language (C/C++/Java/Python/...)
  • A Unix-related operating system plus a home system (Mac, Windows, ...)
  • A graphics package
And, for all of them, be ready and able to learn a new one with fair speed. As you'll see from my list of systems, languages, and packages (all of which are incomplete), knowing any one of them will only suffice for a while and often not a long while.


My own hardware list (as I recall it over the decades):

Home-type computers:
Wang 8k, Apple II, Commadore 64, Mac Plus (wrote my PhD on one), Mac (IIx, IIfx, SE30, Powermac 120, PowerMac G5, Mac Pro), IBM-PC (when it really was IBM), PC-AT, 386-type, 486-type, pentium I, II, III, IV.

Workstations:
DEC PDP-8, PDP-11, VAX 11/750, VAX 11/780
HP (... never seemed to name theirs, but a 68030/68881, running HP-UX 5, and then, later, an HP-UX 10 system)
SGI Iris, Indigo, Origin,
Sun Sparc 1, 10, and a couple of Solaris systems

Big systems:
CDC 180, 195
IBM (old big-iron systems)
Cray 1, 2, X-MP, Y-MP, C-90, J-916
IBM RS/6000 (PowerPC based parallel systems PowerPC 2-6 if I remember correctly)

Operating systems:
NUCC (Northwestern University CDC system, SNOBOL-based)
NOS-Ve (CDC system of early 1980s)
COS (Cray operating system)
VAX/VMS
IBM systems: MVS, VM/CMS, ... (?)
*nix flavors: HP-UX, PDP unix, Solaris, Linux (slackware, redhat), UNICOS (Cray unix), AIX (IBM Unix), ... no doubt several more
CP/M (not really an operating system, but, for lack of a better word ...)
DOS 1.0, 3.0, 5.0, 6.0; Windows 3.1, 95, XP; Desqview X
MacOS 1-9, X

Programming Languages:
Fortran (4, 66, 5, 77, 90/95; Ratfor, Watfor, Watfiv)
C
C++
Pascal, Basic, Java
Logo, Algol, APL
Forth, Lisp
Not languages, but:
VAX/VMS assembler, 68030 assembler

And, again I wouldn't call them languages, but I use them: Perl, Javascript


... and yes, I did use punched cards. Wrestled a pterodactyl so I could use it's beak to punch out the holes!

13 October 2008

Ad hominem

One of the more heavily abused terms around blogs and such is ad hominem, which is unfortunate because it is actually a useful method for weeding sources -- if you understand what it really means. The bare translation of the Latin, against the man, doesn't help us much unfortunately. But it's a start. You know something is up when someone starts talking about a person instead of the science in what is supposed to be a scientific discussion.

The classic form of an ad hominem is:
"X is a bad person, therefore they're wrong about Y".

'bad person' is usually substituted with something else ('travels', 'has a big house', ...), and the 'therefore' is often omitted. One I commonly see is, for example "AGW is a scam. Al Gore has a big house and uses a lot of electricity. "

The logical fallacy being that comments about Al Gore say exactly nothing about the science on anthropogenic global warming. But if someone says it loud enough, often enough, and maybe shouts it at you, you might get swept up into their emotional argument. They're hoping so.

My wife occasionally reminds me that there's more to the world than science. So I'll step outside that and look at the policy implications the ad hominem people want us to draw. One is obviously that they want us to think that doing anything about AGW requires us to give up having large houses and using 'a lot' of electricity. Except this is false. See my comments about keeping your vehicle how you choose for more. Part of how Gore is dealing with the carbon produced in his energy use is to buy carbon credits (the idea being that if you cause 10 units of carbon to be released, and you also cause 10 units to be drawn back out of the atmosphere, then your net effect is zero -- and you can do what you like as long as your net is zero). If that's brought up, the ad hominem folks then say something about Gore owning (part of? I don't know) the company he buys the carbon credits from. As long as the carbon is buried, though, it doesn't matter -- to the science, or honest policy -- who gets the corporate profit. Their complaint, then, is that Gore is able to make money while living large and not contributing to climate change. Huh? Shouldn't he be getting a medal for that? There are jobs to be had in carbon credit sorts of activities -- planting trees, building windmills, whatever. But that means a common whine from them -- that doing anything about climate change would bankrupt the world (talk about folks who want to scare us!) -- would also be false.

If you've got examples of people whose opinions are quite different from Gore's on climate and are regularly attacked in similarly ad hominem ways, do submit names and examples. It was a Gore ad hominem article I just saw that prompted this note. He, Jim Hansen, and Michael Mann, in that order, are the three I see the most ad hominem attacks against. No doubt a function of where I read.

Back to the science. When you see a note that talks about the person who holds an idea, rather than the idea, you can be fairly confident that the source isn't concerned about the idea. If there is no such thing as a greenhouse effect, present evidence against that; don't tell me about Al Gore's house. And so on. A google search on "al gore" agw scam brings up the following examples of folks doing the ad hominem game against Gore instead of saying anything substantive about the science), so can be added to the list of unreliable sources

http://www.newsbusters.org/blogs/noel-sheppard/2008/03/04/weather-channel-founder-sue-al-gore-expose-global-warming-fraud
(This site showd up earlier as an unreliable source -- as I mentioned early on, there's a lot of consistency in being unreliable. Once you've found one such example, you're likely to find multiple if you spend more time. That's the value of discovering at some point that a site is unreliable.)

http://www.kusi.com/weather/colemanscorner/19842304.html
John Coleman is the person quoted above.

http://www.larouchepac.com/news/2008/01/22/faked-temperature-record-behind-al-gores-genocidal-fraud.html



And you'll see quite a lot of examples in blog comments, but I excluded sites where such things only appeared in the comments.

There's a converse mistake about ad hominem that's often made (usually by the same people) -- that to say anything about a person is ad hominem. Of course they don't apply that rule consistently. For instance, it is certainly important to consider the qualifications (a personal attribute) of a speaker. So a comment that Al Gore is a (retired) politician, rather than a climate scientist, is perfectly reasonable. I don't get my science from him for that reason. If you are, then please read some science books as well, say Spencer Weart's Discovery of Global Warming. Equally, though, it's not ad hominem to observe that John Coleman is a TV weather forecaster, not a climate scientist. So it probably isn't a good idea to rely on him for your climate science either.

12 October 2008

Question Place 3

Have questions about science, especially if some relating to oceanography, meteorology, glaciology, climate? Here's a place to put them. For that matter, about running as well. Maybe I'll answer them here, and maybe (as happened back when with Dave's note back in May, or Bart's in September) they'll prompt a post or three in their own right.

11 October 2008

We're all related

On Greg Laden's Blog, I've been joining the discussion a bit about race and its meaninglessness as a biological thing for humans. If you want to take that up, please join that thread. Here, I'm taking up the more genealogical side of relationship.

I've mentioned before that I've been doing some genealogy. This has included running mitochondrial and Y chromosome DNA samples. (Well, having someone else do so :-) The mitochondria pass solely from mother to child, so it gives a pointer on where my strictly matrilineal line comes from. The Y chromosomes pass strictly from father to son, so points to where the strictly patrilineal side comes from. In both cases 'points' is a generous description for something that really means 'within a few thousand miles, give or take a lot'. For the strictly patrilineal, I already 'know' the location outside the US (colonies as it turned out) -- Leonhart Krumbein of Strasbourg, who came in 1754 on the ship Brothers.

For the strictly matrilineal side, I had some hope of an interesting result. That side runs back to the early history of Maryland, and then is lost. Could have been that one of the women was a Native American. I'd have liked that. Unfortunately, both sides point to the most common haplogroups in Europe (H for the maternal side, R for the paternal). So no great surprises or novelty there. Oh well. It also established (not that this was a question) that I'm a mutant. (So are you, don't worry.) My mitochondria differ in 7 places (out of about 1500 checked) from the reference sequence. A little looking around shows one of the mutations to be fairly uncommon, even though the rest are very common.

By the time we're looking at 10 generations back (which is where I've tracked, loosely, the matrilineal side to), we've got 1024 ancestors. These tests only speak to 2 of those 1024. Quite a lot of variety could exist in the remaining 1022, but it won't show up in these two parts of our genome. At 20 generations back (about 1350), we've got about a million ancestors. That starts to get interesting, as it gets to be comparable to the population of significant areas (all of England at the time, for instance). Go to 30 generations (about 1050) and there are a billion ancestors -- greater than the population of the world at the time. Make it 40 generations, about 750, back to grandpa Chuck, and we've got a trillion ancestors -- more than 2000 times the world population of the time.

Grandpa Chuck is Charlemagne, who shows up in my tree. Given world population at the time, he probably shows up at least 2000 times in my tree if the whole thing were to be discovered. Back in college a friend (hi Derek) mentioned his descent from Charlemagne. This was before I knew about pedigree collapse so I was skeptical. Now that I do, it's more the converse -- it'd take evidence to show that you (for any of you, anywhere in the world) do not share him as an ancestor. Pedigree collapse is this business that as you go back in time, world population drops, but your number of ancestors keeps increasing. You hit a point where the same person must show up multiple times in your ancestry.

Related is that with a trillion slots to fill in your ancestry, even some connections that may seem intuitively unlikely are certain to happen. Intuition isn't a very good guide when numbers get large (among other times).

So I already know my real list of relatives -- everybody, everywhere. The only question would be how closely related we are. Even before starting the genealogy, I'd realized this. Even after greatly extending my knowledge of who came from where, 60% of the 'where' is still unknown. I take the rest of the world in that 60%.

07 October 2008

Radiative Heating

Short example of radiative heating from today's lunch. We were at a Japanese restaurant and they did the usual bit of cleaning the surface and then spraying it down with something flammable and igniting it. We noticed that we felt the heat even from the burners 20-30 feet away as the big whoosh of flame went up.

I've mentioned before that there are three methods of moving heat around -- conduction (molecules bouncing in to each other; very slow), convection (carrying the hot air from one place to another, and radiation. Now hot air rises, and we were not sitting above the burners! So what is left is radiation. The short-lived, but hot, sheet of flame radiated some heat over to us 20-30 feet away.

Some fireplaces take advantage of the principle by using a 'firebrick' which absorbs heat and then efficiently radiates it back in to the room, rather than letting it go with the air up the chimney..

Anyone else have a daily experience with (non-solar) heat transfer by radiation?