warning question

From: Matt Fearon (matthew.fearon AT XXXXXX)
Date: Thu Jul 26 2001 - 14:54:10 MDT

  • Next message: Maurice: "re: mask"

    Dear NCL users:

    I keep receiving the following warning messages;

    warning:_NhlSetValues:wkOrientation does not have "S" access
    warning:_NhlSetValues:wkDeviceLowerX does not have "S" access
    warning:_NhlSetValues:wkDeviceLowerY does not have "S" access
    warning:_NhlSetValues:wkDeviceUpperX does not have "S" access
    warning:_NhlSetValues:wkDeviceUpperY does not have "S" access

    These seem to occur when I try to set the wkOrientation. My
    output images do not seem to be maximizing. What might these
    warnings being suggesting. Seems to be related to the plot
    maximizing.

    I attach a portion of my script below. Any suggestions would be
    greatly appreciated.

    Thank you,
    Matt

    begin

     itime="20Sept1999"

     wks_type = "ps"
     wks_type@wkOrientation = "landscape"

     wks = gsn_open_wks (wks_type, "scatter")

     plot=new(3,graphic)

    ; cmap = RGBtoCmap("flux.colors.txt")
    ; gsn_define_colormap(wks,cmap)
     gsn_define_colormap(wks,"gui_default")

     res = True
     res@gsnFrame = False
     res@gsnDraw = False

     res@trXMinF = 0
     res@trXMaxF = 200.
     res@trYMinF = 0.
     res@trYMaxF = 200.

     res@xyMonoMarkLineMode = True
     res@xyMarkLineMode = (/"Markers"/) ; choose which have
    markers
     res@xyMarker = (/16/) ; choose type of marker

     res@xyMarkerColor = (/"red"/) ; Marker color
     res@xyMarkerSizeF = 0.005

     res@tiYAxisString = "COAMPS" ; y-axis label
     res@tiXAxisString = "Observed"; x-axis label

    ;*** COAMPS
     res@tiMainString = cc1
     plot(0) = gsn_csm_xy (wks,spdat(:,0,1),cmodpdat,res)
     ployline0 = gsn_add_polyline(wks,plot(0),(/0,200/),(/0,200/),False)

    ;*** COAMPS SLAB
     res@tiMainString = cc2
     res@tiYAxisString = "COAMPS Slab" ; y-axis label

     plot(1) = gsn_csm_xy (wks,spdat(:,0,1),cmodorigslab,res)
     ployline1 = gsn_add_polyline(wks,plot(1),(/0,200/),(/0,200/),False)

    ;*** COAMPS SLAB FFT
     res@tiMainString = cc3
     res@tiYAxisString = "COAMPS Slab FFT" ; y-axis label

     plot(2) = gsn_csm_xy (wks,spdat(:,0,1),cmodfftslab,res)
     ployline2 = gsn_add_polyline(wks,plot(2),(/0,200/),(/0,200/),False)

     resP = True
     resP@gsnMaximize = True
     resP@gsnFrame = False
     resP@gsnPanelTop = 0.96
     resP@gsnPanelLeft = 0.03
     resP@gsnPanelRight = 0.97
     resP@gsnPanelYWhiteSpacePercent = 1
     resP@gsnPanelXWhiteSpacePercent = 2

     gsn_panel(wks,plot,(/1,3/),resP)

     txres = True
     txres@txAngleF = 0
     txres@txFontHeightF = 0.015
     gsn_text_ndc(wks,itime,0.52,0.965,txres)
     gsn_text_ndc(wks,"Tauc=0 Tauf=0",0.52,0.93,txres)

     frame(wks)

    end



    This archive was generated by hypermail 2b29 : Thu Jul 26 2001 - 14:05:53 MDT