Re: unknown diagonal white line on gsn_csm_map plot

From: Rick Brownrigg <brownrig_at_nyahnyahspammersnyahnyah>
Date: Tue Dec 18 2012 - 13:57:15 MST

That's interesting -- it shows up in every output format we support. I don't know why at the moment, but am checking in to it…

Rick

On Dec 18, 2012, at 12:43 PM, Ronny Berndt <ronny.berndt@uni-jena.de> wrote:

> Hi,
>
> why is there a diagonal white line from the lower left corner to upper right?
> How can I prevent this?
>
> ncl-script:
>
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
>
> begin
>
> wks_type = "png"
> wks_name = "latlines"
> wks = gsn_open_wks(wks_type, wks_name) ; Open a workstation.
>
> res = True
> res@gsnFrame = False ; Don't draw or advance
> res@gsnDraw = False ; frame yet.
> res@gsnMaximize = True
>
>
> ;---This will be our base, so make it a map plot.
> ;res@tfDoNDCOverlay = False
> ;res@gsnAddCyclic = False
> res@mpProjection = "CylindricalEquidistant" ; Projection
> res@mpOutlineOn = True
> res@mpDataBaseVersion = "MediumRes"
> res@mpOutlineBoundarySets = "AllBoundaries"
> ;res@mpOutlineBoundarySets = "National" ; country borders
> res@mpNationalLineThicknessF = 2.0
> res@mpLimitMode ="LatLon"
> res@mpMinLatF = -21.87
> res@mpMaxLatF = -11.09
> res@mpMinLonF = 14.21
> res@mpMaxLonF = 25.87
>
> Map = gsn_csm_map(wks, res)
>
> pres = True ; polyline mods desired
> pres@gsLineThicknessF = 2.0 ; line thickness
> pres@gsLineColor = "blue" ; color of lines
>
> val = gsn_add_polyline(wks,Map,(/14.21,25.87/),(/-12.63,-12.63/),pres)
>
> draw(Map)
> frame(wks)
>
> ;delete(res)
>
> ;make high density png with imagemagick
> ;delete(wks)
>
> options = "mogrify -strip -trim -geometry 1000x1000 -density 300 -units pixelsperinch " + wks_name + ".png"
> ;system(options)
>
> end
> _______________________________________________
> 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 Tue Dec 18 13:57:24 2012

This archive was generated by hypermail 2.1.8 : Fri Dec 21 2012 - 10:43:23 MST