<html><head></head><body><div class="ydp22dfdb48yahoo-style-wrap" style="font-family:bookman old style, new york, times, serif;font-size:16px;"><div></div>
<div><br></div><div><span><div style="color: rgb(0, 0, 0); font-family: bookman old style, new york, times, serif; font-size: 16px;">Dear Alina</div><div style="color: rgb(0, 0, 0); font-family: bookman old style, new york, times, serif; font-size: 16px;">I've used your script and faced same problem. Did you solve your problem with TKE.ncl?</div><div style="color: rgb(0, 0, 0); font-family: bookman old style, new york, times, serif; font-size: 16px;"><br></div><div style="color: rgb(0, 0, 0); font-family: bookman old style, new york, times, serif; font-size: 16px;">Sincerely</div><div style="color: rgb(0, 0, 0); font-family: bookman old style, new york, times, serif; font-size: 16px;">Ehsan</div></span><br></div>
</div><div id="yahoo_quoted_0160534904" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Thursday, October 11, 2018, 8:54:09 PM GMT+3:30, Barry Lynn <barry.h.lynn@gmail.com> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="yiv2118007616"><div><div dir="ltr">Hello:<div><br clear="none"></div><div>Have you defined var3 and z prior? If so, you can check the dimensions with printVarSummary(var_name).</div><div><br clear="none"></div><div>I don't see why you need the "0" as the first index, since it is just a placeholder.</div><div><br clear="none"></div><div>One thing to try would be just to set var3 = var3d(:,:,:,:) just to see that you are accessing var3d correctly.</div><div><br clear="none"></div><div>Barry</div></div><br clear="none"><div class="yiv2118007616gmail_quote"><div class="yiv2118007616yqt1630488045" id="yiv2118007616yqtfd06577"><div dir="ltr">On Thu, Oct 11, 2018 at 6:41 PM Schuster Alina <<a rel="nofollow" shape="rect" ymailto="mailto:alina-galchenko@yandex.ru" target="_blank" href="mailto:alina-galchenko@yandex.ru">alina-galchenko@yandex.ru</a>> wrote:<br clear="none"></div></div><blockquote class="yiv2118007616gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv2118007616yqt1630488045" id="yiv2118007616yqtfd54453"><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">
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></div><br clear="none">
</blockquote></div><br clear="all"><div><br clear="none"></div>-- <br clear="none"><div class="yiv2118007616gmail_signature" dir="ltr"><div dir="ltr"><div><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Associate Scientist, Lecturer,</div><div><div><span style="color:rgb(136,136,136);">The Institute of the Earth Science, </span><br clear="none" style="color:rgb(136,136,136);"><span style="color:rgb(136,136,136);">The Hebrew University of Jerusalem, </span><br clear="none" style="color:rgb(136,136,136);"><span style="color:rgb(136,136,136);">Givat Ram, Jerusalem 91904, Israel </span><br clear="none" style="color:rgb(136,136,136);"></div><span style="color:rgb(136,136,136);">Tel: 972 547 231 170</span><br clear="none" style="color:rgb(136,136,136);"><span style="color:rgb(136,136,136);">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136);"><br clear="none"></span></div><div>C.E.O, Weather It Is, LTD<br clear="none">Weather and Climate Focus<br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://weather-it-is.com">http://weather-it-is.com</a><br clear="none">Jerusalem, Israel<br clear="none">Local: 02 930 9525<br clear="none">Cell: 054 7 231 170<br clear="none">Int-IS: x972 2 930 9525<div class="yiv2118007616yqt1630488045" id="yiv2118007616yqtfd00393"><br clear="none"><br clear="none"></div></div></div></div></div></div></div></div><div class="yqt1630488045" id="yqtfd30338">_______________________________________________<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>