names of countries on map?

From: Erik Noble <nobleeu_at_nyahnyahspammersnyahnyah>
Date: Fri, 24 Nov 2006 15:47:03 -0700

Dear NCL world

Could I have some help with putting the names of countries on a map.

I have figured out how to use the maponly commands to create a map of
west Africa and the borders of the countries within that region. I
would like to show that names of those countries as well.

How do you do this?
If it involves the commands below, how do you use them correctly?
 res_at_mpDataBaseVersion = "Ncarg4_1"
 res_at_mpDataSetName = "Earth..3"

Thank you,
Erik Noble

; ***********************************************
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
;************************************************
begin

 wks = gsn_open_wks("x11","west_Africa_large_imge-1") ; open an output file
;************************************************
; create default plot
;***********************************************

 gsn_define_colormap(wks,"BlAqGrYeOrRe") ; choose colormap

 res = True ; plot mods desired
 res_at_mpFillOn = False ; turn off gray fill
 res_at_cnFillOn = False ; turn on color fill
 res_at_mpDataBaseVersion = "Ncarg4_1"
 res_at_mpDataSetName = "Earth..3"

 res_at_cnLinesOn = True ;turn off contour lines

 res_at_mpOutlineBoundarySets = "AllBoundaries" ; turn on country
boundaries
 res_at_pmTickMarkDisplayMode = "Always"

 res_at_mpGeophysicalLineColor = "Black" ; color of cont. outlines
 res_at_mpGeophysicalLineThicknessF = 1.5 ; thickness of outlines

 res_at_mpMaxLatF = 35 ;west Africa region
 res_at_mpMinLatF = 5
 res_at_mpMaxLonF = 35
 res_at_mpMinLonF = -35

res_at_tiMainString = "Region of Interest, West Africa, 20S-35N,
35W-35E"; add title
 plot = gsn_csm_map_ce(wks,res)

 end
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Nov 24 2006 - 15:47:03 MST

This archive was generated by hypermail 2.2.0 : Tue Nov 28 2006 - 15:20:59 MST