<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Alina,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I'm guessing that the error is in how wrf_user_intrp3d is being called. If you look at the documentation:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Document/Functions/WRF_arw/wrf_user_intrp3d.shtml">http://www.ncl.ucar.edu/Document/Functions/WRF_arw/wrf_user_intrp3d.shtml</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">and read the section on input arguments, it takes that the first two input arrays must be the same size, which in your case is tke and z. Did you do a printVarSummary on z to see what size it is? </div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 11, 2018 at 9:41 AM, Schuster Alina <span dir="ltr"><<a href="mailto:alina-galchenko@yandex.ru" target="_blank">alina-galchenko@yandex.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Dear colleagues!<br>
<br>
I am using a scm wrf model (an idealised case) and need to plot a variable TKE (turbulent kinetic energy) vs time and height. But I get an error<br>
<br>
fatal:Dimension size mismatch, dimension (1) of left hand side reference does not have the same size as the right hand side reference after subscripting.<br>
fatal:["Execute.c":8640]:<wbr>Execute: Error occurred at or near line 246 in file /home/alina/NCL64/lib/ncarg/<wbr>nclscripts/wrf/WRFUserARW.ncl<br>
<br>
fatal:["Execute.c":8640]:<wbr>Execute: Error occurred at or near line 29 in file TKE.ncl<br>
<br>
I don't know how to fix it.<br>
<br>
Line 246 contains:<br>
if ( nd .eq. 4 ) then<br>
var3(0,:,:,:,:) = var3d(:,:,:,:)<br>
z(0,:,:,:,:) = z_in(:,:,:,:)<br>
end if<br>
<br>
Don't know what's wrong. It can be the problem is with the variable TKE and its 4 dimensions:<br>
Variable: tke<br>
Type: float<br>
Total Size: 57600 bytes<br>
14400 values<br>
Number of Dimensions: 4<br>
Dimensions and sizes: [Time | 60] x [bottom_top_stag | 60] x [south_north | 2] x [west_east | 2]<br>
Coordinates:<br>
Time: [ 0.. 59]<br>
Number Of Attributes: 6<br>
FieldType : 104<br>
MemoryOrder : XYZ<br>
description : TKE from PBL<br>
units : J<br>
stagger : Z<br>
coordinates : XLONG XLAT XTIME<br>
<br>
May be someone could advise me an alternative to the command wrf_user_intrp3d or may be someone has a ready script for TKE vs height and time (gsn_csm_contour).<br>
Thanks in advance!<br>
<br>
Best Regards,<br>
Alina Schuster<br>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>