Re: question about controlling number of streamlines in streamplot

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Mon, 9 Jan 2006 14:57:46 -0700 (MST)

Yes, NCL does have a (sometimes) large number of
resources for assorted plots. Streamlines are no different.

 res@stLineStartStride = 8 ; 2 is the default
An alternative resource that could be used is "stMinDistanceF".
However, I have never used it and can offer no giudance.

  res@stMinDistanceF = 0.035 ; guess
see: [Example 4]

If stMinDistanceF has a positive non-zero value
the stLineStartStride resource is ignored.
[Note: some examples use both ... ignore that].

Use either stLineStartStride or stMinDistanceF

Good luck

X-Virus-Scanned: amavisd-new at
>Hi there,
> I tried to make a streamline plot overlapped with a contour plot
>using NCL (gsn_csm_streamline_contour_map_ce). It turned out the
>streamlines are too dense so I wanna readuce the number of streamlines. I
>tried to use
>res@stMinLevelValF = 0
>res@stMaxLevelValF = 10
>res@stLevelSpacingF = 2
>res@stLevelSelectionMode = "ManualLevels"
> It had no improve at all. Seems all these settings were ignored. I
>also tried to use "AutomaticLevels" and set res@stLevelSpacingF, or
>"EqualSpacedLevels" and set res@stMaxLevelCount. None of them works as I
>expected. So I guess I must miss something here. Anyone has similar
>experience and are willing to help me out? Thanks a lot.
> Xianglei
>Xianglei Huang
>Princeton AOS Postdoctoral Research Associate
>NOAA Geophysical Fluid Dynamics Laboratory
>Princeton University Forrestal Campus
>201 Forrestal Road
>Princeton, NJ 08540

ncl-talk mailing list
Received on Mon Jan 09 2006 - 14:57:46 MST

This archive was generated by hypermail 2.2.0 : Wed Jan 11 2006 - 09:36:37 MST