Commit ba315b4c authored by Carl Schreck's avatar Carl Schreck
Browse files

Changed ut_ to cd_ - Sat Feb 20 00:00:07 EST 2016

parent 3bee748e
......@@ -39,7 +39,7 @@ begin ; main
varLevName = varName + level
plotType = "png"
plotName = "~/figures/model_diag."
plotName = "figures/model_diag." \
+ varLevName + "." + algoName + "." + latBand
print( (/ plotName /) )
plotDpi = 150
......@@ -259,13 +259,13 @@ begin ; main
txRes = True
txRes@txFontHeightF = 0.010
txRes@txJust = "CenterLeft"
gsn_text_ndc( wks, "monitor.cicsnc.org/mjo", 0.04, 0.05, txRes )
txRes@txJust = "CenterRight"
gsn_text_ndc( wks, "Carl Schreck (cjschrec@ncsu.edu)", 0.75, 0.05, txRes )
txRes@txFontHeightF = 0.007
txRes@txJust = "CenterCenter"
dateString = systemfunc( "date -u +'%a %F %H%M UTC'" )
gsn_text_ndc( wks, dateString, 0.39, 0.05, txRes )
; gsn_text_ndc( wks, "monitor.cicsnc.org/mjo", 0.04, 0.05, txRes )
; txRes@txJust = "CenterRight"
; gsn_text_ndc( wks, "Carl Schreck (cjschrec@ncsu.edu)", 0.75, 0.05, txRes )
; txRes@txFontHeightF = 0.007
; txRes@txJust = "CenterCenter"
; dateString = systemfunc( "date -u +'%a %F %H%M UTC'" )
; gsn_text_ndc( wks, dateString, 0.39, 0.05, txRes )
; txRes@txJust = "CenterCenter"
; contourString = "Low (gray), MJO (black), ER (red), and ~C~" \
......@@ -276,14 +276,41 @@ begin ; main
diagPath = "~/data/energy/model_diag/error_and_vol_11-15.nc"
diagFile = addfile( diagPath, "r" )
ecVol = diagFile->ecVol
ecBias = diagFile->ecBias
ecMae = diagFile->ecMae
gfVol = diagFile->gfVol
gfBias = diagFile->gfBias
gfMae = diagFile->gfMae
xyRes = True
xyRes@xyMarkLineMode = "Lines"
xyRes@trYMinF = min( total&time )
xyRes@trYMaxF = max( total&time )
xyRes@trYReverse = True
xyRes@vpWidthF = 0.3
xyRes@pmLegendDisplayMode = "Never"
xyRes@xyExplicitLabels = (/ "ECMWF", "GEFS" /)
xyRes@gsnCenterString = "Volatility"
xyRes@trXMinF = -5
xyRes@trXMaxF = 5
volPlot = cjs_draw_xy( wks, (/ ecVol, gfVol /), ecVol&time, xyRes )
xyRes@gsnCenterString = "Bias"
xyRes@trXMinF = -10
xyRes@trXMaxF = 10
biasPlot = cjs_draw_xy( wks, (/ ecBias, gfBias /), ecBias&time, xyRes )
xyRes@gsnCenterString = "MAE"
xyRes@trXMinF = -00
xyRes@trXMaxF = 10
xyRes@pmLegendDisplayMode = "Always"
maePlot = cjs_draw_xy( wks, (/ ecMae, gfMae /), ecMae&time, xyRes )
baseRes = True
plotRes = True
http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_attach_plots.shtml
attachRes = True
attached = gsn_attach_plots( plot, (/ volPlot, biasPlot, maePlot /), \
baseRes, attachRes )
draw( plot )
frame( wks )
......@@ -296,12 +323,12 @@ begin ; main
system( "rm -f " + plotPathLocal )
end if
print_clock( "Adding logo" )
cicsLogoPath = "/home/carl/monitor/v2/data/cics-logo.png"
system( "composite -gravity SouthWest -geometry 100x100+010+030 " \
+ cicsLogoPath + " " + plotPathFinal + " " + plotPathFinal )
print_clock( "Reducing File Size" )
system( "convert " + plotPathFinal + " -colors 256 " + plotPathFinal )
; print_clock( "Adding logo" )
; cicsLogoPath = "/home/carl/monitor/v2/data/cics-logo.png"
; system( "composite -gravity SouthWest -geometry 100x100+010+030 " \
; + cicsLogoPath + " " + plotPathFinal + " " + plotPathFinal )
; print_clock( "Reducing File Size" )
; system( "convert " + plotPathFinal + " -colors 256 " + plotPathFinal )
print_clock( "Thank you, come again." )
end; main
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment