[ncl-talk] removing/changing options in pressure/precipitation plots

Juan Carlos Anduckia janducki at yahoo.com
Wed Apr 18 21:59:00 MDT 2018


Hello:

I'd like to remove/change the following features in the attached pressure and precipitation plots:
In the former, how to remove the legend "Contours: 1009 to 1015 by 0"?
In the latter, how to change in the color bar ".1" and ".4" and put instead  "0.1" and "0.4"?
Thank you.


 ; Plotting options for SLP shades
       opts = res
       opts at cnFillOn = True
    ;  opts at cnFillColors = "BlueWhite"
    ;  opts at cnFillPalette = "BlueWhite"
       opts at FieldTitle= " "
    ;  opts at ContourParameters = (/900.,1050.,2./)
       opts at gsnSpreadColorEnd = -3
       gsn_define_colormap(wks,"WhiteBlue")
       contour_psl1 = wrf_contour(e1,wks,slp,opts)
       delete(opts)
    ; Plotting options for SLP Contours
      opts = res
      opts at cnLineColor = "Grey25"
      opts at cnHighLabelsOn = True
      opts at cnHighLabelPerimOn = False
      opts at cnHighLabelFontColor = "Blue"
      opts at cnLowLabelsOn = True
      opts at cnLowLabelFontColor = "Red"
      opts at FieldTitle = " "
   ;  opts at ContourParameters = (/ 900., 1050., 2. /)
      opts at cnLineLabelBackgroundColor = -1
      opts at gsnContourLineThicknessesScale = 1.0
      contour_psl2 = wrf_contour(e1,wks,slp,opts)
      delete(opts)
      plot = wrf_map_overlays(e1,wks,(/contour_psl1,contour_psl2/),pltres,mpres)


; Plotting options for Precipitation
        opts_r = res
      ; opts_r at UnitLabel            = "mm"
        opts_r at cnLevelSelectionMode = "ExplicitLevels"
        opts_r at cnLevels             = (/ 0.1, 0.2, 0.4, 0.8, 1.6, 3.2, 6.4, \
                                        12.8, 25.6, 51.2, 102.4/)
        opts_r at cnFillColors         = (/"White","White","DarkOliveGreen1", \
                                        "DarkOliveGreen3","Chartreuse", \
                                        "Chartreuse3","Green","ForestGreen", \
                                        "Yellow","Orange","Red","Violet"/)
        opts_r at cnInfoLabelOn        = False
        opts_r at cnConstFLabelOn      = False
        opts_r at cnFillOn             = True
        contour_tot = wrf_contour(e1,wks, rain_tot, opts_r)
        contour_tend = wrf_contour(e1,wks, rain_tot_tend,opts_r) ; total (color)
        contour_res = wrf_contour(e1,wks,rain_exp_tend,opts_r)   ; exp (color)
        opts_r at cnFillOn = False
        opts_r at cnLineColor = "Red4"
        contour_prm = wrf_contour(e1,wks,rain_con_tend,opts_r)   ; con (red lines)
        delete(opts_r)
     ;  plot = wrf_map_overlays(e1,wks,contour_tot,pltres,mpres)
        plot = wrf_map_overlays(e1,wks,(/contour_tend,contour_psl/),pltres,mpres)
     ;  plot = wrf_map_overlays(e1,wks,(/contour_res,contour_prm/),pltres,mpres)







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180419/d948c3e6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: presion.png
Type: image/png
Size: 228605 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180419/d948c3e6/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: precipitacion.png
Type: image/png
Size: 149474 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180419/d948c3e6/attachment-0003.png>


More information about the ncl-talk mailing list