[ncl-talk] Plot showing No Color

Mohd Noor'Arifin Bin Hj Yussof arifin.yussof at met.gov.bn
Wed Jun 24 04:26:23 MDT 2020


Dear NCL,


I have a problem where my plots are not showing any fill color at all.


Could you please guide me on how I could activate the contour fill colors?


I tested using WRF data with the sample script below and yet no colors showed on my plot.


; Example script - plot terrain (using only basic NCL functions)
; Note no map background info is available
; November 2008
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
begin
a = addfile("./geo_em.d01.nc","r") ; Open a file

type = "x11"
; type = "pdf"
; type = "ps"
; type = "ncgm"
wks = gsn_open_wks(type,"plt_geo_2") ; Create a plot workstation

ter = a->HGT_M(0,:,:) ; Read the variable to memory
res = True ; Create some plot resources
res at cnFillOn = True ; Create a color fill plot
res at gsnSpreadColors = True
plot = gsn_contour(wks,ter,res) ; Create plot
end

?

Output image below:


[cid:26a1ccff-55c5-4b77-8b70-ea435049f4b7]?


Kind Regards,

Arifin Yussof
Meteorological Officer
Officer in Digital Product Support and Numerical Weather Prediction (DSNP),
Strategy and Development Division,
Brunei Darussalam Meteorological Department, Ministry of Transport and Infocommunications

Address: Block B23, Anggerek Desa Flat , Simpang 32-37, Kampung Anggerek Desa, Brunei Darussalam BB3713

Telephone number: (+673) 2381342 ext 233 - Website: http://www.met.gov.bn - Instagram/Facebook: @bruneiweather - Mobile App: Brunei WX

Helping you understand weather better



________________________________
Privileged/Confidential information may be contained in this message. If you are neither the intended recipient and have received this message in error, please delete this message and notify the sender immediately. Strict Prohibition: This message if received in error, whether in part or in whole, should not be reviewed, retained, copied, reused, disclosed, distributed or used for any purpose whatsoever. Such unauthorised use may be unlawful and may contain material protected by the Official Secrets Act (Cap 153) of the Laws of Brunei Darussalam. Disclaimer The Government of His Majesty the Sultan and Yang Di-Pertuan of Brunei Darussalam accepts no responsibility for loss or damage arising from the use of this message. This message shall not operate to bind to any order or contract unless pursuant to an explicit written agreement.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200624/64f3ddca/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedImage.png
Type: image/png
Size: 68979 bytes
Desc: pastedImage.png
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200624/64f3ddca/attachment.png>


More information about the ncl-talk mailing list