[Thread Prev][Thread Next][Index]

[ferret_users] Including contour lines in the shaded plot



Hi,

I like to include contour lines in the shaded plot. I tried doing this
but then the color bar

disappeared from the plot. The script I am using is given below.
Please give me your

advise to solve this problem.

Thanks,
Sudev
=======================================================
!******************************************************************************
!  Defining the limits for 4 subplots.
!*******************************************************************************
!Defining the limits for the subplots.
define view/axes/xlimits=0.07,0.50/ylimits=.6,.95 v11
define view/axes/xlimits=0.53,0.96/ylimits=.6,.95 v12
define view/axes/xlimits=0.07,0.50/ylimits=.2,.55 v21
define view/axes/xlimits=0.53,0.96/ylimits=.2,.55 v22

use climatology_monthly_tempt.nc

!------------------------------------------------------------
!Defining the levels that we want to show in the color bar.
define symbol t_levels = (-inf)(19,30,1)(inf)
!------------------------------------------------------------

! Draw 4 months of plots. Set the contour levels on the first one, and
then use /LEV
! to reuse the same levels on other plots.

!------------------------------------------------------------
ppl axlabp,-1,-1 ! Label on x and y-axis,

set view v11; contour/line/fill/lev=($t_levels)/K=1/L=1/nokey/nolab temp
go fland
! Make a label above each plot with the month.
label/nouser `($ppl$xlen)/2`, `($ppl$ylen)-0.2`,0,0,0.12,"(a) January"
!------------------------------------------------------------

ppl axlabp,-1,0 ! Label x-axis on the bottom
set v v12; contour/line/fill/lev=($t_levels)/k=1/l=4/nokey/nolab temp
go fland
label/nouser `($ppl$xlen)/2`, `($ppl$ylen)-0.2`,0,0,0.12,"(b) April"
!------------------------------------------------------------

! This plot will include the color key. It's drawn using SHAKEY settings.

ppl axlabp,-1,-1 ! Label x-axis on the bottom, y-axis, on the left

set v v21; contour/line/fill/lev=($t_levels)/k=1/l=7/nolab temp
ppl shakey 1 0 .12 1 3 9 1.9 11.85 0.35 0.65
ppl fill/contour/line

go fland
label/nouser `($ppl$xlen)/2`, `($ppl$ylen)-0.2`,0,0,0.12,"(c) July"
label/nouser `($ppl$xlen)/0.97`, `($ppl$ylen)-4.6`,0,0,0.20,"Longitude"
label/nouser -0.65,4.0,-1,90,0.22,"Latitude"
!------------------------------------------------------------
ppl axlabp,-1,0 ! Label x-axis on the bottom

set v v22; contour/line/fill/lev=($t_levels)/k=1/l=10/nokey/nolab temp
go fland
label/nouser `($ppl$xlen)/2`, `($ppl$ylen)-0.2`,0,0,0.12,"(d) October"
!------------------------------------------------------------
set view full
plot/nolab/noaxes/color=white/sym/i=1:2 i

label/nouser `($ppl$xlen)/2`,7.1,0,0,0.16, Climatology TEMP (Deg C)
=============================================


[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement