<div><span style="font-size: 12pt; font-family: Arial;">Hello,</span></div><p><span style="font-size: 12pt; font-family: Arial;"><br></span></p><p><span style="font-size: 12pt; font-family: Arial;">I'm doing some modifications to the <span style="font-family: Arial; font-size: 12pt;">regcoef_dp.f file to consider a zero y-intercept, but now I don't know how to try it in a script. The number of arguments in the </span></span>fortran <span style="font-size: 12pt; font-family: Arial;"><span style="font-family: Arial; font-size: 12pt;">subroutine is different than in regCoef_n, so the subroutine is probably going through some more steps, possibly involving this script (</span></span><span style="font-family: Arial; font-size: 12pt;">https://github.com/NCAR/ncl/blob/develop/ni/src/lib/nfp/regcoefW.c</span><span style="font-family: Arial; font-size: 12pt;">). Am I right? </span></p><div><p><span style="font-family: Arial; font-size: 12pt;"><br></span></p><p><span style="font-family: Arial; font-size: 12pt;">How can I incorporate both fortran and C scripts in my NCL script? I know I can use WRAPIT to read external fortran code, but what about C code?</span></p><p style="font-size: 12pt; font-family: Arial;"><span style="font-family: Arial; font-size: 12pt;"><br></span></p><p style="font-size: 12pt; font-family: Arial;"><span style="font-family: Arial; font-size: 12pt;">I need help please. </span></p><p style="font-size: 12pt; font-family: Arial;"><span style="font-family: Arial; font-size: 12pt;"><br></span></p><p style="font-size: 12pt; font-family: Arial;"><span style="font-family: Arial; font-size: 12pt;">Giorgio</span></p>        <br>        <blockquote><br>        <br>   ------ Messaggio Originale ------<br>   Da: ncl-talk@mailman.ucar.edu<br>   A: shea@ucar.edu<br>Cc: ncl-talk@ucar.edu<br>   Inviato: venerdì 21 ottobre 2022 13:14<br>   Oggetto: Re: [ncl-talk] regCoef_n without y-axis intercept<br>  <br>        Hi Dennis, Dave<div style="font-size: 12.0pt;font-family: Arial;"><p><br></p><p style="font-size: 12.0pt;font-family: Arial;">Thanks for sending the relevant function and for explaining how to access the source code. Now I'm thinking how to make the function to force the regression to pass from origin. Any idea on how to do that?</p><p style="font-size: 12.0pt;font-family: Arial;"><br></p><p style="font-size: 12.0pt;font-family: Arial;">Cheers,</p><p style="font-size: 12.0pt;font-family: Arial;">Giorgio</p>         <blockquote><br>        <br>   ------ Messaggio Originale ------<br>   Da: shea@ucar.edu<br>   A: g.graffino@tim.it<br>Cc: dave.allured@noaa.gov; ncl-talk@ucar.edu<br>   Inviato: giovedì 20 ottobre 2022 19:17<br>   Oggetto: Re: [ncl-talk] regCoef_n without y-axis intercept<br>  <br>        <div dir="ltr">The f77 code is attached.<br><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 20, 2022 at 9:53 AM Giorgio Graffino via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex; --darkreader-inline-border-left:#3e4446;" data-darkreader-inline-border-left=""><div><font style="font-size: 12.0pt;font-family: Arial;" face="Arial">Hi Dave,</font></div><div style="font-size: 12.0pt;font-family: Arial;"><p><font style="font-size: 12.0pt;font-family: Arial;" face="Arial"><br></font></p><p><font style="font-size: 12.0pt;font-family: Arial;" face="Arial">Thanks for the advice. I looked at the examples in </font><span style="font-family: Arial;font-size: 12.0pt;"><a href="https://www.ncl.ucar.edu/Applications/regress.shtml" target="_blank">https://www.ncl.ucar.edu/Applications/regress.shtml</a>, especially examples 2 and 4, but I couldn't find any supplementary information about regCoef. I also can't find anything under $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl and $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl. <br></span></p><p style="font-size: 12.0pt;font-family: Arial;"><span style="font-family: Arial;font-size: 12.0pt;"><br></span></p><p style="font-size: 12.0pt;font-family: Arial;"><span style="font-family: Arial;font-size: 12.0pt;">Is NCL source code located anywhere in $NCARG_ROOT? Can anyone please point me where it is?</span></p><p style="font-size: 12.0pt;font-family: Arial;"><span style="font-family: Arial;font-size: 12.0pt;"><br></span></p><p style="font-size: 12.0pt;font-family: Arial;"><span style="font-family: Arial;font-size: 12.0pt;">Cheers,</span></p><p style="font-size: 12.0pt;font-family: Arial;"><span style="font-family: Arial;font-size: 12.0pt;">Giorgio</span><br></p></div>        <br>        <blockquote><br>        <br>   ------ Messaggio Originale ------<br>   Da: <a href="mailto:dave.allured@noaa.gov" target="_blank">dave.allured@noaa.gov</a><br>   A: <a href="mailto:g.graffino@tim.it" target="_blank">g.graffino@tim.it</a><br>Cc: <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>   Inviato: giovedì 13 ottobre 2022 18:47<br>   Oggetto: Re: [ncl-talk] regCoef_n without y-axis intercept<br>  <br>        <div dir="ltr"><div dir="ltr">Giorgio, for your second question, please see this very brief description that I recently wrote, for how to search for functions in the NCL source code.<div><a href="https://mailman.ucar.edu/pipermail/ncl-talk/2022-August/018954.html" target="_blank">https://mailman.ucar.edu/pipermail/ncl-talk/2022-August/018954.html</a></div></div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 13, 2022 at 10:38 AM Giorgio Graffino via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex; --darkreader-inline-border-left:#3e4446;" data-darkreader-inline-border-left=""><p style="font-size: 12.0pt;font-family: Arial;">Hi NCL community,</p><p style="font-size: 12.0pt;font-family: Arial;">I want regCoef_n to find the regression coefficient between two arrays without y-axis intercept. Do you know how I can change the function to do that?</p><p style="font-size: 12.0pt;font-family: Arial;">Can you also please tell me where I can find the function? I did a grep recursive search in my <span style="font-family: arial , sans-serif;font-size: 12.0pt;">$NCARG_ROOT directory but I couldn't find it.</span></p><p style="font-size: 12.0pt;font-family: Arial;"><span style="font-family: arial , sans-serif;font-size: 12.0pt;">Cheers,</span></p><p style="font-size: 12.0pt;font-family: Arial;"><span style="font-family: arial , sans-serif;font-size: 12.0pt;">Giorgio</span></p> </blockquote></div></div> <br>        </blockquote><br>        <br>_______________________________________________<br> ncl-talk mailing list<br> <a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br> List instructions, subscriber options, unsubscribe:<br> <a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br> </blockquote></div> <br>        </blockquote><br>        <br>        </div><hr>_______________________________________________<br><br>ncl-talk mailing list<br><br>ncl-talk@mailman.ucar.edu<br><br>List instructions, subscriber options, unsubscribe:<br><br><a target="_blank" href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br><br><br>        </blockquote><br>        <br> </div>