load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" nsta = 10 latN = 60.0 latS = 25.0 lonL = -125. lonR = -75. lat = random_uniform(latS, latN, nsta) lon = random_uniform(lonL, lonR, nsta) wks = gsn_open_wks("x11","locations") res = True res@gsnFrame = False ; So we can draw markers res@gsnMaximize = True ; affects ps, eps, pdf only res@pmTickMarkDisplayMode = "Always" res@mpMinLatF = latS ; range to zoom in on res@mpMaxLatF = latN res@mpMinLonF = lonL res@mpMaxLonF = lonR res@mpCenterLonF = (lonL+lonR)*0.5 res@mpFillOn = False res@mpOutlineDrawOrder = "PostDraw" res@mpFillDrawOrder = "PreDraw" res@mpOutlineBoundarySets = "GeophysicalAndUSStates" res@mpUSStateLineColor = "Gray10" res@mpUSStateLineDashPattern = 2 ; ; Draw the map (frame won't get advanced because gsnFrame was set to False). ; map = gsn_csm_map(wks,res) ; ; Draw markers on the plot in the lat/lon locations. ; mkres = True mkres@gsMarkerIndex = 17 ; Filled circle mkres@gsMarkerSizeF = 0.03 gsn_polymarker(wks,map,lon,lat,mkres) frame(wks) ; Now advance the frame.