Re: setting resource

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Sat Oct 02 2010 - 07:55:51 MDT

Unfortunately, I did not allow much flexibility for the contouring.
However, you can do the following:

[1] Make your own copy of "band_pass_hovmueller_plot"

   [a] vi/emacs/nedit
$NCARG_ROOT/lib/ncarg/nclscripts/csm/diagnostics_cam.ncl

   [b] extract the "band_pass_hovmueller_plot" procedure
       and name the extracted file (say)
            "my_band_pass_hovmueller_plot.ncl"

[2] Edit "my_band_pass_hovmueller_plot.ncl"

   [a] Specifically, after the line

         symMinMaxPlt (x,16,False,resH) ; nice symmetric range

   [b] add the following

         if (isatt(opt,"cnLevelSpacingF")) then
             resH@cnLevelSpacingF = opt@cnLevelSpacingF
         end if

   [c] Save "my_band_pass_hovmueller_plot.ncl"

[3] In you current script, after the line
    load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/diagnostics_cam.ncl"
     Add
    load "./my_band_pass_hovmueller_plot.ncl"

[4] Prior to call using the "band_pass_hovmueller_plot" procedure
     add

     opt@cnLevelSpacingF = .....

[5] continue as you were before

Good luck

----
http://www.ncl.ucar.edu/Document/Functions/Contributed/symMinMaxPlt.shtml
On 10/2/10 3:22 AM, shinn wong wrote:
> Dear ncl users,
> I am using band_pass_hovmueller_plot function but i can neither set the
> contour level nor set other related resources. Does anyone know how to
> do set the various resources by using this function? Thank you.
> Shinn
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sat Oct 2 07:55:55 2010

This archive was generated by hypermail 2.1.8 : Mon Oct 04 2010 - 08:55:54 MDT