<html><head></head><body><div class="ydp62248da7yahoo-style-wrap" style="font-family:bookman old style, new york, times, serif;font-size:16px;"><div></div>
<div>Dear Mary,</div><div><br></div><div>I have same problem as Alina. May I answer your question about printVarSummary(z,tke)?</div><div>Following are the answers:</div><div><br></div><div><br></div><div><div>Variable: tke</div><div>Type: float</div><div>Total Size: 1008886320 bytes</div><div> 252221580 values</div><div>Number of Dimensions: 4</div><div>Dimensions and sizes: [Time | 61] x [<span style="background-color: rgb(253, 248, 105);">bottom_top_stag</span> | 31] x [south_north | 342] x [west_east | 390]</div><div>Coordinates:</div><div>Number Of Attributes: 6</div><div> FieldType : 104</div><div> MemoryOrder : XYZ</div><div> description : TKE from PBL</div><div> units : m2 s-2</div><div> stagger : Z</div><div> coordinates : XLONG XLAT XTIME</div><div><br></div><div>Variable: z</div><div>Type: float</div><div>Total Size: 976341600 bytes</div><div> 244085400 values</div><div>Number of Dimensions: 4</div><div>Dimensions and sizes: [Time | 61] x [<span style="background-color: rgb(253, 248, 105);">bottom_top</span> | 30] x [south_north | 342] x [west_east | 390]</div><div>Coordinates:</div><div>Number Of Attributes: 6</div><div> coordinates : XLONG XLAT</div><div> stagger :</div><div> units : m</div><div> description : Height</div><div> MemoryOrder : XYZ</div><div> FieldType : 104 </div><br></div><div>It seems the only difference is about (bottom_top) and (bottom_top_stag) dimension names.</div><div>I think "wrf_user_interp3d" doesn't work for TKE_PBL? I also used this script (<a href="http://www2.mmm.ucar.edu/wrf/OnLineTutorial/Graphics/NCL/Examples/LEVELS_INTERP/wrf_Height2.ncl" rel="nofollow" target="_blank">http://www2.mmm.ucar.edu/wrf/OnLineTutorial/Graphics/NCL/Examples/LEVELS_INTERP/wrf_Height2.ncl</a>) for "TKE_PBL" variable of WRF, but same error has occured:</div><div><br></div><div>"<span>mension size mismatch, dimension (1) of left hand side reference does not have the same size as the right hand side reference after subscripting.</span>"</div><div><br></div><div>Sincerely</div><div>Ehsan</div>
</div><div id="yahoo_quoted_9781787036" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Tuesday, October 16, 2018, 9:31:43 PM GMT+3:30, Mary Haley <haley@ucar.edu> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="yiv5621110271"><div><div dir="ltr"><div dir="ltr"><div class="yiv5621110271gmail_default" style="font-size:small;">Hi Alina,</div><div class="yiv5621110271gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv5621110271gmail_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="yiv5621110271gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv5621110271gmail_default"><a rel="nofollow" shape="rect" target="_blank" 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 clear="none"></div><div class="yiv5621110271gmail_default"><br clear="none"></div><div class="yiv5621110271gmail_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="yiv5621110271gmail_default"><br clear="none"></div><div class="yiv5621110271gmail_default">--Mary</div><div class="yiv5621110271gmail_default"><br clear="none"></div></div></div><div class="yiv5621110271gmail_extra"><br clear="none"><div class="yiv5621110271yqt3631984135" id="yiv5621110271yqtfd25422"><div class="yiv5621110271gmail_quote">On Thu, Oct 11, 2018 at 9:41 AM, Schuster Alina <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:alina-galchenko@yandex.ru" target="_blank" href="mailto:alina-galchenko@yandex.ru">alina-galchenko@yandex.ru</a>></span> wrote:<br clear="none"><blockquote class="yiv5621110271gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br clear="none">
Dear colleagues!<br clear="none">
<br clear="none">
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 clear="none">
<br clear="none">
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 clear="none">
fatal:["Execute.c":8640]: Execute: Error occurred at or near line 246 in file /home/alina/NCL64/lib/ncarg/ nclscripts/wrf/WRFUserARW.ncl<br clear="none">
<br clear="none">
fatal:["Execute.c":8640]: Execute: Error occurred at or near line 29 in file TKE.ncl<br clear="none">
<br clear="none">
I don't know how to fix it.<br clear="none">
<br clear="none">
Line 246 contains:<br clear="none">
if ( nd .eq. 4 ) then<br clear="none">
var3(0,:,:,:,:) = var3d(:,:,:,:)<br clear="none">
z(0,:,:,:,:) = z_in(:,:,:,:)<br clear="none">
end if<br clear="none">
<br clear="none">
Don't know what's wrong. It can be the problem is with the variable TKE and its 4 dimensions:<br clear="none">
Variable: tke<br clear="none">
Type: float<br clear="none">
Total Size: 57600 bytes<br clear="none">
14400 values<br clear="none">
Number of Dimensions: 4<br clear="none">
Dimensions and sizes: [Time | 60] x [bottom_top_stag | 60] x [south_north | 2] x [west_east | 2]<br clear="none">
Coordinates:<br clear="none">
Time: [ 0.. 59]<br clear="none">
Number Of Attributes: 6<br clear="none">
FieldType : 104<br clear="none">
MemoryOrder : XYZ<br clear="none">
description : TKE from PBL<br clear="none">
units : J<br clear="none">
stagger : Z<br clear="none">
coordinates : XLONG XLAT XTIME<br clear="none">
<br clear="none">
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 clear="none">
Thanks in advance!<br clear="none">
<br clear="none">
Best Regards,<br clear="none">
Alina Schuster<br clear="none">
<br clear="none">______________________________ _________________<br clear="none">
ncl-talk mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu" target="_blank" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/ mailman/listinfo/ncl-talk</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div></div><div class="yqt3631984135" id="yqtfd23509">_______________________________________________<br clear="none">ncl-talk mailing list<br clear="none"><a shape="rect" ymailto="mailto:ncl-talk@ucar.edu" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br clear="none">List instructions, subscriber options, unsubscribe:<br clear="none"><a shape="rect" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none"></div></div>
</div>
</div></body></html>