Fudging the data

 
This forum is locked: you cannot post, reply to, or edit topics. This topic is locked: you cannot edit posts or make replies.
   Corn Burners Forum Index » The Environment and Global Warming
View previous topic :: View next topic  
Author Message
Belenus
Serious Burner
Serious Burner


Joined: 10 Dec 2007
Posts: 614
Location: NE PA

PostPosted:Fri Jan 01, 2010 9:30 pm    Post subject Reply with quoteFind all posts by Belenus

Tough to be a programmer tasked with making sure the tree ring proxy data matches the manipulated instrumentation data. When the tree rings indicate a temperature decline, just, just… well just apply the Dr. Michael Mann tricky thingy.

This program is from the HadCRU hacked files, {directory path = FOIA > documents > harris-tree > briffa_sep98_e.pro.}. The semicolons preface remark statements that the programmer included to state the purpose of the various program routines. I’ve hi-lited some of the remark statements in bold red but did not alter the statement otherwise.

;
; PLOTS 'ALL' REGION MXD timeseries from age banded and from hugershoff
; standardised datasets.
; Reads Harry's regional timeseries and outputs the 1600-1992 portion
; with missing values set appropriately. Uses mxd, and just the
; "all band" timeseries
;****** APPLIES A VERY ARTIFICIAL 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!'
;
loadct,39
def_1color,20,color='red'
plot,[0,1]
multi_plot,nrow=4,layout='large'
if !d.name eq 'X' then begin
window, ysize=800
!p.font=-1
endif else begin
!p.font=0
device,/helvetica,/bold,font_size=18
endelse
;
; Get regional tree lists and rbar
;
restore,filename='reglists.idlsave'
harryfn=['nwcan','wnam','cecan','nweur','sweur','nsib','csib','tib',$
'esib','allsites']
;
rawdat=fltarr(4,2000)
for i = nreg-1 , nreg-1 do begin
fn='mxd.'+harryfn(i)+'.pa.mean.dat'
print,fn
openr,1,fn
readf,1,rawdat
close,1
;
densadj=reform(rawdat(2:3,*))
ml=where(densadj eq -99.999,nmiss)
densadj(ml)=!values.f_nan
;
x=reform(rawdat(0,*))
kl=where((x ge 1400) and (x le 1992))
x=x(kl)
densall=densadj(1,kl) ; all bands
densadj=densadj(0,kl) ; 2-6 bands
;
; Now normalise w.r.t. 1881-1960
;
mknormal,densadj,x,refperiod=[1881,1960],refmean=refmean,refsd=refsd
mknormal,densall,x,refperiod=[1881,1960],refmean=refmean,refsd=refsd
;
; APPLY ARTIFICIAL CORRECTION
;
yearlyadj=interpol(valadj,yrloc,x)
densall=densall+yearlyadj
;
; Now plot them
;
filter_cru,20,tsin=densall,tslow=tslow,/nan
cpl_barts,x,densall,title='Age-banded MXD from all sites',$
xrange=[1399.5,1994.5],xtitle='Year',/xstyle,$
zeroline=tslow,yrange=[-7,3]
oplot,x,tslow,thick=3
oplot,!x.crange,[0.,0.],linestyle=1
;
endfor
;
; Restore the Hugershoff NHD1 (see Nature paper 2)
;
xband=x
restore,filename='../tree5/densadj_MEAN.idlsave'
; gets: x,densadj,n,neff
;
; Extract the post 1600 part
;
kl=where(x ge 1400)
x=x(kl)
densadj=densadj(kl)
;
; APPLY ARTIFICIAL CORRECTION
;
yearlyadj=interpol(valadj,yrloc,x)
densadj=densadj+yearlyadj
;
; Now plot it too
;
filter_cru,20,tsin=densadj,tslow=tshug,/nan
cpl_barts,x,densadj,title='Hugershoff-standardised MXD from all sites',$
xrange=[1399.5,1994.5],xtitle='Year',/xstyle,$
zeroline=tshug,yrange=[-7,3],bar_color=20
oplot,x,tshug,thick=3,color=20
oplot,!x.crange,[0.,0.],linestyle=1
;
; Now overplot their bidecadal components
;
plot,xband,tslow,$
xrange=[1399.5,1994.5],xtitle='Year',/xstyle,$
yrange=[-6,2],thick=3,title='Low-pass (20-yr) filtered comparison'
oplot,x,tshug,thick=3,color=20
oplot,!x.crange,[0.,0.],linestyle=1
;
; Now overplot their 50-yr components
;
filter_cru,50,tsin=densadj,tslow=tshug,/nan
filter_cru,50,tsin=densall,tslow=tslow,/nan
plot,xband,tslow,$
xrange=[1399.5,1994.5],xtitle='Year',/xstyle,$
yrange=[-6,2],thick=3,title='Low-pass (50-yr) filtered comparison'
oplot,x,tshug,thick=3,color=20
oplot,!x.crange,[0.,0.],linestyle=1
;
; Now compute the full, high and low pass correlations between the two
; series
;
perst=1400.
peren=1992.
;
openw,1,'corr_age2hug.out'
thalf=[10.,30.,50.,100.]
ntry=n_elements(thalf)
printf,1,'Correlations between timeseries'
printf,1,'Age-banded vs. Hugershoff-standardised'
printf,1,' Region Full <10 >10 >30 >50 >100'
;
kla=where((xband ge perst) and (xband le peren))
klh=where((x ge perst) and (x le peren))
ts1=densadj(klh)
ts2=densall(kla)
;
r1=correlate(ts1,ts2)
rall=fltarr(ntry)
for i = 0 , ntry-1 do begin
filter_cru,thalf(i),tsin=ts1,tslow=tslow1,tshigh=tshi1,/nan
filter_cru,thalf(i),tsin=ts2,tslow=tslow2,tshigh=tshi2,/nan
if i eq 0 then r2=correlate(tshi1,tshi2)
rall(i)=correlate(tslow1,tslow2)
endfor
;
printf,1,'ALL SITES',r1,r2,rall,$
format='(A11,2X,6F6.2)'
;
printf,1,' '
printf,1,'Correlations carried out over the period ',perst,peren
;
close,1
;
end
_________________
-----------------------------------------------------
If a polar bear eats Al Gore, how much methane will be generated?
Back to top
View user's profileSend private messageCorn Burner Brand/Model
Occam
Super Burner
Super Burner


