[ncl-talk] Unable to overlay
Geeta Geeta
geetag54 at yahoo.com
Wed Jul 11 10:55:48 MDT 2018
Hi.
I need 3 variables in one plot. these are wind speed (shaded contours), wind vectors and specific humidity (Q_flt).
I am able to overlay two but the third one does not get overlaid. I have tried the function gsn_csm_contour_overlay
Can U pls help me. attaching my code; ---------------Plot the wind speed Filled Contours and Specific humidity
base(deltaT) = gsn_csm_contour_map(wks,wndspd,res)
plot_q(deltaT) = gsn_csm_contour_map(wks,Q_flt(deltaT,lev,:,:),resq)
; tried both with gsn_csm_contour and gsn_csm_contour_map
india_id(deltaT) = gsn_add_shapefile_polylines(wks,base(deltaT),IND_shape_fname,shpres)
; overlay(base(deltaT),plot_q(deltaT))
DCC_WCC = storms_file
TSTR_DCC_WCC = asciiread(DCC_WCC,-1,"string")
print(TSTR_DCC_WCC)
LATC_DCC_WCC = stringtofloat(str_get_field(TSTR_DCC_WCC,1,delim))
LONC_DCC_WCC = stringtofloat(str_get_field(TSTR_DCC_WCC,2,delim))
add_DCC_WCC(deltaT) = gsn_add_polymarker(wks,base(deltaT),LONC_DCC_WCC,LATC_DCC_WCC,RES_MARK_DCC_WCC)
;:::: Vector wind ::::::::
plot(deltaT) = gsn_csm_vector(wks,U_flt(deltaT,lev,:,:),V_flt(deltaT,lev,:,:),res_vc)
overlay(base(deltaT),plot(deltaT))
draw(base)
frame(wks)
end do
panelres = True
gsn_panel(wks,base,(/2,2/),True)
Geeta.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180711/fa4d266e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecmf.2010-03-27.ua.nc.0.000003.png
Type: image/png
Size: 155584 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180711/fa4d266e/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecmf.v5.ua.ncl
Type: application/octet-stream
Size: 8301 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180711/fa4d266e/attachment-0001.obj>
More information about the ncl-talk
mailing list