load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" begin shapefile_name = "gadm36_SEN_0.shp" wks = gsn_open_wks("x11","demo_map") ; Open X11 window for graphics res = True ; Set some plot options res@gsnMaximize = True ; maximize plot in frame ;zoom in on senegal res@mpMinLatF = 12.30785942 res@mpMaxLatF = 16.69207191 res@mpMinLonF = -17.54318619 res@mpMaxLonF = -11.34247017 res@mpDataBaseVersion = "MediumRes" ; "LowRes", "HighRes" res@tiMainString = shapefile_name ; Main title ;create the map plot = gsn_csm_map(wks,res) set up resources for shapefile outlines lnres = True ; Set some line options lnres@gsLineThicknessF = 2.0 ; default is 1.0 lnres@gsLineColor = "NavyBlue" ; default is black ; lnres@gsLineDashPattern = 2 ; default is 0 (solid) id = gsn_add_shapefile_polylines(wks,plot,shapefile_name,lnres) draw(plot) frame(wks) end