[ncl-talk] Question about tick mark labels

Barry Lynn barry.h.lynn at gmail.com
Fri Dec 2 05:13:04 MST 2022


Hello:

I am wondering how to get latitude longitude tickmarks to display on my
map, attached.

I am plotting using:

gsn_csm_contour_map(wks,precip,res)

Perhaps these are the wrong type of commands for this map?  You can see at
the bottom that the labels are set up correctly.

  res at tmXBMode                = "Explicit"

  dimsX = dimsizes(x_span)

  nx    = dimsX

  res at tmXBValues              = fspan(0,dims2d(0),nx)

  res at tmXBLabels              := sprintf("%.1f",x_span)  ; Create labels

  print("res at tmXBValues" + res at tmXBValues)

  print("res at tmXBLabels" + res at tmXBLabels)

  res at tmXBLabelFontHeightF    = 0.055



(6) -92.20481

(0) res at tmXBValues0

(1) res at tmXBValues99.8333

(2) res at tmXBValues199.667

(3) res at tmXBValues299.5

(4) res at tmXBValues399.333

(5) res at tmXBValues499.167

(6) res at tmXBValues599

(0) res at tmXBLabels-105.8

(1) res at tmXBLabels-103.5

(2) res at tmXBLabels-101.3

(3) res at tmXBLabels-99.0

(4) res at tmXBLabels-96.7

(5) res at tmXBLabels-94.5

(6) res at tmXBLabels-92.2
-- 

Barry H. Lynn, Ph.D
Senior Scientist, Lecturer,
The Institute of Earth Sciences,
The Hebrew University of Jerusalem,
Givat Ram, Jerusalem 91904, Israel
Tel: 972 547 231 170
Fax: (972)-25662581

Weather It Is, LTD
Weather and Climate Focus
https://weather-it-is.com <http://weather-it-is.com>
Jerusalem, Israel
Local: 02 930 9525
Cell: 054 7 231 170
Int-IS: x972 2 930 9525
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20221202/2b13aa99/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rcm.pdf
Type: application/pdf
Size: 82690 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20221202/2b13aa99/attachment-0001.pdf>


More information about the ncl-talk mailing list