Searching for the 'smoking gun' in the climate change code
Since the now notorious CRU email distraction hack, it seems EVERYONE has become an expert in not only climate change but now code. Apparently ‘Armed and Dangerous‘ quote mined the code for ‘suspicious’ words like artificial, and stumbled across the following code in on of Briffa’s reconstructions of Northern Hemisphere temperatures.
; ; Apply a VERY ARTIFICAL correction for decline!! ; yrloc=[1400,findgen(19)*5.+1904] valadj=[0.,0.,0.,0.,0.,-0.1,-0.25,-0.3,0.,- 0.1,0.3,0.8,1.2,1.7,2.5,2.6,2.6,$ 2.6,2.6,2.6]*0.75 ; fudge factor if n_elements(yrloc) ne n_elements(valadj) then message,'Oooops!' ; yearlyadj=interpol(valadj,yrloc,timey)
…and reaches the following conclusion…
All you apologists weakly protesting that this is research business as usual and there are plausible explanations for everything in the emails? Sackcloth and ashes time for you. This isn’t just a smoking gun, it’s a siege cannon with the barrel still hot (Read more),
I’m not sure exactly how they managed to track this one given the person writing the code managed to spell ‘artificial’ incorrectly (searching for fudge, maybe?). Sorry to be an apologist here, but Tim Lambert over at Deltoid does a great job of showing exactly why its pretty pointless to analyse and critique code when you have no idea how the code functions. In summary, it’s neither false or deceptive. Still looking for that smoking gun?
But hey, code-mining is fun. Anyone here run a Linux system? Try this command:
find . -name *.[hcS] -not -regex ‘\./\.git.*’ | xargs cat | grep ”hack” | wc -l
Except replace the part in red with, oh, anything you like. If you want to see which files contain the word you are grepping for, use this:
egrep -H -A2 -ir “(hack)” *
Some of the comments in the Linux kernal are pretty revealing. You know, when you quote-mine for profanity:
arch/mips/pci/ops-bridge.c: * IOC3 is fucked beyond believe … Don’t even give the arch/mips/pci/ops-bridge.c- * generic PCI code a chance to look at it for real … arch/mips/pci/ops-bridge.c- */ –arch/parisc/kernel/sys_parisc.c:/* Fucking broken ABI */ arch/parisc/kernel/sys_parisc.c- arch/parisc/kernel/sys_parisc.c-#ifdef CONFIG_64BIT– drivers/mtd/mtd_blkdevs.c: registered, to prevent the link/init ordering from fucking drivers/mtd/mtd_blkdevs.c- us over. */ drivers/mtd/mtd_blkdevs.c- if (!blktrans_notifier.list.next) –– lib/vsprintf.c: * Wirzenius wrote this portably, Torvalds fucked it up lib/vsprintf.c- */ lib/vsprintf.c- – net/ipv4/netfilter/nf_nat_snmp_basic.c: * (And this is the fucking ‘basic’ method). net/ipv4/netfilter/nf_nat_snmp_basic.c- */ net/ipv4/netfilter/nf_nat_snmp_basic.c-static int snmp_parse_mangle(unsigned char *msg,
Conclusions? Quote mining code is a waste of time unless you know what you are looking at.
Archives
- January 2013 (10)
- December 2012 (2)
- November 2012 (2)
- August 2012 (4)
- July 2012 (4)
- June 2012 (3)
- May 2012 (2)
- April 2012 (4)
- March 2012 (5)
- February 2012 (6)
- January 2012 (3)
- November 2011 (3)
- October 2011 (3)
- September 2011 (2)
- August 2011 (11)
- July 2011 (11)
- June 2011 (5)
- May 2011 (17)
- April 2011 (6)
- March 2011 (5)
- February 2011 (8)
- January 2011 (9)
- December 2010 (8)
- November 2010 (15)
- October 2010 (16)
- September 2010 (6)
- August 2010 (13)
- July 2010 (8)
- June 2010 (26)
- May 2010 (18)
- April 2010 (26)
- March 2010 (42)
- February 2010 (61)
- January 2010 (24)
- December 2009 (43)
- November 2009 (30)
- October 2009 (29)
- September 2009 (36)
- August 2009 (31)
- July 2009 (33)
- June 2009 (23)
- May 2009 (19)
- April 2009 (21)
- March 2009 (19)
- February 2009 (7)
- January 2009 (19)
- December 2008 (20)
- November 2008 (15)
- October 2008 (8)
- September 2008 (13)
- August 2008 (8)
- July 2008 (12)
- June 2008 (14)
- May 2008 (17)
- April 2008 (11)
- March 2008 (11)
- February 2008 (16)
- January 2008 (11)
- December 2007 (7)
- November 2007 (18)
- October 2007 (10)
- September 2007 (18)
- August 2007 (25)
- July 2007 (18)
- June 2007 (4)





