<div dir="ltr"><div dir="ltr"><div>Brandon, attached is a PRISM to Netcdf translator which includes a high accuracy generator for the 1-D source grid coordinates.  Please see how this is done in the section "Write lat and lon coordinates".</div><div><br></div><div>The latitudes are reversed to South to North for my final product, so you would need to either reverse the latitudes or the data grids to align them correctly.  Lower down in this example, you can see where I am flipping the data grids to South to North.</div><div><br></div><div>If you follow this example, you will end up with grids with standard 1-D lat and lon coordinate variables, which should be accepted by ESMF.</div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 8, 2020 at 3:00 PM Brandon Fisel 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-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hello,</div><div><br></div><div>I am following the PRISM example (<a href="https://www.ncl.ucar.edu/Applications/Scripts/prism_1.ncl" target="_blank">https://www.ncl.ucar.edu/Applications/Scripts/prism_1.ncl</a>) to read .bil format PRISM data into NCL. There are no latitude or longitude variables available to read from the .bil files.  I would like to regrid the PRISM data to another rectilinear destination grid (~12km) using conservative remapping.</div><div><br></div><div>Many of the examples show a source grid that is read in before the regridding step.  I am not familiar with regridding from a grid that supplies no lat/lon to another grid that does.  Below is an example of the data written to netCDF with some additions.</div><div><br></div><div>dimensions:</div><div>        time = UNLIMITED ; // (1 currently)</div><div>        lat = 621 ;</div><div>        lon = 1405 ;</div><div>variables:</div><div>        double time(time) ;</div><div>                time:calendar = "standard" ;</div><div>                time:units = "days since 1955-01-01 00:00:00" ;<br></div><div>        float p(time, lat, lon) ;</div><div>                p:units = "mm day-1" ;</div><div>                p:missing_value = -9999.f ;</div><div>                p:_FillValue = -9999.f ;</div><div><br></div><div>Recent ESMF regrid attempts have resulted in: (0)     get_src_grid_info: can't determine what type of source grid you have.</div><div><br></div><div>Is there a way I can specify the areal dimensions of the source grid, or lat/lon corners as the source grid?</div><div><br></div><div><div dir="ltr"><div dir="ltr"><div>-------------------------------------------------------------<br><div style="text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;font-family:Arial,Helvetica,sans-serif;font-size:13.33px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:400;text-decoration:none;word-spacing:0px;white-space:normal" dir="ltr">Brandon</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></blockquote></div></div></div>