NCL users,
Below is an NCL script. Could one please help to modify it, so the "grid line"
only covers the area outside of the state? (i.e. mask out the grid line in state
area)
Thanks a lot.
Mark
;-------------------------ncl script----------------------------------------
load "$NCARG_ROOT/lib/ncarg/nclex/gsun/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclex/gsun/gsn_csm.ncl"
wks = gsn_open_wks("x11","grid_line_test")
res = True
res@pmTickMarkDisplayMode = "Always"
begin
res@mpMinLonF = -103.5
res@mpMaxLonF = -94.
res@mpMinLatF = 33.
res@mpMaxLatF = 38.
res@mpOutlineOn = True
res@mpOutlineBoundarySets = "GeophysicalAndUSStates"
res@mpGeophysicalLineThicknessF = 1.5
res@mpUSStateLineThicknessF=1.5
res@mpDataBaseVersion = "Ncarg4_1"
res@mpDataSetName = "Earth..2"
res@mpOutlineSpecifiers = (/"Land","Oklahoma:counties","water"/)
res@mpUSStateLineColor = "Blue"
res@mpNationalLineColor = "brown"
res@mpGeophysicalLineColor= "Blue"
;--- for grid line -----------
res@mpGridAndLimbOn = True
res@mpGridLineDashPattern = 2
res@mpGridLineDashSegLenF = 0.09
res@mpGridSpacingF = 1.0
; res@mpGridMaskMode = "MaskLand" ; Mask grid lines over land.
plot = gsn_csm_map_ce(wks,res)
end
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sat Mar 26 19:43:29 2011
This archive was generated by hypermail 2.1.8 : Mon Mar 28 2011 - 08:51:50 MDT