Skip to content

Commit

Permalink
more cleaning of TC code to keep folder organized
Browse files Browse the repository at this point in the history
  • Loading branch information
zarzycki committed Oct 26, 2022
1 parent 4daae41 commit 507b652
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 36 deletions.
73 changes: 37 additions & 36 deletions atm_to_cam/tcseed/find-tc-fill-params.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -342,44 +342,45 @@ anlT_anom = anlT(:,0) - anlT(:,dimsizes(mylon)-1)

; ===================PLOTTING==============

; only output the best fit profiles if debug is turned on.
if (debug) then

wks = gsn_open_wks ("png","best_fit_profiles") ; send graphics to PNG file
plot = new(2,graphic) ; create a plot array

res = True ; plot mods desired
res@gsnDraw = False ; don't draw
res@gsnFrame = False ; don't advance frame

res1=res
res2=res
res1@trYReverse = True
res2@trYReverse = True
res1@trXMinF = -10.
res1@trXMaxF = 10.
res1@trYMinF = 100.
res1@trYMaxF = 1010.
res2@trXMinF = res1@trXMinF
res2@trXMaxF = res1@trXMaxF
res2@trYMinF = res1@trYMinF
res2@trYMaxF = res1@trYMaxF
res1@xyLineColor = "red"
plot(0) = gsn_csm_x2y2(wks,anlT_anom,Tavg(:,0),lev,lev,res1,res2)

res3=res
res4=res
res3@trXMinF = 0.
res3@trXMaxF = 900.
res3@trYMinF = 95000.
res3@trYMaxF = 102000.
res4@trXMinF = res3@trXMinF
res4@trXMaxF = res3@trXMaxF
res4@trYMinF = res3@trYMinF
res4@trYMaxF = res3@trYMaxF
res3@xyLineColor = "red"
plot(1) = gsn_csm_x2y2(wks,rad_psl&radius,rad_psl&radius,anlPS,rad_psl,res3,res4)

gsn_panel(wks,plot,(/2,1/),False) ; now draw as one plot
wks = gsn_open_wks ("png","best_fit_profiles") ; send graphics to PNG file
plot = new(2,graphic) ; create a plot array

res = True ; plot mods desired
res@gsnDraw = False ; don't draw
res@gsnFrame = False ; don't advance frame

res1=res
res2=res
res1@trYReverse = True
res2@trYReverse = True
res1@trXMinF = -10.
res1@trXMaxF = 10.
res1@trYMinF = 100.
res1@trYMaxF = 1010.
res2@trXMinF = res1@trXMinF
res2@trXMaxF = res1@trXMaxF
res2@trYMinF = res1@trYMinF
res2@trYMaxF = res1@trYMaxF
res1@xyLineColor = "red"
plot(0) = gsn_csm_x2y2(wks,anlT_anom,Tavg(:,0),lev,lev,res1,res2)

res3=res
res4=res
res3@trXMinF = 0.
res3@trXMaxF = 900.
res3@trYMinF = 95000.
res3@trYMaxF = 102000.
res4@trXMinF = res3@trXMinF
res4@trXMaxF = res3@trXMaxF
res4@trYMinF = res3@trYMinF
res4@trYMaxF = res3@trYMaxF
res3@xyLineColor = "red"
plot(1) = gsn_csm_x2y2(wks,rad_psl&radius,rad_psl&radius,anlPS,rad_psl,res3,res4)

gsn_panel(wks,plot,(/2,1/),False) ; now draw as one plot

end if

Expand Down
3 changes: 3 additions & 0 deletions atm_to_cam/tcseed/tc-seed-driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,7 @@ fi

cd $DRIVER_DIRECTORY ; pwd

# cleanup any BAK files
rm -v ${vortex_namelist}.BAK

exec ./tc-seed-driver.sh "$CONFIG_NAMELIST"

0 comments on commit 507b652

Please sign in to comment.