<div dir="ltr"><div>Dear NCL users,</div><div>Getting warning message while trying to plot the variable.</div><div><br></div><div>"Warning: Data either does not contain a valid latitude coordinate array or doesn't contain one at all."</div><div>My script is as follows:</div><div>load "/usr/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br>load "/usr/lib/ncarg/nclscripts/csm/gsn_csm.ncl"<br> begin<br>   netCDF=True<br>   plot=True<br> diri="./"<br>;==============================================================<br> fn1="3A-DAY.20161231.V06A.HDF5"<br> printVarSummary(fn1)<br> lev=fspan(0.25,20,80)<br> lon=fspan(-180,180,720)<br> lat=fspan(-67,67,268)<br> lat@long_name = "latitude"<br> lon@long_name = "longitude"<br> lat@units = "degrees_north"<br> lon@units = "degrees_east"<br>;-------------------------------------------------------------------<br> f= addfile(fn1, "r")<br> ;g=f->Grid<br> QR1 = "/Grid/LHCndMean"<br> QR=f->$QR1$<br> QR!0="nlayer"<br> QR!1="nlon"<br> QR!2="nlat"<br> QR&nlayer=lev<br> QR&nlon=lon<br> QR&nlat=lat<br> QR&nlat@units="degrees_north"<br> QR&nlon@units="degrees_east"<br> printVarSummary(QR&nlat)<br> printVarSummary(QR&nlon)<br>;-------------------------------------------------------------------<br> wks   = gsn_open_wks ("png","QR")<br> gsn_define_colormap(wks,"rainbow")<br><br>res                  = True<br>res@gsnMaximize      = True<br>res@cnFillOn         = True<br>res@cnLinesOn        = False<br>res@cnLineLabelsOn   = False<br>res@gsnSpreadColors  = True<br>res@gsnAddCyclic     = False<br>  res@mpMinLatF = min(QR&nlat)<br>  res@mpMaxLatF = max(QR&nlat)<br>  res@mpMinLonF = min(QR&nlon)<br>  res@mpMaxLonF = max(QR&nlon)<br>plot = gsn_csm_contour_map(wks,QR(0,:,:),res)<br> end</div><div><br></div><div><br></div><div>Any help in this issue will be appreciated.</div><div>Thanks in advance,</div><div>Ipsita<br></div></div>