<div dir="ltr"><div>There are two bilinear interpolations involved.</div><div>    [1] WRF->rectilinear</div><div>    [2] rectilinear->WRF</div><div><br></div><div>As implemented in<b> rcm2rgrid</b> and <b>rgrid2rcm</b>, each bilinear interpolation require 4 surrounding points. Edge [boundary] effects are expected. No extrapolations are performed.<br></div><div><br></div><div>----<br></div><div>The ESMF examples mentioned earlier perform the same two-step approach. <br></div><div>ESMF's bilinear interpolation is likely more sophisticated. Still, I think there are some edge effects. See the bottom of:</div><div>    <a href="http://www.ncl.ucar.edu/Applications/Images/ESMF_regrid_29_lg.png"><b>http://www.ncl.ucar.edu/Applications/Images/ESMF_regrid_29_lg.png</b></a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Oct 6, 2019 at 12:20 PM Rick Brownrigg <<a href="mailto:brownrig@ucar.edu">brownrig@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,</div><div><br></div><div>I can't say for certain, but depending upon the map projection of the original WRF file, such a rotation might be expected. Does your data look plausible  otherwise?</div><div><br></div><div>Rick<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 5, 2019 at 9:50 AM Prashanth Bhalachandran <<a href="mailto:prashanth.bhalachandran@gmail.com" target="_blank">prashanth.bhalachandran@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 dir="ltr"><div class="gmail_default" style="font-family:garamond,times new roman,serif">Dear Dennis, </div><div class="gmail_default" style="font-family:garamond,times new roman,serif">This was really helpful. However, the regridding is turning the whole map and as a result, creating missing values at the boundaries (Please see the image attached). Is this expected? </div><div class="gmail_default" style="font-family:garamond,times new roman,serif"><br></div><div class="gmail_default" style="font-family:garamond,times new roman,serif">-P </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 4, 2019 at 3:26 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"><pre>As noted by Rick, the <a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/grad_latlon_cfd.shtml" target="_blank"><b>grad_latlon_cfd</b></a>  requires a rectilinear grid. <br>One-dimensional lat/lon arrays. This is clear in both the text and <br>the function prototyping<br><br>      function <a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/grad_latlon_cfd.shtml" target="_blank"><b>grad_latlon_cfd</b></a> (
                z          : numeric,  ; float, double, integer only
                <span style="color:rgb(0,0,255)"><b>lat    [*]</b></span> : numeric,  
                <span style="color:rgb(0,0,255)"><b>lon    [*]</b></span> : numeric,  
                cyclic [1] : logical,  
                opt    [1] : logical   
        ) <br></pre><pre>===============================================================<br>   a      = <a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/addfile.shtml" target="_blank"><b>addfile</b></a> ("<span style="font-variant-ligatures:no-common-ligatures">"wrfout_d04_2005-07-29_12:06:00","r")<br>   <span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">ctt</span><span style="font-variant-ligatures:no-common-ligatures">    = <a href="http://www.ncl.ucar.edu/Document/Functions/WRF_arw/wrf_user_getvar.shtml" target="_blank"><b>wrf_user_getvar</b></a>(a,"</span><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">ctt</span><span style="font-variant-ligatures:no-common-ligatures">",-1)</span></span> <span style="font-variant-ligatures:no-common-ligatures"><br></span></pre><pre><span style="font-variant-ligatures:no-common-ligatures">   <a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/printVarSummary.shtml" target="_blank"><b>printVarSummary</b></a>(ctt)   ; Examine variable<br>   opt_sd = True
   opt_sd@PrintStat = True
   stat_ctt = <a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/stat_dispersion.shtml" target="_blank"><b>stat_dispersion</b></a>(ctt, opt_sd )  ; look at distribution</span></pre><pre><span style="font-variant-ligatures:no-common-ligatures">   lat2d  = <b>wrf_user_getvar</b>(a,"XLAT",0)</span><span style="font-variant-ligatures:no-common-ligatures"><br>   lon2d  = <b>wrf_user_getvar</b>(a,"XLONG",0)</span><br></pre><pre>   dim2d  = <b>dimsizes</b>(lat2d)<br>   nlat   = dim2d(0)     ; arbitrary; here (roughly same resolution as WRF)<br>   mlon   = dim2d(1)<br>                         ; generate rectilinear coordinate variables<br>   lat    = <b>fspan</b>( <b>min</b>(lat2d), <b>max</b>(lat2d) ,nlat)
   lon    = <b>fspan</b>( <b>min</b>(lon2d), <b>max</b>(lon2d) ,mlon)<br>   lat!0 = "lat"<br>   lon!0 = "lon"<br>   lat@units = "degrees_north"<br>   lon@units = "degrees_east"<br></pre><pre>; Bilinear interpolation to rectilinear ['regular'] grid<br></pre><pre>   cttgrd = <b>rcm2rgrid_Wrap</b>(lat2d,lon2d,ctt,lat,lon,0)<br>   <b>printVarSummary</b>(cttgrd)<br>   print("-----")<br></pre><pre>; Zonal and Meridional gradients<br></pre><pre>   <span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">ctt</span><span style="font-variant-ligatures:no-common-ligatures">LatLon<span>    </span>= <a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/grad_latlon_cfd.shtml" target="_blank"><b>grad_latlon_cfd</b></a> (</span><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">ctt</span><span style="font-variant-ligatures:no-common-ligatures">grd, lat, lon, False, False)</span><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)"><br><br>; Extract variables from the list variable   <br>   ctt</span><span style="font-variant-ligatures:no-common-ligatures">_grad_lat<span> </span>= gradLatLon[0]<span>    </span>; Gradients in latitudinal [meridional] direction</span><span style="font-variant-ligatures:no-common-ligatures"><span><br>   </span></span><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">ctt</span><span style="font-variant-ligatures:no-common-ligatures">_grad_lon<span> </span>= gradLatLon[1]<span>    </span>; Gradients in longitudinal [zonal] direction<br><br>   <a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/printVarSummary.shtml" target="_blank"><b>printVarSummary</b></a>(ctt_grad_lat)   ; Examine variable<br>   stat_ctt_lat = <a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/stat_dispersion.shtml" target="_blank"><b>stat_dispersion</b></a>(ctt_grad_lat, opt_sd )  ; look at distribution<br>   print("-----")<br></span></pre><pre><span style="font-variant-ligatures:no-common-ligatures">   <a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/printVarSummary.shtml" target="_blank"><b>printVarSummary</b></a>(ctt_grad_lon)<br>   stat_ctt_lon = <a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/stat_dispersion.shtml" target="_blank"><b>stat_dispersion</b></a>(ctt_grad_lon, opt_sd )  ; look at distribution<br>   print("-----")<br><br>; Interpolate gradients back to WRF grid<br><br>  ctt_grad_lat_wrf  = <a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/rgrid2rcm_Wrap.shtml" target="_blank"><b>rgrid2rcm_Wrap</b></a> (lat, lon, ctt_grad_lat, lat2d, lon2d, 0)<br>  ctt_grad_lon_wrf  = <a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/rgrid2rcm_Wrap.shtml" target="_blank"><b>rgrid2rcm_Wrap</b></a> (lat, lon, ctt_grad_lon, lat2d, lon2d, 0)<br>  <a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/printVarSummary.shtml" target="_blank"><b>printVarSummary</b></a>(ctt_grad_lat_wrf)<br>  <a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/printVarSummary.shtml" target="_blank"><b>printVarSummary</b></a>(ctt_grad_lon_wrf)<br> <br></span></pre><pre>===<br></pre><pre>There are multiple example of this methodology using ESMF_regrid<br><a href="http://www.ncl.ucar.edu/Applications/ESMF.shtml" target="_blank"><b>http://www.ncl.ucar.edu/Applications/ESMF.shtml </b></a><br></pre><pre>Examples: 29, 30, 37 [others there also]<br><br></pre><pre>Please examine carefully.<br></pre></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 4, 2019 at 9:59 PM Rick Brownrigg via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@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,</div><div><br></div><div>I am not expert at this, but based upon the docs for the function_latlon_cfd, it looks like it requires a rectilinear grid, which would imply you'll need to regrid your curvilinear WRF grid. NCL has numerous functions for doing this (I can't advise which one you should use):</div><div><br></div><div>   <a href="http://ncl.ucar.edu/Applications/regrid.shtml" target="_blank">http://ncl.ucar.edu/Applications/regrid.shtml</a><br></div><div><br></div><div>I also note in the second warning you provided, its complaining about 3 dimensions in parameter 1 (i.e., the lat variable) -- Is there a time dimension on that variable as well as X/Y?</div><div><br></div><div>Hope that helps...</div><div>Rick</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 4, 2019 at 1:25 PM Prashanth Bhalachandran via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@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 style="font-family:garamond,"times new roman",serif">Dear NCL'ers, </div><div style="font-family:garamond,"times new roman",serif">I have a question on dealing with the 2D lat and long variables from WRF output. For example, in my code below, I am having trouble using the lat long information to either use them as coordinate variables or to be used as inputs to the horizontal gradient function. What is the best way to create or extract 1D lat and long information so that I can use them here? </div><div style="font-family:garamond,"times new roman",serif"><br></div><div style="font-family:garamond,"times new roman",serif">Thank you, </div><div style="font-family:garamond,"times new roman",serif">Prashanth </div><div style="font-family:garamond,"times new roman",serif"><br></div>





<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">begin</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0);min-height:22px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">a = addfile("wrfout_d04_2005-07-29_12:06:00","r")</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0);min-height:22px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">ctt</span><span style="font-variant-ligatures:no-common-ligatures"> = wrf_user_getvar(a,"</span><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">ctt</span><span style="font-variant-ligatures:no-common-ligatures">",-1) ; Cloud top temperatures in degree Celsius</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">lat = wrf_user_getvar(a,"XLAT",-1)</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">lon = wrf_user_getvar(a,"XLONG",-1)</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0);min-height:22px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">;Original Dimensions and sizes: [Time | 10] x [south_north | 480] x [west_east | 480]</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0);min-height:22px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">; Take the horizontal gradient</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span>  </span></span><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">ctt</span><span style="font-variant-ligatures:no-common-ligatures">LatLon<span>  </span>= grad_latlon_cfd (</span><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">ctt</span><span style="font-variant-ligatures:no-common-ligatures">, lat, lon, False, False)</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0);min-height:22px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span>  </span></span><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">ctt</span><span style="font-variant-ligatures:no-common-ligatures">_grad_lat<span>  </span>= gradLatLon[0]<span>    </span>; Extract Individual gradients in latitudinal direction</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span>  </span></span><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">ctt</span><span style="font-variant-ligatures:no-common-ligatures">_grad_lon<span>  </span>= gradLatLon[1]<span>    </span>; Gradient in longitudinal directional</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0);min-height:22px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span>  </span>delete(</span><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">ctt</span><span style="font-variant-ligatures:no-common-ligatures">LatLon)</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0);min-height:22px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span>   </span>if(all(ismissing(</span><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">ctt</span><span style="font-variant-ligatures:no-common-ligatures">_grad_lat))) then</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span>    </span>print("</span><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">ctt</span><span style="font-variant-ligatures:no-common-ligatures">_grad_lat contains all missing values, cannot continue.")</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span>    </span>return</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span>  </span>end if</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0);min-height:22px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span>    </span>if(all(ismissing(</span><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">ctt</span><span style="font-variant-ligatures:no-common-ligatures">_grad_lon))) then</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span>    </span>print("</span><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">ctt</span><span style="font-variant-ligatures:no-common-ligatures">_grad_lon contains all missing values, cannot continue.")</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span>    </span>return</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span>  </span>end if</span></p>
<div style="font-family:garamond,"times new roman",serif"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0);font-family:Courier;font-size:18px">end</span></div><div style="font-family:garamond,"times new roman",serif"><br></div><div style="font-family:garamond,"times new roman",serif"><br></div><div style="font-family:garamond,"times new roman",serif">Output: </div><div style="font-family:garamond,"times new roman",serif"><br></div><div style="font-family:garamond,"times new roman",serif">I can't prescribe lat and lon as coordinate variables since they are 2D. </div><div style="font-family:garamond,"times new roman",serif">





<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">$ ncl -n -Q cloud_top.ncl<span> </span></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">fatal:Coordinate variables must have one dimension only</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">fatal:No coordinate variable exists for dimension (lat) in variable (ctt)</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">fatal:["Execute.c":8637]:Execute: Error occurred at or near line 12 in file cloud_top.ncl</span></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">or use them as inputs to the gradient function: <br><br>





</span></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">$ ncl -n -Q cloud_top.ncl<span> </span></span></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">fatal:Number of dimensions in parameter (1) of (grad_latlon_cfd) is (3), (1) dimensions were expected<span> </span></span></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">fatal:["Execute.c":8637]:Execute: Error occurred at or near line 12 in file cloud_top.ncl</span></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">


</span></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0);min-height:22px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Courier;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p></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></blockquote></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></blockquote></div>
</blockquote></div><br clear="all"><div><br></div><div dir="ltr"><div dir="ltr"><div><div style="color:rgb(0,0,0);font-size:18px;font-family:Palatino"></div><div><br></div>
</div></div></div></div>
</blockquote></div>
</blockquote></div>