Commit eec8d22e authored by Carl Schreck's avatar Carl Schreck
Browse files

Changed ut_ to cd_ - Wed May 18 00:00:20 EDT 2016

parent 9f068885
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; lib.cjs_graphics.ncl
; Carl Schreck (cjschrec@ncsu.edu)
; April 2014
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright (c) 2010, North Carolina State University
; All rights reserved.
; This work licensed under BSD 3-Clause License. Full terms in LICENSE.txt
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
undef ( "cjs_add_vectors" )
procedure cjs_add_vectors( \
io_wks [1] : graphic , \
io_basePlot [1] : graphic , \
i_uData [*][*] : numeric , \ ; lat x lon
i_vData [*][*] : numeric , \ ; lat x lon
i_vecRes [1] : logical \
)
begin ; cjs_add_vectors
; Customize overlaid vectors
vecRes = True
vecRes@gsnLeftString = ""
vecRes@gsnRightString = ""
vecRes@gsnFrame = False
vecRes@gsnDraw = False
vecRes@vcVectorDrawOrder = "PostDraw"
vecRes@vcRefMagnitudeF = 3
vecRes@vcRefLengthF = 0.025
vecRes@vcMinDistanceF = 0.03
vecRes@vcGlyphStyle = "CurlyVector"
vecRes@vcLineArrowColor = "black"
vecRes@vcLineArrowThicknessF = 2
; ...vector legend
vecRes@vcRefAnnoOn = True
vecRes@vcRefAnnoArrowUseVecColor = False
if( isatt( i_vecRes, "fontHeightF" ) ) then
vecRes@vcRefAnnoFontHeightF := i_vecRes@fontHeightF
else
vecRes@vcRefAnnoFontHeightF := 0.02
end if
vecRes@vcRefAnnoString1 = "$VMG$ m/s"
vecRes@vcRefAnnoString2On = False
vecRes@vcRefAnnoOrthogonalPosF = 0
vecRes@vcRefAnnoZone = 1
vecRes@vcRefAnnoJust = "BottomRight"
if( i_vecRes ) then
copy_VarAtts( i_vecRes, vecRes )
end if
vectPlot = gsn_csm_vector( io_wks, i_uData, i_vData, vecRes )
overlay( io_basePlot, vectPlot )
end ; cjs_add_vectors
......@@ -16,6 +16,9 @@ function cjs_draw_shaded_map( \
)
begin ; cjs_draw_shaded_map
i_data!0 = "lat"
i_data!1 = "lon"
; Customize base plot
res = cjs_shade_defaults( i_data, i_res )
......
......@@ -10,6 +10,7 @@
; cjs_draw_blank_map: Draw a blank map assuming some of my defaults
; cjs_draw_shaded_map: Draw a map of shaded data assuming some of my defaults
; cjs_add_contours: Overlay contours onto an existing plot
; cjs_add_vectors: Overlay vectors onto an existing plot
; cjs_draw_timeseries: Draws a time series with some defaults
; cjs_draw_hist1d: Draws a 1d histogram
; cjs_draw_xy: Draws an xy plot with my defaults
......@@ -49,6 +50,7 @@ load "$CJS_NCL_LIB/cjs_graphics/cjs_draw_shaded_map.ncl"
load "$CJS_NCL_LIB/cjs_graphics/cjs_draw_shaded_hov.ncl"
load "$CJS_NCL_LIB/cjs_graphics/cjs_draw_shaded_vert.ncl"
load "$CJS_NCL_LIB/cjs_graphics/cjs_add_contours.ncl"
load "$CJS_NCL_LIB/cjs_graphics/cjs_add_vectors.ncl"
load "$CJS_NCL_LIB/cjs_graphics/cjs_draw_xy.ncl"
load "$CJS_NCL_LIB/cjs_graphics/cjs_draw_timeseries.ncl"
load "$CJS_NCL_LIB/cjs_graphics/cjs_draw_hist1d.ncl"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment