[ncl-talk] Weird expressions from the use of font table
Ruth Lorenz
r.lorenz at unsw.edu.au
Mon Sep 1 17:03:45 MDT 2014
Hi Vikram,
I think after your ≥ (~F34~3) you need to go back to your normal font (F21) for the number 12 and the following stuff -> "C~B~100%, Avg~N~ ~F34~3~F21~12"+leftunits
Cheers,
--
Ruth Lorenz
ARC Centre of Excellence for Climate System Science
University of New South Wales
Sydney, NSW 2052, Australia
r.lorenz at unsw.edu.au<mailto:r.lorenz at unsw.edu.au>
On 02/09/2014, at 6:52 AM, "Ravi, Vikram" <vikram.ravi at email.wsu.edu<mailto:vikram.ravi at email.wsu.edu>>
wrote:
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
<PM25_Fire_030-Fire_100.png>_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140901/52093c52/attachment.html
More information about the ncl-talk
mailing list