<div dir="ltr"><div><div><div><div> but betHello,<br><br></div><div>At: <a href="https://www.ncl.ucar.edu/Document/Manuals/" target="_blank">https://www.ncl.ucar.edu/Document/Manuals/</a><br></div><div><br></div>Please read section 7 of the Mini-Language manual<br>===<br></div><div>A more detailed description s at:<br> <a href="https://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclExtend.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclExtend.shtml</a><br>===<br></div><div>Also of interest: The DKRZ has created two NCL tutorials that may be of interest.<br></div>These are much broader.<br></div><div>===<br><br></div>That said .....<br>[1]<br>You have a f77 subroutine [ test.f ]. I do not see the required delimeters<br><br></div><div>C NCLFORTSTART<br>...<br></div><div>C NCLEND<br><br></div><div>These indicate to NCL's f77 parser what information is being passed back-and-forth between two separate languages.<br></div><div>That is why your code gets the 'A syntax error occurred while parsing:" message,<br><br>[2] <br></div><div>To use 'external' code (f77, f90, C, C++) you must indicate that via<br><br></div><div> external TEST "./,,,so" ; the shared object<br><br></div><div>You did not do this.<br></div><div><br>[3] <br></div><div>Included in your argument passing, you have<br> flminsou,frmaxsou,fbminsou,ftmaxsou<br></div><div>Are these used? NCL does not care but if they are not used, but why are you passing them?<br><br>[4]<br></div><div>You want 'conv_temp' but you are not passing it back to NCL for plotting.<br></div><div>In your NCL script ....<br></div><div><br></div><div><br></div><div>external CONV "./test.so" <br><br>ctemp = 0.0 ; create a 'space' for the returned temperature<br>CONV:: sndganalncl(nlevs,t,p,r,u,v,ctemp)<br><br>[5]<br></div><div>I have done some mods for your f77 code. That should get you started.<br><br></div><div> WRAPIT test.f<br></div><div><br></div><div> <br></div> <br><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 22, 2015 at 8:43 PM, Brandon Sullivan <span dir="ltr"><<a href="mailto:btsullivan91@gmail.com" target="_blank">btsullivan91@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="#0563C1" vlink="#954F72" lang="EN-US"><div><p class="MsoNormal">Hello all,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I am trying to use “sstats.f” that I found here - <a href="http://www.ncl.ucar.edu/Support/talk_archives/2010/att-2526/sstats.f" target="_blank">http://www.ncl.ucar.edu/Support/talk_archives/2010/att-2526/sstats.f</a><u></u><u></u></p><p class="MsoNormal"><br>I pulled out the code I want and made test.f (attached)<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I am trying to use the convective temperature function from there and plot it on my soundings (testsounding.ncl)<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I try to run WRAPIT and it says this <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">“root@ubuntu:/home/Soundings/Extra# WRAPIT test.f<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">WRAPIT Version: 120209<u></u><u></u></p><p class="MsoNormal">A syntax error occurred while parsing:<u></u><u></u></p><p class="MsoNormal">COMPILING test.f<u></u><u></u></p><p class="MsoNormal">LINKING<u></u><u></u></p><p class="MsoNormal">END WRAPIT”<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Then, when running my sounding script it says <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Copyright (C) 1995-2015 - All Rights Reserved<u></u><u></u></p><p class="MsoNormal"> University Corporation for Atmospheric Research<u></u><u></u></p><p class="MsoNormal"> NCAR Command Language Version 6.3.0<u></u><u></u></p><p class="MsoNormal"> The use of this software is governed by a License Agreement.<u></u><u></u></p><p class="MsoNormal"> See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<u></u><u></u></p><p class="MsoNormal">warning:An error occurred loading the external file /home/Soundings/Extra/test.so, file not loaded<u></u><u></u></p><p class="MsoNormal">/home/Soundings/Extra/test.so: undefined symbol: theta_wetb_<u></u><u></u></p><p class="MsoNormal">warning:error at line 50 in file testsounding.ncl<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Am I going about this wrong? Is there something in the code I am missing? I have also tried –m64 when running WRAPIT.. Thanks so much in advance!<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></p><span class="HOEnZb"><font color="#888888"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Brandon<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p></font></span></div></div><br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>