[ncl-talk] wind vector query

Alessandra Giannini alesall at iri.columbia.edu
Fri May 22 12:24:58 MDT 2015


use

gsn_csm_vector_map

instead of 

gsn_csm_vector





-- 
Alessandra Giannini
IRI for Climate and Society - The Earth Institute at Columbia University
P.O. Box 1000, Palisades NY 10964-8000
phone/fax: +1 845 680-4473/4864 - email: alesall at iri.columbia.edu

On May 22, 2015, at 1:58 AM, Kunal Bali <kunal.bali9 at gmail.com> wrote:

> Dear NCL users i plotted the wind vector data but map is generated without country boundaries. please see attached figure.
> 
> How to draw country lines ??  
> 
> 
> 
> ;----------------------------------------------------------------------
> 
> load "/usr/local/lib/ncl/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> load "/usr/local/lib/ncl/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
> load "/usr/local/lib/ncl/lib/ncarg/nclscripts/csm/shea_util.ncl"
> 
> begin
> ;---Read data 
>   a   = addfile("/home/kunal/Pictures/NCL_Scripts/plot/mar_wind.nc","r")
> 
> ;---Read in zonal [u] and meridional [v] winds 
>    u = a->U(:,:)
>    v = a->V(:,:)   
>    
>  ; lat = a->u&lat
>  ; lon = a->u&lon
> 
> ;---Create plot
>   wks_type = "pdf"                       
>   wks_type at wkPaperSize = "A4"
>   wks = gsn_open_wks(wks_type, "mar_wind")
> 
>  ; cmap = read_colormap_file("BlAqGrYeOrReVi200")
> 
>   res = True
>   res at vcMinFracLengthF = 1.0                 ;-- length of min vector as ;-- fraction of reference vector
>   res at vcRefMagnitudeF  = 3.0                 ;-- make vectors larger
>   res at vcRefLengthF     = 0.045               ;-- ref vec length
>   res at vcGlyphStyle     = "CurlyVector"       ;-- turn on curly vectors
>   res at vcMinDistanceF   = 0.01             ;-- thin out vectors
>  ; res at tiMainString     = "March_Wind"
>   res at vcMonoLineArrowColor  = False 
> 
>   plot=gsn_csm_vector(wks,u,v,res)  ; create plot
> 
> 
> end
> 
> 
> 
> 
> 
> 
> Kunal Bali
> <wind12.pdf>_______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk



More information about the ncl-talk mailing list