Joined: 12 Feb 2007
Posts: 1441
Location: Toledo

PostPosted:Sat Jan 02, 2010 10:10 am    Post subject Reply with quoteFind all posts by Occam

Wow, so he announced in bold caps the use of an artificial/fudge factor - sneaky Laughing

This means nothing. Show us the journal publication where a hidden artificial correction was foisted on the unsuspecting reader. None. This is not part of the science - it is irrelevant.

I've put fudge factors in code for various reasons throughout my engineering career: sometimes to gauge errors in models, to calibrate data, to run what-if scenarios or just to get a useful result, but never for nefarious reasons and there is no reason to suspect anything nefarious here.
Back to top
View user's profileSend private message
Mary B
Super Burner
Super Burner


Joined: 11 Sep 2007
Posts: 1474
Location: SW Minnesota

PostPosted:Sat Jan 02, 2010 12:32 pm    Post subject Reply with quoteFind all posts by Mary B

Picking out code without an explanation of why they are adjusting the data is useless. Some of the data could be suspect to begin with or the code wasn't modeling it properly and applying a correction was far easier than rewriting the whole mess.
_________________
Never trust a skinny chef
Bixby 115
Outdoor wood fired BBQ pit
Back to top
View user's profileSend private message
mddorogi
Super Burner
Super Burner


Joined: 17 Oct 2006
Posts: 1115
Location: Ann Arbor, MI

PostPosted:Sat Jan 02, 2010 12:38 pm    Post subject Reply with quoteFind all posts by mddorogi

Just think, if he'd just said "real correction", no one would have noticed this, the e-mails would have been ignored, and AGW would have been saved !! Laughing
_________________
Mark
Dell Point Europa
Back to top
View user's profileSend private messageCorn Burner Brand/Model
jdeere5220
Serious Burner
Serious Burner


Joined: 28 Jan 2009
Posts: 730
Location: Michigan

PostPosted:Mon Jan 04, 2010 8:38 am    Post subject Reply with quoteFind all posts by jdeere5220

Not likely.

I don't care what the comments say, the array named "valadj" looks to be a fudge factor applied to each year's numbers. The array has no comment or reference to indicate it's derivation, and appears to be pulled from his rear orifice. Real scientific programming. You guys go on and on about peer-review... do you want to claim this code was peer-reviewed? I don't think so, and I know a thing or two about code reviews.

To follow any sort of accepted process, the code must be peer reviewed. There should be an extensive paper trail indicating who the reviewers were, when the review(s) took place, what the comments from the reviewers were, and how each comment was addressed in the subsequent code revisions. I have not seen that paper trail, and in fact can state without hesitation that in this case that paper trail does not exist.
_________________
Maxim M250 outdoor corn/pellet burner
Old Beat-up Gravity Box
I support Global Warming
Back to top
View user's profileSend private messageVisit poster's websiteCorn Burner Brand/Model
Occam
Super Burner
Super Burner


Joined: 12 Feb 2007
Posts: 1441
Location: Toledo

PostPosted:Mon Jan 04, 2010 9:41 am    Post subject Reply with quoteFind all posts by Occam

jdeere wrote:
I don't care what the comments say, ...... [and then:].... The array has no comment or reference to indicate it's derivation


Shocked

jdeere5220 wrote:

To follow any sort of accepted process, the code must be peer reviewed. There should be an extensive paper trail indicating who the reviewers were, when the review(s) took place, what the comments from the reviewers were, and how each comment was addressed in the subsequent code revisions. I have not seen that paper trail, and in fact can state without hesitation that in this case that paper trail does not exist.


Wow, what a naive statement.

jdeere wrote:
You guys go on and on about peer-review... do you want to claim this code was peer-reviewed? I don't think so, and I know a thing or two about code reviews.


It wasn't published - comprendo? So who cares what is in this code or what was in the output of this code stolen from a private communique? It is completely irrelevant. Once again demonstrating that Deniers concentrate on amplifying uncertainties about tiny pieces of the puzzle at the expense of the big picture - but in this case the item in question isn't even part of the puzzle.

Occam wrote:
Show us the journal publication where a hidden artificial correction was foisted on the unsuspecting reader. None. This is not part of the science - it is irrelevant.
Back to top
View user's profileSend private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics. This topic is locked: you cannot edit posts or make replies.
   Corn Burners Forum Index » The Environment and Global Warming Page 1 of 1

 
Jump to:  



Powered by phpBB © 2001, 2002 phpBB Group
Thème myApple v2.0.1 créé par myTemplate