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

Ravi, Vikram vikram.ravi at email.wsu.edu
Mon Sep 1 20:05:28 MDT 2014


Hi Ruth,

Thank you for the reply. Not returning to the normal font caused the problem. Now its solved.

Best
Vikram

------
Vikram Ravi
Graduate Student - Lab. for Atmospheric Research
Department of Civil & Environmental Engineering
Washington State University
www.lar.wsu.edu/<http://www.lar.wsu.edu/>

________________________________
From: Ruth Lorenz <r.lorenz at unsw.edu.au>
Sent: Monday, September 1, 2014 4:03:45 PM
To: Ravi, Vikram
Cc: ncl-talk at ucar.edu
Subject: Re: [ncl-talk] Weird expressions from the use of font table

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/20140902/74af3fce/attachment.html 


More information about the ncl-talk mailing list