<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1435050787360_22065">Dear Sir/Madam,</div><div id="yui_3_16_0_1_1435050787360_22031">Kindly guide me to solve this error message. I am trying to plot contour map of surface pressure from CESM data but i am receiving the below error, i tried to figure out the solution but could not. Thank you.<br></div><div id="yui_3_16_0_1_1435050787360_22062"><br></div>ncl 0&gt;&nbsp; dir = "/home/model-user/CESM/" <br style="" class="">ncl 1&gt; filen = "cesmdata/inputdata/atm/cam/ozone/waccm_ozone_c121126.nc"<br style="" class="">ncl 2&gt; f1 = addfile("cesmdata/inputdata/atm/cam/ozone/waccm_ozone_c121126.nc","r")<br style="" class="">ncl 3&gt; load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br style="" class="">ncl 4&gt; load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"<br style="" class="">ncl 5&gt; begin<br style="" class="">ncl 6&gt; vNames = getfilevarnames (f1)<br style="" class="">ncl 7&gt; nNames = dimsizes (vNames)<br style="" class="">ncl 8&gt; print (vNames)<br style="" class="">ncl 9&gt;&nbsp; PS = f1-&gt;PS<br style="" class="">ncl 10&gt; wks = gsn_open_wks("ps","proj")<br style="" class="">ncl 11&gt; gsn_define_colormap(wks,"gui_default")<br style="" class="">ncl 12&gt;&nbsp; res&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True<br style="" class="">ncl 13&gt; res@mpProjection&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = "Mollweide"<br style="" class="">ncl 14&gt; res@mpGridAndLimbOn&nbsp;&nbsp; = True<br style="" class="">ncl 15&gt; res@mpPerimOn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = False<br style="" class="">ncl 16&gt; res@mpGridLatSpacingF = 30.<br style="" class="">ncl 17&gt; res@mpGridLonSpacingF = 30.<br style="" class="">ncl 18&gt; res@mpFillOn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = False<br style="" class="">ncl 19&gt; res@cnFillOn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True<br style="" class="">ncl 20&gt; res@cnLineLabelsOn&nbsp;&nbsp;&nbsp; = False<br style="" class="">ncl 21&gt; res@txFontHeightF&nbsp;&nbsp;&nbsp;&nbsp; = 0.015<br style="" class="">ncl 22&gt; res@vpXF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0.1<br style="" class="">ncl 23&gt; res@vpYF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0.9<br style="" class="">ncl 24&gt; res@vpWidthF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0.8<br style="" class="">ncl 25&gt; res@vpHeightF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0.8<br style="" class="">ncl 26&gt; res@gsnSpreadColors&nbsp;&nbsp;&nbsp;&nbsp; = True<br style="" class="">ncl 27&gt; res@gsnSpreadColorStart = 2<br style="" class="">ncl 28&gt; res@gsnSpreadColorEnd&nbsp;&nbsp; = -3<br style="" class="">ncl 29&gt; res@lbLabelFontHeightF&nbsp; = 0.015<br style="" class="">ncl 30&gt; res@tiMainString&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = "Figure 4"<br style="" class="">ncl 31&gt; res@tiMainFontHeightF&nbsp; = .018<br style="" class="">ncl 32&gt; contour = gsn_csm_contour_map(wks,PS,res)<br style="" class="">ncl 33&gt; end<br style="" class=""><br style="" class=""><br style="" class="">Variable: vNames<br style="" class="">Type: string<br style="" class="">Total Size: 88 bytes<br style="" class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11 values<br style="" class="">Number of Dimensions: 1<br style="" class="">Dimensions and sizes:&nbsp;&nbsp;&nbsp; [11]<br style="" class="">Coordinates: <br style="" class="">(0)&nbsp;&nbsp;&nbsp; O3<br style="" class="">(1)&nbsp;&nbsp;&nbsp; P0<br style="" class="">(2)&nbsp;&nbsp;&nbsp; PS<br style="" class="">(3)&nbsp;&nbsp;&nbsp; date<br style="" class="">(4)&nbsp;&nbsp;&nbsp; datesec<br style="" class="">(5)&nbsp;&nbsp;&nbsp; hyam<br style="" class="">(6)&nbsp;&nbsp;&nbsp; hybm<br style="" class="">(7)&nbsp;&nbsp;&nbsp; lat<br style="" class="">(8)&nbsp;&nbsp;&nbsp; lev<br style="" class="">(9)&nbsp;&nbsp;&nbsp; lon<br style="" class="">(10)&nbsp;&nbsp;&nbsp; time<br style="" class="">(0)&nbsp;&nbsp;&nbsp; gsn_csm_contour_map_other: Fatal: the input data array must be 1D or 2D<br style="" class="">fatal:Illegal right-hand side type for assignment<br style="" class="">fatal:["Execute.c":8126]:Execute: Error occurred at or near line 32<br style="" class=""><br style="" class="">ncl 34&gt; printVarSummary(PS)<br style="" class=""><br style="" class="">Variable: PS<br style="" class="">Type: float<br style="" class="">Total Size: 663552 bytes<br style="" class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 165888 values<br style="" class="">Number of Dimensions: 3<br style="" class="">Dimensions and sizes:&nbsp;&nbsp;&nbsp; [time | 12] x [lat | 96] x [lon | 144]<br style="" class="">Coordinates: <br style="" class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; time: [&nbsp;&nbsp; 1..&nbsp; 12]<br style="" class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lat: [ -90..89.99999999999999]<br style="" class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lon: [&nbsp;&nbsp; 0..357.5]<br style="" class="">Number Of Attributes: 3<br style="" class="">&nbsp; units :&nbsp;&nbsp;&nbsp; Pa<br style="" class="">&nbsp; long_name :&nbsp;&nbsp;&nbsp; Surface pressure<br style="" class="">&nbsp; cell_methods :&nbsp;&nbsp;&nbsp; time: mean<br style="" class="">ncl 35&gt; plot = gsn_csm_contour_map(wks,PS(0,:,:),res)<br style="" class="">ncl 36&gt; contour = gsn_csm_contour_map(wks,PS(0,:,:),res)<br style="" class="">ncl 37&gt; plot = gsn_csm_contour_map(wks,PS(0,:,:),res)&nbsp;&nbsp;&nbsp; <br style="" class="">ncl 38&gt; end<br style="" class="">fatal:syntax error: line 38 before or near end <br style="" class="">end<br style="" class="">--^<br style="" class=""><br style="" class="">fatal:error in statement<br style="" class="">ncl 39&gt; <br style="" class=""><div id="yui_3_16_0_1_1435050787360_22530" dir="ltr"><br></div><div id="yui_3_16_0_1_1435050787360_22537" dir="ltr">Thank you</div><div id="yui_3_16_0_1_1435050787360_22538" dir="ltr"><br></div><div id="yui_3_16_0_1_1435050787360_22539" dir="ltr">Najib Yusuf</div><div id="yui_3_16_0_1_1435050787360_22540" dir="ltr">Centre for Atmospheric Research</div><div id="yui_3_16_0_1_1435050787360_22551" dir="ltr">National Space Research and Development Agency</div><div id="yui_3_16_0_1_1435050787360_22558" dir="ltr">Kogi State University Campus, Anyigba. <br></div><div id="yui_3_16_0_1_1435050787360_22564" dir="ltr">Nigeria. +234 80 38714158<br></div></div></body></html>