gsn_contour_shade question

From: Marc Michelsen <marc_at_nyahnyahspammersnyahnyah>
Date: Tue Jul 23 2013 - 17:11:45 MDT

Hi NCLers,

Are you supposed to be able to set gsnShadeLow and gsnShadeMid in the
same gsn_contour_shade call?
Here's a stripped down version of contour effects example 13:

803 challenger% cat coneff_13.ncl
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"

  f = addfile ("", "r") ; add file
  lat = f->lat ; get latitude
  ind14S= ind(lat.eq.-1.395307) ; subscript index of
  u = f->U(0,:,ind14S,:) ; get u at 1.4S

  wks = gsn_open_wks ("ps", "coneff" )
  res = True
  res@cnLevelSpacingF = 5.0
  res@gsnDraw = False ; We're going to panel later, so don't
  res@gsnFrame = False ; draw or advance frame.
  plot = gsn_csm_pres_hgt(wks, u, res )
  opt = True
  opt@gsnShadeLow = "red"
; opt@gsnShadeMid = "yellow"
  opt@gsnShadeHigh = "yellow"
  plot = gsn_contour_shade(plot, -10.,-5, opt)
804 challenger%

and it produces this plot:

so I would like the current white area to be yellow and the current
yellow area to be white
so I make the follow change (i.e. I use gsnShadeMid rather than

opt@gsnShadeLow = "red"
opt@gsnShadeMid = "yellow"
; opt@gsnShadeHigh = "yellow"

and this is what I get:

No filled colors, no errors or warning messages.
I'm using NCL v 6.1.2
Am I doing something wrong? is this supposed to work?


ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Tue Jul 23 17:12:20 2013

This archive was generated by hypermail 2.1.8 : Thu Jul 25 2013 - 21:02:42 MDT