<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> dir = "/home/model-user/CESM/" <br style="" class="">ncl 1> filen = "cesmdata/inputdata/atm/cam/ozone/waccm_ozone_c121126.nc"<br style="" class="">ncl 2> f1 = addfile("cesmdata/inputdata/atm/cam/ozone/waccm_ozone_c121126.nc","r")<br style="" class="">ncl 3> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br style="" class="">ncl 4> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"<br style="" class="">ncl 5> begin<br style="" class="">ncl 6> vNames = getfilevarnames (f1)<br style="" class="">ncl 7> nNames = dimsizes (vNames)<br style="" class="">ncl 8> print (vNames)<br style="" class="">ncl 9> PS = f1->PS<br style="" class="">ncl 10> wks = gsn_open_wks("ps","proj")<br style="" class="">ncl 11> gsn_define_colormap(wks,"gui_default")<br style="" class="">ncl 12> res = True<br style="" class="">ncl 13> res@mpProjection = "Mollweide"<br style="" class="">ncl 14> res@mpGridAndLimbOn = True<br style="" class="">ncl 15> res@mpPerimOn = False<br style="" class="">ncl 16> res@mpGridLatSpacingF = 30.<br style="" class="">ncl 17> res@mpGridLonSpacingF = 30.<br style="" class="">ncl 18> res@mpFillOn = False<br style="" class="">ncl 19> res@cnFillOn = True<br style="" class="">ncl 20> res@cnLineLabelsOn = False<br style="" class="">ncl 21> res@txFontHeightF = 0.015<br style="" class="">ncl 22> res@vpXF = 0.1<br style="" class="">ncl 23> res@vpYF = 0.9<br style="" class="">ncl 24> res@vpWidthF = 0.8<br style="" class="">ncl 25> res@vpHeightF = 0.8<br style="" class="">ncl 26> res@gsnSpreadColors = True<br style="" class="">ncl 27> res@gsnSpreadColorStart = 2<br style="" class="">ncl 28> res@gsnSpreadColorEnd = -3<br style="" class="">ncl 29> res@lbLabelFontHeightF = 0.015<br style="" class="">ncl 30> res@tiMainString = "Figure 4"<br style="" class="">ncl 31> res@tiMainFontHeightF = .018<br style="" class="">ncl 32> contour = gsn_csm_contour_map(wks,PS,res)<br style="" class="">ncl 33> 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=""> 11 values<br style="" class="">Number of Dimensions: 1<br style="" class="">Dimensions and sizes: [11]<br style="" class="">Coordinates: <br style="" class="">(0) O3<br style="" class="">(1) P0<br style="" class="">(2) PS<br style="" class="">(3) date<br style="" class="">(4) datesec<br style="" class="">(5) hyam<br style="" class="">(6) hybm<br style="" class="">(7) lat<br style="" class="">(8) lev<br style="" class="">(9) lon<br style="" class="">(10) time<br style="" class="">(0) 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> 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=""> 165888 values<br style="" class="">Number of Dimensions: 3<br style="" class="">Dimensions and sizes: [time | 12] x [lat | 96] x [lon | 144]<br style="" class="">Coordinates: <br style="" class=""> time: [ 1.. 12]<br style="" class=""> lat: [ -90..89.99999999999999]<br style="" class=""> lon: [ 0..357.5]<br style="" class="">Number Of Attributes: 3<br style="" class=""> units : Pa<br style="" class=""> long_name : Surface pressure<br style="" class=""> cell_methods : time: mean<br style="" class="">ncl 35> plot = gsn_csm_contour_map(wks,PS(0,:,:),res)<br style="" class="">ncl 36> contour = gsn_csm_contour_map(wks,PS(0,:,:),res)<br style="" class="">ncl 37> plot = gsn_csm_contour_map(wks,PS(0,:,:),res) <br style="" class="">ncl 38> 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> <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>