map contour lat/long labels

From: Nick Guy <nick.guy_at_nyahnyahspammersnyahnyah>
Date: Mon May 06 2013 - 09:57:36 MDT

Hi all,

I am contouring data onto a cylindrical map projection using the gun_csm_contour_map_ce function. I would like to adjust the the lat and lon labels to tenths of a degree, but it seems that only whole numbers are allowed (e.g. mpGridLatSpacingF)? Is there a way to label sub-degree?
My 'dBZ' data has coordinate variables with units "degrees_north" and "degrees_east" for lat and lon, respectively.
My plotting code is below.
;==================================================
...
    resHor=True
    resHor@gsnDraw=False
    resHor@gsnFrame=False
    resHor@tiXAxisFontHeightF=.015
    resHor@tiYAxisFontHeightF=.015
    resHor@gsnLeftString=mms+"/"+dds+"/"+yys ; Make own label
    resHor@gsnLeftStringFontHeightF=.023 ; Shrink the font size
    resHor@gsnRightString=t_start+"-"+t_end+" UTC" ; Make own label
    resHor@gsnRightStringFontHeightF=.023 ;Shrink the font size
    resHor@gsnSpreadColors=False ; True=Use the full range of colormap

    resHor@cnFillOn=True ; Turn on color
    resHor@cnLinesOn=False ; Turn off contour lines
    resHor@cnLineLabelsOn=False ; Turn off line labels
    resHor@cnInfoLabelOn=False ; Turn of contour label info
    resHor@cnLevelSelectionMode="ExplicitLevels" ; User defined levels
    resHor@cnLevels=clevs_dBZ ; Set contour levels

    resHor@lbLabelBarOn=False ; Turn off label bar and plot just 1 for panel
    resHor@mpLimitMode="LatLon"
    resHor@gsnAddCyclic=False
    resHor@mpMinLonF=min(XLon)-(.05*(abs(max(XLon)-min(XLon))))
    resHor@mpMaxLonF=max(XLon)+(.05*(abs(max(XLon)-min(XLon))))
    resHor@mpMinLatF=min(YLat)-(.05*(abs(max(YLat)-min(YLat))))
    resHor@mpMaxLatF=max(YLat)+(.05*(abs(max(YLat)-min(YLat))))
    resHor@mpGridLonSpacingF=1. ; Can't get less than 1 degree??
    resHor@mpGridLatSpacingF=1.

    panID(ii)=gsn_csm_contour_map_ce(wks,dBZ(Zind,:,:),resHor)
;====================================================
Thanks!

Nick Guy, Ph.D.
NOAA National Severe Storms Laboratory
NOAA/NSSL/WRDD
120 David L. Boren Blvd.
Norman, OK 73072
(405)325-6287
nick.guy@noaa.gov

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon May 6 09:57:48 2013

This archive was generated by hypermail 2.1.8 : Tue May 07 2013 - 08:38:33 MDT