<div dir="ltr">Hi:<div><br></div><div>Are you missing two lines?</div><div><br></div><div>





<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">  </span><b>radar&lat<span class="gmail-Apple-converted-space">  </span>= latitude ; these are the latitude values</b></span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><b><span class="gmail-Apple-converted-space">  </span>radar&lon<span class="gmail-Apple-converted-space">  </span>= longitude ; these are the longitude values</b></span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">  </span>radar&lat@units = "</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">degre</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">es_north"</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">  </span>radar&lon@units = "</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">degre</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">es_east"</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">If you printVarSummary a variable that you know maps okay, you can infer which values might be missing. I did this in order to map radar data that had no attributes attached. </span></p></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 8, 2020 at 4:16 PM Rick Brownrigg via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Unfortunately, I am unable to open this file. My version of NCL complains about mismatched headers/libraries, which would be an issue on my part. I'll have to wait until tomorrow when I have access to a different version of NCL.  That said, the various HDF5 command-line utilities I have installed also say they can not open the file (???)</div><div><br></div><div>In the meantime, perhaps someone else can take a crack at it....</div><div><br></div><div>Rick</div><div><br></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 7, 2020 at 10:13 PM Ipsita Putatunda <<a href="mailto:ipsita.putatunda@gmail.com" target="_blank">ipsita.putatunda@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div>I think the length of the array "lat" is corresponding the dimension of the variable. But am not sure where exactly I am making mistake to plot the variable.</div><div>For your reference I have sent my file  (3A-DAY.GPM.DPR.GPM-SLH.20161231-S000000-E235959.366.V06A.HDF5) through ftp in <a href="http://ftp.cgd.ucar.edu" target="_blank">ftp.cgd.ucar.edu</a>.</div><div><br></div><div>Thanks in advance,</div><div>Ipsita<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 8, 2020 at 10:01 AM Rick Brownrigg <<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>Offhand, it looks like you are constructing the coordinate arrays properly. I notice you calculate the lat coordinate array with this statement:</div><div><br></div><div>    lat=fspan(-67,67,268)</div><div><br></div><div>Are you certain the length of this array lines up with the corresponding dimension of the variable QR?</div><div><br></div><div>HTH...Rick</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 7, 2020 at 10:58 AM Ipsita Putatunda via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>
</blockquote></div>
</blockquote></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Associate Scientist, Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br><br></div></div></div></div></div>