Bugs in gsn_csm_map

From: wuhui <pop122344_at_nyahnyahspammersnyahnyah>
Date: Tue Sep 17 2013 - 10:06:13 MDT

Hi all,

        I may find two minor bugs in gsn_csm_map. A simple script has
        been attached to show the details.
        
        BUG1: Output is still portrait, although "wkOrientation" and
        "gsnMaximize" have been set.
        BUG2: No Ocean is included, a thin white line appears along the
        diagonal.
        
        The NCL used is a pre-compiled binary of version 6.1.0.
        
        I wonder if they have been fixed or not in the latest version?
        
        Have a nice day!
        
Hui Wu
        
        

;--------------------------------------------------------------------
; Loading libraries
;--------------------------------------------------------------------
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"

begin
  ;--------------------------------------------------------------------
  ; Just to show the bug in gsn_csm_map
  ;--------------------------------------------------------------------

  wks_type = "pdf" ;---BUG1: Output is still portrait, although "wkOrientation" and "gsnMaximize" have been set.
  wks_type@wkOrientation = "landscape"
  wks = gsn_open_wks(wks_type, "bug_test")

  ;---Set up some map resources.
  mpres = True
  mpres@gsnMaximize = True
  mpres@gsnFrame = False
  mpres@gsnDraw = False
  
  ;---Zoom in.
  mpres@mpMinLatF = 23.;22.5 ;---BUG2: No Ocean is included, a thin white line appears along the diagonal.
  mpres@mpMaxLatF = 40.
  mpres@mpMinLonF = 80.
  mpres@mpMaxLonF = 110.
  
  mpres@mpFillColors = (/"transparent", "transparent", "gray", "transparent"/)

  mpres@tiMainString = ""

  map = gsn_csm_map(wks, mpres)

  draw(map)
  frame(wks)

end

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Sep 17 10:06:35 2013

This archive was generated by hypermail 2.1.8 : Wed Sep 18 2013 - 17:07:30 MDT