<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">NCL experts,<br>
<br>
I'm new to ncl. I have one-dimensional arrays of lat and lon. I'm trying to plot the locations as markers in red to see the coverage on map. My result only shows the blank map. If I call frame(wks) (see snippet below), I got two png files as output, one
shows the blank map and the other shows the marked region. How can I overlay the markers to the blank map?<br>
<br>
-------------------------------------------------------------------------------------------<br>
wks = gsn_open_wks ("png", "ncl.png") ; open workstation<br>
gsn_define_colormap(wks, "WhViBlGrYeOrRe") ; choose colormap<br>
nc1 = NhlNewColor(wks,.8,.8,.8) ; Add light gray to colormap for continents<br>
...<br>
res = True ; plot mods desired<br>
res@gsnMaximize = True ; maxmize plot in frame<br>
res@mpDataBaseVersion = "MediumRes" ; use finer database<br>
res@mpOutlineBoundarySets = "National"<br>
map = gsn_csm_map(wks,res)<br>
<br>
gsres = True<br>
gsres@gsMarkerIndex = 16 ; Use filled dots for markers<br>
gsres@gsMarkerSizeF = 5.0 ; select size to avoid streaking<br>
gsres@gsMarkerColor = (/"red"/) ; Marker color<br>
gsn_polymarker(wks, map, lon, lat, gsres)<br>
<br>
; Call this will produce two png files<br>
frame(wks)<br>
----------------------------------------------------------------------------------------------<br>
<br>
Regards,<br>
Jianfu Pan<br>
</div>
</body>
</html>