NCL Home> Application examples> gsn_csm graphical interfaces || Data files for examples

Streamlines

Streamline Plot Templates

gsn_csm_streamline_map_ce

gsn_csm_streamline_map_polar

gsn_csm_streamline

gsn_csm_streamline_contour_map_ce

gsn_csm_streamline_contour_map_polar

gsn_csm_pres_hgt_streamline
stream_1.ncl: Default black and white plot.

gsn_csm_streamline_map_ce is the plot interface that draws streamlines on a cylindrical equidistant projection.
stream_2.ncl: Zooms in on a subregion and blows up the streamlines

stArrowLengthF = 0.004, Changes the size of the arrows

stMinArrowSpacingF = 0.004, Changes the arrow spacing

stArrowStride = 3, indicates that arrows are placed every third grid point. The default is 2.
stream_3.ncl: Zooms in on a subregion and blows up the streamlines.

stLineThicknessF = 1.5, Changes the line thickness

stLineColor = "orange",changes the streamline color
stream_4.ncl: Example of a polar streamline plot.

gsn_csm_streamline_map_polar is the plot interface that draws a streamline plot over a polar plot.

stArrowLengthF = 0.008, controls the length of the directional arrows. The default is dynamic.
stLengthCheckCount = 15, controls how frequently a new streamline is started. The value is in terms of an internal NCL loop that calculates new starts. The default is 35.
stArrowStride = 1, Controls in which grid cells an arrow head is draw. The default is every other grid cell.
stLineStartStride = 1, Controls which grid points are allowed to start new streamlines. The default is 2, which is every other grid cell.
stMinArrowSpacingF = 0.035, controls the distance between drawn arrows. The default is 0.0, which could draw arrows right on top of each other.
stStepSizeF= 0.001, Controls the basic step size used to create the streamline. The default is dynamic.

The following two resources on the ones that you will really have to tweak depending upon the field you are plotting.

stMinDistanceF = 0.03
stMinLineSpacingF = 0.007,Controls the minimum distance between drawn streamlines. The default is dynamic.
stream_5.ncl: Example of a streamline plot draw without a map.

gsn_csm_streamline is the plot interface that draws a streamline plot without a map.
stream_6.ncl: Example of a streamline plot drawn over a contour plot with a map

gsn_csm_streamline_contour_map_ce is the plot interface that draws a streamline plot over a contour plot.
stream_7.ncl: Example of a streamline plot drawn over a contour plot on a polar projection.

gsn_csm_streamline_contour_map_polar is the plot interface that draws a streamline plot over a contour plot with a polar projection.
stream_8.ncl: Example of a streamline plot drawn over a pressure/height plot.

gsn_csm_pres_hgt_streamline (available since NCL version 4.2.0.a012)
is the plot interface that draws a streamline plot over a press/height plot.