<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div><div>Hi,</div><div><br></div><div>I am really sorry for less clarification on my question. Simply I want to know the script which has attached herewith is correct or wrong. Because I haven't followed the steps which are used in '<span style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;">rho_mwjf' </span>NCL example. </div><div><br></div><div>P.S: When I run the script, I got density output without any error messages. </div><div><br></div><div class="ydp48b7bd23signature"><div style="font-size:small;"><blockquote style="margin:0 0 0 40px;border:none;padding:0px;"><span style="font-style:italic;font-size:medium;">........................................</span></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px;"><span style="font-style:italic;font-size:medium;"><br></span></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px;"><span style="font-style:italic;font-size:medium;">Wickramage Chathurika Hemamali</span><div><span style="font-style:italic;font-size:medium;">Msc<span style="background-color:rgb(255, 255, 255);"> Research Scholar</span></span></div><div><div><div id="ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2251" style="background-color:rgb(255, 255, 255);"><span style="font-style:italic;font-size:medium;">State Key Laboratory of Tropical Oceanography</span></div></div></div><div><div id="ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2252" style="background-color:rgb(255, 255, 255);"><span style="font-style:italic;font-size:medium;">South China Sea Institute of Oceanology</span></div><div id="ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2252" style="background-color:rgb(255, 255, 255);"><span style="font-style:italic;font-size:medium;">University of Chinese Academy of Science</span></div></div><div><div id="ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264" style="background-color:rgb(255, 255, 255);"><span style="font-style:italic;font-size:medium;">China</span></div></div><div id="ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264" style="background-color:rgb(255, 255, 255);"><span style="font-style:italic;font-size:medium;"><br></span></div><div id="ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264" style="background-color:rgb(255, 255, 255);"><i><font size="1">Specialized in Oceanography and Marine Geology (Bachelor)</font></i></div><div id="ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264" style="background-color:rgb(255, 255, 255);"><i><font size="1">University of Ruhuna</font></i></div><div id="ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264" style="background-color:rgb(255, 255, 255);"><i><font size="1">Matara</font></i></div><div id="ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264" style="background-color:rgb(255, 255, 255);"><i><font size="1">Sri Lanka</font></i></div><div id="ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264" style="background-color:rgb(255, 255, 255);"><span style="font-style:italic;font-size:medium;"><br></span></div><div id="ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264" style="background-color:rgb(255, 255, 255);"><span style="font-style:italic;font-size:medium;">Email : <a>wickramagechathurika@rocketmail.com</a></span></div></blockquote></div></div></div>
<div><br></div><div><br></div>
<div id="yahoo_quoted_0546422951" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Friday, 2 March 2018, 07:55:35 GMT+8, Dennis Shea <shea@ucar.edu> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="yiv4994258849"><div><div dir="ltr"><div><div>This question is not clear to me.<br clear="none"><br clear="none">"I have gotten two different minimum and maximum values for density"<br clear="none"><br clear="none"></div>test.ncl has: one ?time? step and one set of data ranges<br clear="none"><br clear="none">temp=f0[:]->THETA(7,{0:500},{ 0:6},{80})<br clear="none">printVarSummary(temp) <br clear="none">temp@_FillValue=1.e20<br clear="none"><br clear="none">salt=f1[:]->SALT(7,{0:500},{0: 6},{80})<br clear="none">salt@_FillValue=1.e20<br clear="none">printVarSummary(salt)<br clear="none"><br clear="none">depth=40<br clear="none">pd=rho_mwjf(temp, salt, depth)<br clear="none"><br clear="none">---<br clear="none"></div>n.ncl has ALL [:] ?time? steps and a different set of data ranges<br clear="none"><br clear="none">emp=f0[:]->THETA(:,{0:200},{5. 5:6},{76:86})<br clear="none">printVarSummary(temp) <br clear="none">temp@_FillValue=1.e20<br clear="none"><br clear="none">salt=f1[:]->SALT(:,{0:200},{5. 5:6},{76:86})<br clear="none">salt@_FillValue=1.e20<br clear="none">printVarSummary(salt)<br clear="none"><br clear="none"><div><div>====<br clear="none"></div><div>Are you asking about your array manipulations or abou the<br clear="none"></div><div>results from the NCL function:<br clear="none"> <a rel="nofollow" shape="rect" target="_blank" href="http://www.ncl.ucar.edu/Document/Functions/Contributed/rho_mwjf.shtml">http://www.ncl.ucar.edu/ Document/Functions/ Contributed/rho_mwjf.shtml</a><br clear="none"><br clear="none">===<br clear="none"></div><div>Really, looking at the scripts with no information from 'printVarSummary(...)'<br clear="none"></div><div>would be a time consuming effort <br clear="none"><br clear="none"></div><div>Certainly, making **one** sample THETA and SALT file available would also help.<br clear="none"><br clear="none"><div>ftp <a rel="nofollow" shape="rect" target="_blank" href="http://ftp.cgd.ucar.edu">ftp.cgd.ucar.edu</a><br clear="none"></div><div>anonymous<br clear="none"></div><div>your_email<br clear="none"></div><div>cd in coming<br clear="none"><br clear="none"></div><div>put THETA.1440x720x50.1993????.nc"<br clear="none">put SALT.1440x720x50.1993????.nc"<br clear="none"><br clear="none"></div>quit<br clear="none"></div><div><br clear="none"><br clear="none"></div></div></div><div class="yiv4994258849gmail_extra"><br clear="none"><div class="yiv4994258849gmail_quote">On Wed, Feb 28, 2018 at 10:31 PM, Wickramage Chathurika <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:wickramagechathurika@rocketmail.com" target="_blank" href="mailto:wickramagechathurika@rocketmail.com">wickramagechathurika@rocketmail.com</a>></span> wrote:<br clear="none"><blockquote class="yiv4994258849gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv4994258849yqt3758237137" id="yiv4994258849yqt94333"><div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div><div><div style="">Hello,</div><div style=""><br clear="none"></div><div style="">I am calculating the density of ocean water using ECCO2 model data. I have calculated density by two different methods. One is according to NCL example. But I have gotten two different minimum and maximum values for density. I have attached herewith the two scripts and please help me to figure out the problem with my script. appreciate your help in advance. </div><div style=""><br clear="none"></div><div style=""><br clear="none"></div><div style="">Kind Regards;</div><div style="">Chathu</div><br clear="none"></div><div><br clear="none"></div><div class="yiv4994258849m_486318392327140843ydp615cac09signature"><div style="font-size:small;"><blockquote style="margin:0 0 0 40px;border:none;padding:0px;"><span style="font-style:italic;font-size:medium;">.............................. ..........</span></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px;"><span style="font-style:italic;font-size:medium;"><br clear="none"></span></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px;"><span style="font-style:italic;font-size:medium;">Wickramage Chathurika Hemamali</span><div><span style="font-style:italic;font-size:medium;">Msc<span style="background-color:rgb(255,255,255);"> Research Scholar</span></span></div><div><div><div id="yiv4994258849m_486318392327140843ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2251" style="background-color:rgb(255,255,255);"><span style="font-style:italic;font-size:medium;">State Key Laboratory of Tropical Oceanography</span></div></div></div><div><div id="yiv4994258849m_486318392327140843ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2252" style="background-color:rgb(255,255,255);"><span style="font-style:italic;font-size:medium;">South China Sea Institute of Oceanology</span></div><div id="yiv4994258849m_486318392327140843ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2252" style="background-color:rgb(255,255,255);"><span style="font-style:italic;font-size:medium;">University of Chinese Academy of Science</span></div></div><div><div id="yiv4994258849m_486318392327140843ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264" style="background-color:rgb(255,255,255);"><span style="font-style:italic;font-size:medium;">China</span></div></div><div id="yiv4994258849m_486318392327140843ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264" style="background-color:rgb(255,255,255);"><span style="font-style:italic;font-size:medium;"><br clear="none"></span></div><div id="yiv4994258849m_486318392327140843ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264" style="background-color:rgb(255,255,255);"><i><font size="1">Specialized in Oceanography and Marine Geology (Bachelor)</font></i></div><div id="yiv4994258849m_486318392327140843ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264" style="background-color:rgb(255,255,255);"><i><font size="1">University of Ruhuna</font></i></div><div id="yiv4994258849m_486318392327140843ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264" style="background-color:rgb(255,255,255);"><i><font size="1">Matara</font></i></div><div id="yiv4994258849m_486318392327140843ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264" style="background-color:rgb(255,255,255);"><i><font size="1">Sri Lanka</font></i></div><div id="yiv4994258849m_486318392327140843ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264" style="background-color:rgb(255,255,255);"><span style="font-style:italic;font-size:medium;"><br clear="none"></span></div><div id="yiv4994258849m_486318392327140843ydpc6aa4ef1yui_3_16_0_ym19_1_1496286059659_2264" style="background-color:rgb(255,255,255);"><span style="font-style:italic;font-size:medium;">Email : <a rel="nofollow" shape="rect">wickramagechathurika@ rocketmail.com</a></span></div></blockquote></div></div></div></div></div></div><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>
</div></div></body></html>