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

Automated Nightly Commit - Sat Dec 20 00:03:03 EST 2014

parent 4a2cf55b
...@@ -18,7 +18,7 @@ load "$CJS_NCL_LIB/lib.cjs_graphics.ncl" ...@@ -18,7 +18,7 @@ load "$CJS_NCL_LIB/lib.cjs_graphics.ncl"
load "$CJS_NCL_LIB/lib.array.ncl" load "$CJS_NCL_LIB/lib.array.ncl"
load "$CJS_NCL_LIB/lib.percentiles.ncl" load "$CJS_NCL_LIB/lib.percentiles.ncl"
load "$CJS_NCL_LIB/print_clock.ncl" load "$CJS_NCL_LIB/print_clock.ncl"
load "/home/carl/projects/olr_cdr/sub.calc_meanvar.ncl" load "/home/carl/projects/olr_cdr/compare/sub.calc_meanvar.ncl"
begin ; main begin ; main
...@@ -29,6 +29,7 @@ begin ; main ...@@ -29,6 +29,7 @@ begin ; main
plotDpi = 200 plotDpi = 200
totalNotAnom = False totalNotAnom = False
showDiff = False
if( .not.isvar("varName") ) then if( .not.isvar("varName") ) then
varName = "olr" varName = "olr"
end if end if
...@@ -41,6 +42,8 @@ begin ; main ...@@ -41,6 +42,8 @@ begin ; main
end if end if
minLat = -30 minLat = -30
maxLat = 30 maxLat = 30
minLon = 0
maxLon = 180
timeUnits = "days since 1800-01-01 00:00:00" timeUnits = "days since 1800-01-01 00:00:00"
plotTime = cd_inv_calendar( 2011, 11, 27, 00, 0, 0, timeUnits, 0 ) plotTime = cd_inv_calendar( 2011, 11, 27, 00, 0, 0, timeUnits, 0 )
...@@ -78,6 +81,7 @@ begin ; main ...@@ -78,6 +81,7 @@ begin ; main
; Customize base plot ; Customize base plot
res = True res = True
res@lbOrientation = "Horizontal" res@lbOrientation = "Horizontal"
res@lbLabelBarOn = showDiff
res@cnLevelSelectionMode = "ManualLevels" res@cnLevelSelectionMode = "ManualLevels"
res@gsnMajorLonSpacing = 45 res@gsnMajorLonSpacing = 45
res@gsnMinorLonSpacing = 15 res@gsnMinorLonSpacing = 15
...@@ -85,6 +89,8 @@ begin ; main ...@@ -85,6 +89,8 @@ begin ; main
res@gsnRightString = cd_string( plotTime, "%d %c %Y" ) res@gsnRightString = cd_string( plotTime, "%d %c %Y" )
res@mpMinLatF = minLat res@mpMinLatF = minLat
res@mpMaxLatF = maxLat res@mpMaxLatF = maxLat
res@mpMinLonF = minLon
res@mpMaxLonF = maxLon
totalRes = res totalRes = res
if( totalNotAnom ) then if( totalNotAnom ) then
...@@ -113,7 +119,12 @@ begin ; main ...@@ -113,7 +119,12 @@ begin ; main
panRes = True panRes = True
panRes@gsnPanelRowSpec = False panRes@gsnPanelRowSpec = False
panRes@gsnPanelCenter = True panRes@gsnPanelCenter = True
panRes@gsnPanelBottom = 0.05
panRes@gsnPanelYWhiteSpacePercent = 5 panRes@gsnPanelYWhiteSpacePercent = 5
panRes@gsnPanelLabelBar = .not.showDiff
panRes@lbTitleString = hirsData@units
panRes@lbTitlePosition = "Right"
panRes@lbTitleDirection = "Across"
print_clock( "Drawing the plot" ) print_clock( "Drawing the plot" )
...@@ -166,7 +177,11 @@ begin ; main ...@@ -166,7 +177,11 @@ begin ; main
end do end do
end do end do
gsn_panel( wks, plots, (/ nPlots, 1 /), panRes ) if( showDiff ) then
gsn_panel( wks, plots, (/ nPlots, 1 /), panRes )
else
gsn_panel( wks, plots(:nPlots-2), (/ nPlots-1, 1 /), panRes )
end if
print_clock( "Convert the image, if necessary" ) print_clock( "Convert the image, if necessary" )
delete(wks) delete(wks)
......
Supports Markdown
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