<div dir="ltr">Hi Kelly,<div><br></div><div>Full disclaimer, I'm not a regridding expert, but I'm pretty sure that the curvilinear_to_SCRIP function wants latitude and longitude coordinates for your grid points, and I think this might be where things are going wrong. Your GLAT and GLON variables are in radians. Try converting the radians to degrees and see if that works, since I don't see that conversion happening in your script.</div><div><br></div><div>Hope this helps,</div><div><br></div><div>Bill</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 1, 2019 at 12:14 PM Kelly Mahoney - NOAA Federal <<a href="mailto:kelly.mahoney@noaa.gov">kelly.mahoney@noaa.gov</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 dir="ltr"><div dir="ltr"><div dir="ltr">Hello, <div><br></div><div>We are stuck with a problem trying to use existing ncl code (using esmf regridding) for wrf output that is missing some critical information, and I'm hoping someone might have advice on the best/quickest workaround: </div><div><br></div><div>The data in question are produced from an older version of WRF-NMM, and are evidently missing coordinate attributes and perhaps also the vertical coordinate. [Although - in the end we actually only need 2D/surface data so perhaps the vertical coordinate issue won't be a show-stopper?]</div><div><br></div><div>A sample of the wrfout in question can be found here: </div><div><a href="ftp://ftp.cdc.noaa.gov/pub/Public/kmahoney/NWM_PR/wrfout_d01_2019-03-15_18-00-00.nc" target="_blank">ftp://ftp.cdc.noaa.gov/pub/Public/kmahoney/NWM_PR/wrfout_d01_2019-03-15_18-00-00.nc</a><br></div><div><br></div><div>and the sample codes that we're ultimately trying to use are here: </div><div><a href="ftp://ftp.cdc.noaa.gov/pub/Public/kmahoney/NWM_PR/HRRR2WRFHydro_generate_weights.ncl" target="_blank">ftp://ftp.cdc.noaa.gov/pub/Public/kmahoney/NWM_PR/HRRR2WRFHydro_generate_weights.ncl</a>  (this is Step 1 to generate the weights needed...this runs without stated errors but ultimately doesn't actually generate the weights needed by Step 2, which is here:<br></div><div><a href="ftp://ftp.cdc.noaa.gov/pub/Public/kmahoney/NWM_PR/HRRR2WRFHydro_regrid.ncl" target="_blank">ftp://ftp.cdc.noaa.gov/pub/Public/kmahoney/NWM_PR/HRRR2WRFHydro_regrid.ncl</a> ) <br></div><div><br></div><div>I am far out of my comfort zone in the details of netcdf files and all the various tools (nco? ncl? ncml?) to potentially manipulate them into something recognizable by standard ncl/esmf functions. </div><div><br></div><div>Thanks in advance for any experience or advice someone might be able to offer! </div><div><br></div><div>Kelly Mahoney</div><div><br></div><div><br></div><div><br></div><div><br></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>