[ncl-talk] Weird expressions from the use of font table

Ravi, Vikram vikram.ravi at email.wsu.edu
Mon Sep 1 14:52:54 MDT 2014


Hi,

I am trying to plot a map based on some model outputs (netCDF file). The image produced is attached. I want to write the following for the left side string below the image title:
C100%, Avg ≥ 12 μg/m3
In the output image I just get the highlighted portion followed by some weird expression as seen in the image.

When I run the ncl code, it writes the following message:
PLCHHQ - CHARACTER NUMBER 34 (m) IS NOT A LEGAL FUNCTION CODE
PLCHHQ - CHARACTER NUMBER 40 (g) IS NOT A LEGAL FUNCTION CODE
PLCHHQ - CHARACTER NUMBER 41 (/) IS NOT A LEGAL FUNCTION CODE
PLCHHQ - CHARACTER NUMBER 42 (m) IS NOT A LEGAL FUNCTION CODE
PLCHHQ - CHARACTER NUMBER 34 (m) IS NOT A LEGAL FUNCTION CODE
…… + many more repetition of this message.

The relevant portion of the code is :
   ; Load some libraries:
   load "/home/lar/opt/ncl-6.0.0/gcc-4.1.2/lib/ncarg/nclscripts/csm/gsn_code.ncl"
   load "/home/lar/opt/ncl-6.0.0/gcc-4.1.2/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
   load "/home/lar/opt/ncl-6.0.0/gcc-4.1.2/lib/ncarg/nclscripts/csm/contributed.ncl"

    ; description of what is going to be plotted
     vardesc = "PM~B~2.5~N~"
      units  = "% change";
      leftunits = "~F8~m~F21~g/m~S~3~N~"

                 res at tiMainString = "~F3~D~F21~ C ~B~(100% case - 30% case)~N~"
               ; label description of the variable on the top left and right of the plot
                 res at gsnLeftString   = "C~B~100%, Avg~N~ ~F34~3~12"+leftunits
                 res at gsnRightString  = vardesc

Any idea what is going wrong? The .hluresfile is set up properly since when I run some other codes, I can see  expressions like 12 μg/m3 on the image.

Thank you for any help.

Best,
Vikram

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140901/ea31d4b2/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PM25_Fire_030-Fire_100.png
Type: image/png
Size: 68676 bytes
Desc: PM25_Fire_030-Fire_100.png
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140901/ea31d4b2/attachment.png 


More information about the ncl-talk mailing list