<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}
-->
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;">Just figured it out. I need "res@gsnFrame = False" to stop advancing frame automatically. -Jianfu<br>
<br>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF750543"><font color="#000000" face="Tahoma" size="2"><b>From:</b> ncl-talk-bounces@ucar.edu [ncl-talk-bounces@ucar.edu] on behalf of Pan, Jianfu (GSFC-423.0)[COLUMBUS TECHNOLOGIES AND SERVICES INC] [jianfu.pan@nasa.gov]<br>
<b>Sent:</b> Friday, June 26, 2015 3:44 PM<br>
<b>To:</b> ncl-talk@ucar.edu<br>
<b>Subject:</b> [ncl-talk] Problem overlaying markers to blank map<br>
</font><br>
</div>
<div></div>
<div>
<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>
</div>
</div>
</div>
</body>
</html>