<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="margin:0px;font-size:12pt;background-color:rgb(255, 255, 255)">Hello Everyone,</span>
<div style="margin:0px;font-size:12pt;background-color:rgb(255, 255, 255)"><br>
</div>
<div style="margin:0px;font-size:12pt;background-color:rgb(255, 255, 255)">I've been trying to interpolate humidity and temperature data from CCSM to the RAP/HRRR grid using NCL (specifically using the function linint2_points and linint2_points_Wrap). I created
a script that should interpolate the data from CCSM to the HRRR grid, but the script returned an array that contains nothing but filled values (9.96921e+36) and no data of the variable field I'm interpolating. I don't understand this happened, and I used both
the <span style="margin:0px;background-color:rgb(255, 255, 255);display:inline !important">linint2_points and linint2_points_Wrap functions. Is this supposed to happen, or and I'm missing something? Below is the code I used. Any advice would be appreciated.
Thanks!</span></div>
<div style="margin:0px;font-size:12pt;background-color:rgb(255, 255, 255)"><br>
</div>
<div style="margin:0px;font-size:12pt;background-color:rgb(255, 255, 255)">-Malcolm W.<br>
</div>
<div style="margin:0px;font-size:12pt;background-color:rgb(255, 255, 255)"><span style="margin:0px;background-color:rgb(255, 255, 255);display:inline !important"><br>
</span></div>
<div style="margin:0px;font-size:12pt;background-color:rgb(255, 255, 255)"><span style="margin:0px;background-color:rgb(255, 255, 255);display:inline !important"> f = addfile ("~/small_hus_may_pert_2010-2050.nc","r")
<div style="margin:0px"> g = addfile ("~/hrrr.t00z.wrfprsf00.nc","r")</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px"> lat = f->lat ;(length=36)</div>
<div style="margin:0px"> lon = f->lon ;(length=61)</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px"> lat2d = g->gridlat_0 ; (shape: (1059,1799))</div>
<div style="margin:0px"> lon2d = g->gridlon_0 <span> </span><span style="margin:0px;background-color:rgb(255, 255, 255);display:inline !important">; (shape: (1059,1799))</span></div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px"> LAT1D = ndtooned(lat2d) </div>
<div style="margin:0px"> LON1D = ndtooned(lon2d)</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px"> fi = f->hus_pert ;(humidity data I'm interpolating) </div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px"> fo = linint2_points_Wrap(lon,lat,fi, False, LON1D,LAT1D, 0)</div>
<div style="margin:0px"><br>
</div>
hrrr_data = onedtond( ndtooned(fo), (/1,26,1059,1799/) ) ;(conatins nothing but filled values)</span></div>
<br>
</div>
</body>
</html>