Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

NCL cnFillOn strange problem

This post was from a previous version of the WRF&MPAS-A Support Forum. New replies have been disabled and if you have follow up questions related to this post, then please start a new thread from the forum home page.

stefano04

New member
Hi,
I'm new on WRF. Today i've finished my first run and all went good. When i try to plot the data, they are displayed only if they are vector or line, but they aren't showed when they are color. I think that is a res@cnFillOn problem or some setting in .hluresfile. I attach here the ncl script, the .hluresfile and the final plot. Sorry for the stupid question but i'm new on this.
View attachment wrf_demo_plot_slp.pdf
.hluresfile

*wkColorMap: BlAqGrYeOrReVi200
*wkBackgroundColor: white
*wkForegroundColor: black
*FuncCode: ~
*TextFuncCode: ~
*Font : helvetica
*wkWidth: 900
*wkHeight: 900

ncl script
begin
a = addfile("wrfout_d01_2020-06-09_15:00:00","r")
slp= wrf_user_getvar(a,"slp",0) ; Sea-level-pressure(hPa)
wks= gsn_open_wks("pdf","wrf_demo_plot_slp")
res = True
res@cnFillOn = True
contour = wrf_contour(a,wks,slp,res)
plot = wrf_map_overlays(a,wks,contour,False,False)
end
 
I've risolved this problem but i have another question: how can i put on the plot the state and province border? Thank you very much fort the patient but it's the first time for me
 
This example page has many examples of how to plot borders:

https://www.ncl.ucar.edu/Applications/mapoutlines.shtml
 
Top