Plot just Australia using NCL

Just a note to myself on plotting data over Australia using NCL with only the coastal lines for Australia shown, using the low-res map:

; Plot data only over Australia (including Tasmania) using the default
; low-res database. Based on maponly_8.ncl from the NCL website.
;
; Carlo Hamalainen 2012-06-13

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"

begin

  wks  = gsn_open_wks("png","maponly")

  res                           = True
  res@mpOutlineOn               = True
  res@mpFillOn                  = False

  res@mpOutlineBoundarySets     = "NoBoundaries"
  res@mpDataBaseVersion         = "LowRes"

  res@mpMinLatF = -60
  res@mpMaxLatF = 0
  res@mpMinLonF = 100
  res@mpMaxLonF = 165

  res@mpOutlineSpecifiers = (/"Australia", "Australia-Tasmania"/)
  plot = gsn_csm_map_ce(wks,res)
end

Output:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s