Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
6730359
First attempt at single site summary analysis
gabsun Dec 10, 2014
17ed444
First fully functional single site summary
gabsun Dec 12, 2014
5112027
Redundant month_start code in Taylor plot
gabsun Dec 12, 2014
dd59417
Simplified call to Taylor diagram + bug fix
gabsun Dec 12, 2014
3a8077f
Remove accidentally added plots
gabsun Dec 12, 2014
463bb4b
Taylor reporting correlation metric for benchmarks
gabsun Dec 12, 2014
52676e5
Site summary table split by variable
gabsun Dec 12, 2014
1303d73
Scatter plot now returns benchmark metrics
gabsun Dec 12, 2014
1553636
Benchmarks visible in scatter plot
gabsun Dec 13, 2014
a189cbb
Better dots on scatter plot
gabsun Dec 13, 2014
f3cd7ad
Benchmark colours in scatter now consistent
gabsun Dec 13, 2014
74d9f6b
Benchmark plot colours now synced
gabsun Dec 14, 2014
aa837f0
Reorganisation of netcdf compatibility functions
gabsun Dec 22, 2014
a233151
Shifted netcdf var definitions
gabsun Dec 22, 2014
a7075a4
Empty function to check spatial grids
gabsun Dec 22, 2014
1fb9f05
Don't make metric table if all analyses failed
gabsun Dec 22, 2014
0b28663
Taylor plot now shows benchmarks
gabsun Dec 23, 2014
19f73f7
Comments to distinguish plotting functions
gabsun Feb 4, 2015
c708924
Added 'grid' to GLEAM obs list instead of lat/lon
gabsun Feb 4, 2015
368fb69
Simplified DistributeGriddedAnalysis
gabsun Feb 11, 2015
a7279db
Completed migration of 2D metrics to separate file
gabsun Feb 11, 2015
c32a754
Move metric density cut function to metrics file
gabsun Feb 11, 2015
5be89d2
Generic gridded plot layout function + region flag
gabsun Feb 12, 2015
406cb7b
First working global plots
gabsun Feb 15, 2015
d48ce5f
Speed improvement for global analyses
gabsun Feb 15, 2015
4e2cf9c
Fix location of text n denisty fns in global plots
gabsun Feb 16, 2015
8ca845b
Added benchmarks to global plot test
gabsun Feb 16, 2015
fa43bfd
Global analysis not always Pacific focus
gabsun Mar 10, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions pals/R/1DAnnualCycle.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# Gab Abramowitz CCRC, UNSW 2014 (palshelp at gmail dot com)
#
AnnualCycle = function(obslabel,acdata,varname,ytext,legendtext,
timestepsize,whole,modlabel='no'){
timestepsize,whole,plotcolours,modlabel='no'){
######
errtext = 'ok'
metrics = list()
Expand Down Expand Up @@ -48,7 +48,6 @@ AnnualCycle = function(obslabel,acdata,varname,ytext,legendtext,
}
}
xloc=c(1:12) # set location of x-coords
plotcolours=LineColours()
# Plot model output result:
yaxmin=min(data_monthly) # y axis minimum in plot
yaxmax=max(data_monthly)+0.18*(max(data_monthly)-yaxmin) # y axis maximum in plot
Expand Down
3 changes: 1 addition & 2 deletions pals/R/1DDiurnalCycle.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Gab Abramowitz CCRC, UNSW 2014 (palshelp at gmail dot com)
#
DiurnalCycle = function(obslabel,dcdata,varname,ytext,legendtext,
timestepsize,whole,modlabel='no',vqcdata=matrix(-1,nrow=1,ncol=1)){
timestepsize,whole,plotcolours,modlabel='no',vqcdata=matrix(-1,nrow=1,ncol=1)){
errtext = 'ok'
metrics = list()
if(!whole){ # we need a whole number of years for this to run
Expand Down Expand Up @@ -144,7 +144,6 @@ DiurnalCycle = function(obslabel,dcdata,varname,ytext,legendtext,
xloc=c(0:(tstepinday-1)) # set location of x-coords in plot
yaxmin=min(avday) # y axis minimum in plot
yaxmax=max(avday)+(max(avday)-yaxmin)*0.15 # y axis maximum in plot
plotcolours=LineColours()
# Now plot each panel:
for(k in 1:4){# for each season (DJF, MAM etc)
# Plot obs data result:
Expand Down
11 changes: 5 additions & 6 deletions pals/R/1DPdf.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
# Gab Abramowitz UNSW 2014 (palshelp at gmail dot com)

PALSPdf = function(obslabel,pdfdata,varname,xtext,legendtext,timing,
nbins=500,modlabel='no',vqcdata=matrix(-1,nrow=1,ncol=1)){
nbins=500,plotcolours,modlabel='no',vqcdata=matrix(-1,nrow=1,ncol=1)){
errtext = 'ok'
metrics = list()
xcut = 1/100
ncurves = length(pdfdata[1,]) # Number of curves in final plot:
ntsteps = length(pdfdata[,1]) # Number of timesteps in data:
tstepinday=86400/timing$tstepsize # number of time steps in a day
ndays = ntsteps/tstepinday # number of days in data set
plotcolours=LineColours()
xmin = min(pdfdata)
xmax = max(pdfdata)
allden = list()
Expand Down Expand Up @@ -72,14 +71,14 @@ PALSPdf = function(obslabel,pdfdata,varname,xtext,legendtext,timing,
scoretext = paste(overl,collapse=', ')
text(x=(xlow+(xhigh-xlow)*0.75),y=ymax*0.6,labels=paste('Overlap: ',scoretext,'%',sep=''),pos=4)
if(ncurves==2){ # model only
metrics[[1]] = list(name='PDFoverlap%',model_value=overl[1])
metrics[[1]] = list(name='%Overlap',model_value=overl[1])
}else if(ncurves==3){
metrics[[1]] = list(name='PDFoverlap%',model_value=overl[1],bench_value=list(bench1=overl[2]))
metrics[[1]] = list(name='%Overlap',model_value=overl[1],bench_value=list(bench1=overl[2]))
}else if(ncurves==4){
metrics[[1]] = list(name='PDFoverlap%',model_value=overl[1],
metrics[[1]] = list(name='%Overlap',model_value=overl[1],
bench_value=list(bench1=overl[2],bench2=overl[3]))
}else if(ncurves==5){
metrics[[1]] = list(name='PDFoverlap%',model_value=overl[1],
metrics[[1]] = list(name='%Overlap',model_value=overl[1],
bench_value=list(bench1=overl[2],bench2=overl[3],bench3=overl[4]))
}
}
Expand Down
Loading