<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Two issues:</div><div><br></div><div>[1] NARR data (nominally) span -180 to 180. The specified rectilinear destination grid spanned all positive values<br></div><div><br></div><div> nlat = 337<br> nlon = 831<br> lat = fspan(1.0, 85.0 ,nlat)<br> lon = fspan( <b>150.0,358.5</b> ,nlon) ; all > 0</div><div><br></div><div>;----FIX: adjust the NARR longitudes to be all positive<br></div><div> lat2d = sfile->lat ; (:,:) <br> lon2d = sfile->lon ; (:,:)<br> lon2d = <b>where</b>(lon2d.lt.0, lon2d+360, lon2d) ; nominally: 0-360<br><br></div><div>[2] These netCDF NARR data files have 2 different attributes to specify missing/Fill values</div><div><br></div><div> uwnd:missing_value = -9.96921e+36f ;<br> uwnd:_FillValue = 9.96921e+36f ;</div><div><br></div><div>;---print missing/fill information<br></div><div> nmiss = <b>num</b>(var.eq.var@missing_value) <br> nfill = <b>num</b>(<b>ismissing</b>(var))<br> print("nmiss="+nmiss+" nfill="+nfill)</div><div><br></div><div>;---Fix conflicting missing_value and _FillValue<br> var = <b>where</b>(var.eq.var@missing_value, var@_FillValue, var)<br> nmiss = <b>num</b>(var.eq.var@missing_value)<br> nfill = <b>num(ismissing</b>(var))<br> print("nmiss="+nmiss+" nfill="+nfill)<br> print("---")<br></div><div><br></div><div>D<br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Sep 29, 2018 at 12:31 AM Samar Minallah <<a href="mailto:minallah@umich.edu" target="_blank">minallah@umich.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="color:#073763">Hello,</div><div class="gmail_default" style="color:#073763"><br></div><div class="gmail_default" style="color:#073763">I am battling with NARR regridding and creating comparison plots. I have regridded the NARR data using available scripts (have attached my scripts to produce weight files and the regridded netcdf+comparison plots).</div><div class="gmail_default" style="color:#073763"><br></div><div class="gmail_default" style="color:#073763">I am unable to plot the original and regridded variables correctly and cannot seem to identify where it is going wrong (I have attached the output image).<br></div><div class="gmail_default" style="color:#073763"><br></div><div class="gmail_default" style="color:#073763">Can anyone please assist with this issue. <br></div><div class="gmail_default" style="color:#073763"><br></div><div class="gmail_default" style="color:#073763">Thank you<br></div><div class="gmail_default" style="color:#073763"><div><img src="cid:ii_jmn1u2nr0" alt="ESMF_wgts_test.png" width="537" height="537"><br></div></div><div class="gmail_default" style="color:#073763"><br></div><div class="gmail_default" style="color:#073763"><br clear="all"></div><div><div dir="ltr" class="m_-7835514089992088450m_3305866598824338338m_9163203606882860085gmail_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><div><div><div><div><br><span style="color:rgb(153,153,153)"><font size="2"><span style="font-family:courier new,monospace">--<br></span></font></span></div><span style="color:rgb(153,153,153)"><span style="font-family:monospace,monospace"><font size="2">Samar </font><span><div><br></div></span></span></span></div><div><div><div><br></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@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><br>
</blockquote></div></div>