<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Errors line by line. Starting at the top. </div><div class=""><blockquote type="cite" class=""><div dir="ltr" class=""><div class=""><div class="">warning:wkImageFileName is not a resource in the given object<br class="">warning:wkImageFormat is not a resource in the given object</div></div></div></blockquote></div><div class="">I don’t know what these are and I don’t get them. They haven’t popped up on ncl talk for many years. </div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div dir="ltr" class=""><div class=""><div class="">warning:mpProjection is not a valid resource in test_contour at this time<br class="">warning:mpMinLonF is not a valid resource in test_contour at this time<br class="">warning:mpMaxLonF is not a valid resource in test_contour at this time<br class="">warning:mpMinLatF is not a valid resource in test_contour at this time<br class="">warning:mpMaxLatF is not a valid resource in test_contour at this time<br class="">warning:mpShapeMode is not a valid resource in test_contour at this time<br class="">warning:mpFillOn is not a valid resource in test_contour at this time<br class="">warning:mpOutlineOn is not a valid resource in test_contour at this time<br class="">warning:mpDataBaseVersion is not a valid resource in test_contour at this time</div></div></div></blockquote>You’re passing mp resources to gsn_csm_contour() . As that is no longer a map function it doesn’t understand mp resources. Delete all the lines where res@mp…. and set the below instead. Then pass the new resources to wrf_map() as below. </div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">mpres = True</div><div class=""><div dir="ltr" class=""> mpres@mpFillOn = False <br class=""> mpres@mpMaxLatF = 38.20 ; specify the plot domain<br class=""> mpres@mpMinLatF = 37.75 ; <br class=""> mpres@mpMinLonF = -120.00 ;<br class=""> mpres@mpMaxLonF = -119.10 ;<br class=""> mpres@mpOutlineOn = True ; turn the map outline on<br class=""> mpres@mpProjection = "CylindricalEquidistant" ;The default<br class=""> mpres@pmTickMarkDisplayMode = "Always"<br class=""> mpres@mpDataBaseVersion = "MediumRes"<br class=""> mpres@mpOutlineOn =True<br class=""> mpres@mpShapeMode = “FreeAspect"</div></div><div dir="ltr" class=""><br class=""></div><div class=""><div dir="ltr" class=""> map = wrf_map(wks, a, mpres)</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div dir="ltr" class=""><div class=""><div class="">warning:cnLineOn is not a valid resource in test_contour at this time</div></div></div></blockquote>Still got a typo here. Not sure how you edit these files, but I’d recommend looking at <a href="https://www.ncl.ucar.edu/Applications/editor.shtml" class="">https://www.ncl.ucar.edu/Applications/editor.shtml</a> the coloring will help pick up simple typos. </div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div dir="ltr" class=""><div class=""><div class="">(0) wrf_map_overlay: Warning: This procedure is obsolete. Consider<br class="">(0) using wrf_map_overlays instead.</div></div></div></blockquote>As it says, use wf_map_overlays() instead. Though this still works for me. </div><div class=""><br class=""><blockquote type="cite" class=""><div dir="ltr" class=""> wrf_map_overlay(wrf,map,(/contour,vector/),True)</div></blockquote></div><div class="">You’ve changed wks to wrf here? Not sure why. This causes the main error. </div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Here’s the edited version, with the newer overlay function. I would go through the edits above and then match up to my version. </div><div class=""><br class=""></div><div class=""></div></body></html>