<div dir="ltr"><div>Hi Dennis</div><div>As you directed I uploaded both the files
"<a href="http://temp_seltime.nc">temp_seltime.nc</a>" and "<a href="http://EIN5.soilT.0-7cm.JJASmean.1982-2016.remap.nc">EIN5.soilT.0-7cm.JJASmean.1982-2016.remap.nc</a>" at
<a href="http://ftp.cgd.ucar.edu" target="_blank">ftp.cgd.ucar.edu</a></div><div>I would like to request you to have a look and comment where I am doing mistake.</div><div>@Rashed</div><div> As directed by Dennis, the data are now available at
<a href="http://ftp.cgd.ucar.edu">ftp.cgd.ucar.edu</a>. Please have a look with the data and comment.</div><div>Thanking you all.</div><div><br></div><div>Best</div><div>Suman</div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div>++++++++++++++++++++++++++++++++++++++++++</div><div><font size="2">Dr. Suman Maity</font></div><div><font size="2">Research Associate</font></div><div><font size="2">School of Atmospheric Science</font></div><div><font size="2">Sun Yat-sen University, Zhuhai campus,Tangjiawan Town<br></font></div><div><font size="2"> Zhuhai, Guangdong, Postcode-<span>519082,</span>China.</font></div><div><font size="2">Phone:+86-13543861045 (China), +91-9732636778 (India)<br></font></div><div><font size="2">skype: reach2suman</font></div><div><font size="2"><a href="https://www.researchgate.net/profile/Suman_Maity" target="_blank">https://www.researchgate.net/profile/Suman_Maity</a></font></div><span>++++++++++++++++++++++++++++++++++++++++++</span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 24, 2020 at 8:27 PM Dennis Shea <<a href="mailto:shea@ucar.edu">shea@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>Perhaps, you could ftp the two netcdf file "<a href="http://temp_seltime.nc" target="_blank">temp_seltime.nc</a>" and "<a href="http://EIN5.soilT.0-7cm.JJASmean.1982-2016.remap.nc" target="_blank">EIN5.soilT.0-7cm.JJASmean.1982-2016.remap.nc</a>"</div><div><br></div><div>ftp <a href="http://ftp.cgd.ucar.edu" target="_blank">ftp.cgd.ucar.edu</a></div><div>anonymous</div><div>cd incoming</div><div>put <a href="http://temp_seltime.nc" target="_blank">temp_seltime.nc</a></div><div>put <a href="http://EIN5.soilT.0-7cm.JJASmean.1982-2016.remap.nc" target="_blank">EIN5.soilT.0-7cm.JJASmean.1982-2016.remap.nc</a></div><div>quit</div><div><br></div><div>If the EINS file is large, sInce NCL needs only rom the latitude and longitude variables from the EINS file, you could use (say) the netCDF 'ncks' operator<br></div><div><br></div><div>%> <span style="font-family:arial,sans-serif"><font size="+1"><code><a name="m_531207294494040485_example16"><code>ncks -v latitude,longitude EIN5.soilT.0-7cm.JJASmean.1982-2016.remap.nc EINS_latlon.nc</code></a></code></font></span></div><div><br></div><div>and ftp that file<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 23, 2020 at 3:30 PM Rashed Mahmood <<a href="mailto:rashidcomsis@gmail.com" target="_blank">rashidcomsis@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>did you check what the min/max of your data values are?</div><div><br></div><div>printMinMax(xgrid,0)</div><div><br></div><div>What does printVarSummary(xgrid) tell?</div><div><br></div><div>Without data file(s) there is not much people can do to help. You could also try using ESMF regridding:</div><div><a href="http://www.ncl.ucar.edu/Applications/ESMF.shtml" target="_blank">http://www.ncl.ucar.edu/Applications/ESMF.shtml</a></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 23, 2020 at 9:18 PM Dr. Suman Maity via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.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 Dennis</div><div>Thank you for your suggestions. As you mentioned, I modified my script as beow:</div><div>begin<br> a = addfile("<a href="http://EIN5.soilT.0-7cm.JJASmean.1982-2016.remap.nc" target="_blank">EIN5.soilT.0-7cm.JJASmean.1982-2016.remap.nc</a>","r")<br> soil = a->stl1 <br> soil = soil(:,::-1,:) <br> b = addfile("<a href="http://temp_seltime.nc" target="_blank">temp_seltime.nc</a>","r")<br> t = rm_single_dims(b->TSOI(:,0,:,:))<br> lat2d = b->lat<br> lon2d = b->lon<br> xgrd = rcm2rgrid_Wrap(lat2d,lon2d,t,soil&latitude,soil&longitude,0)<br> <br> wks = gsn_open_wks ("x11", "plot")<br> sres = True<br> sres@gsnAddCyclic = False<br> sres@mpMinLatF = 5<br> sres@mpMaxLatF = 40<br> sres@mpMinLonF = 65<br> sres@mpMaxLonF = 100<br> sres@cnFillOn = True<br> sres@mpFillOn = False<br> sres@cnLevelSelectionMode = "ManualLevels"<br> sres@cnMinLevelValF = 280.<br> sres@cnMaxLevelValF = 320.<br> sres@cnLevelSpacingF = 10<br> plot = gsn_csm_contour_map(wks,xgrd,sres)</div><div>end</div><div>But unfortunately, all the efforts goes to vain and the plot remains same as observed earlier. Is there any other issue? Please comment.</div><div>Thanking you,</div><div><br></div><div>Best</div><div>Suman</div><div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div>++++++++++++++++++++++++++++++++++++++++++</div><div><font size="2">Dr. Suman Maity</font></div><div><font size="2">Research Associate</font></div><div><font size="2">School of Atmospheric Science</font></div><div><font size="2">Sun Yat-sen University, Zhuhai campus,Tangjiawan Town<br></font></div><div><font size="2"> Zhuhai, Guangdong, Postcode-<span>519082,</span>China.</font></div><div><font size="2">Phone:+86-13543861045 (China), +91-9732636778 (India)<br></font></div><div><font size="2">skype: reach2suman</font></div><div><font size="2"><a href="https://www.researchgate.net/profile/Suman_Maity" target="_blank">https://www.researchgate.net/profile/Suman_Maity</a></font></div><span>++++++++++++++++++++++++++++++++++++++++++</span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 23, 2020 at 11:02 PM Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank">shea@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><a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/rcm2rgrid_Wrap.shtml" target="_blank"><b>http://www.ncl.ucar.edu/Document/Functions/Contributed/rcm2rgrid_Wrap.shtml</b></a></div><div><br></div><div>and <a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/rcm2rgrid.shtml" target="_blank"><b>rcm2rgrid</b></a> require that the destination (rectilinear) grid have the coordinates (lat[*] and lon[*]) in <b>ascending order</b>.</div><div><br></div><div>You rectilinear grid looks like it is in descending order: <b>latitude: [49.5..-19.5]</b></div><div><b><br></b></div><div><b>f = addfile("<a href="http://EIN5.soilT.0-7cm.JJASmean.1982-2016.remap.nc" target="_blank">EIN5.soilT.0-7cm.JJASmean.1982-2016.remap.nc</a>","r")</b></div><div><b>x = f->SOIL</b></div><div><b>printVarSummary(x)</b></div><div><b>print("========")<br></b></div><div><b><br></b></div><div><b>x = x(::-1,:) <br></b></div><div><b>printVarSummary(x)</b></div><div><div><b>print("========")</b></div></div><div><pre> xgrd = <strong>rcm2rgrid</strong>(lat2d,lon2d,<span style="color:rgb(0,0,255)"><b>x,x&lat,x&lon</b></span>,0)</pre></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 23, 2020 at 9:32 AM Dr. Suman Maity via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.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 Barry</div><div>Thanks for your prompt reply. As you mentioned, here are the details:</div><div> See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br>(0) ============Before Interpolation===========<br>Variable: t<br>Type: float<br>Total Size: 265960 bytes<br> 66490 values<br>Number of Dimensions: 2<br>Dimensions and sizes: [218] x [305]<br>Coordinates: <br>Number Of Attributes: 6<br> _FillValue : 1e+36<br> time : 287808<br> levgrnd : 0.007100635417193535<br> long_name : soil temperature (vegetated landunits only)<br> units : K<br> cell_method : time: mean<br>(0) ============After Interpolation===========<br>Variable: xgrd<br>Type: float<br>Total Size: 52080 bytes<br> 13020 values<br>Number of Dimensions: 2<br>Dimensions and sizes: [latitude | 93] x [longitude | 140]<br>Coordinates: <br> latitude: [49.5..-19.5]<br> longitude: [20.25..124.5]<br>Number Of Attributes: 7<br> _FillValue : 1e+36<br> time : 287808<br> levgrnd : 0.007100635417193535<br> long_name : soil temperature (vegetated landunits only)<br> units : K<br> cell_method : time: mean<br> ncl : rcm2rgrid used for interpolation<br>[suman@localhost ght]$</div><div>Please reply if you need further information. I am unable to share the data as ncl community allow only 2 MB.</div><div>Thanking you once again.</div><div><br></div><div>Best</div><div>Suman</div><div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div>++++++++++++++++++++++++++++++++++++++++++</div><div><font size="2">Dr. Suman Maity</font></div><div><font size="2">Research Associate</font></div><div><font size="2">School of Atmospheric Science</font></div><div><font size="2">Sun Yat-sen University, Zhuhai campus,Tangjiawan Town<br></font></div><div><font size="2"> Zhuhai, Guangdong, Postcode-<span>519082,</span>China.</font></div><div><font size="2">Phone:+86-13543861045 (China), +91-9732636778 (India)<br></font></div><div><font size="2">skype: reach2suman</font></div><div><font size="2"><a href="https://www.researchgate.net/profile/Suman_Maity" target="_blank">https://www.researchgate.net/profile/Suman_Maity</a></font></div><span>++++++++++++++++++++++++++++++++++++++++++</span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 23, 2020 at 8:48 PM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@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">Hello Dr. Suman Maity:<div><br></div><div>It would be helpful if you could attach printouts from your interpolation, as well as printVarSummary output of variables you are using and/or calculating during the interpolation.</div><div><br></div><div>Barry</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 23, 2020 at 5:58 PM Dr. Suman Maity via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.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 All</div><div>I am facing an issue from "rcm2rgrid" which is mentioned below:</div><div>I have two netcdf file "<a href="http://temp_seltime.nc" target="_blank">temp_seltime.nc</a>" and "<a href="http://EIN5.soilT.0-7cm.JJASmean.1982-2016.remap.nc" target="_blank">EIN5.soilT.0-7cm.JJASmean.1982-2016.remap.nc</a>" and I want to interpolate "<a href="http://temp_seltime.nc" target="_blank">temp_seltime.nc</a>" to the lon/lat of
"<a href="http://EIN5.soilT.0-7cm.JJASmean.1982-2016.remap.nc" target="_blank">EIN5.soilT.0-7cm.JJASmean.1982-2016.remap.nc</a>" for evaluation. Now "
<a href="http://temp_seltime.nc" target="_blank">temp_seltime.nc</a>"
is an curviliear data with lat and lon information in 2D and the lat2D
and lon2D contains some missing points. On the otherhand,
"<a href="http://EIN5.soilT.0-7cm.JJASmean.1982-2016.remap.nc" target="_blank">EIN5.soilT.0-7cm.JJASmean.1982-2016.remap.nc</a>"
is a normal netdf file (rectilinear grid). Although interpolation
doesn't through any error but the resultant plot is blank. I couldn't
understand where I did the mistake? Please scripts and plots
as attached.<div>Any sort of suggestion/comments are highly appreciable.</div><div>Best</div><div>Suman</div></div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div>++++++++++++++++++++++++++++++++++++++++++</div><div><font size="2">Dr. Suman Maity</font></div><div><font size="2">Research Associate</font></div><div><font size="2">School of Atmospheric Science</font></div><div><font size="2">Sun Yat-sen University, Zhuhai campus,Tangjiawan Town<br></font></div><div><font size="2"> Zhuhai, Guangdong, Postcode-<span>519082,</span>China.</font></div><div><font size="2">Phone:+86-13543861045 (China), +91-9732636778 (India)<br></font></div><div><font size="2">skype: reach2suman</font></div><div><font size="2"><a href="https://www.researchgate.net/profile/Suman_Maity" target="_blank">https://www.researchgate.net/profile/Suman_Maity</a></font></div><span>++++++++++++++++++++++++++++++++++++++++++</span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><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>
</blockquote></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>
</blockquote></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>
</blockquote></div>
</blockquote></div>