Re: [f2py] New user of f2py
Tim-DRS <[email protected]> Thu, 26 Jul 2012 03:21:37 -0500
| Newsgroups | gmane.comp.python.f2py.user |
|---|---|
| Message-ID | <[email protected]> |
--===============9144626334198394136== Content-Transfer-Encoding: 7bit Content-Type: multipart/alternative; boundary=Apple-Mail-17--88520984 --Apple-Mail-17--88520984 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii I don't know the answer directly; i sm not sure anyone can answer as the sol= ution likely depends on the % of effort required for f2py overhead to call t= he program vs the % of effort to execute the 6s code.=20 Also, the type and size/extent of arguments (if any) may slow down f2py. I s= uggest the best way to know is to write a small script to call the .exe 'N' t= imes and do the same for f2py. =20 Tim On Jul 25, 2012, at 2:53 PM, Cody Schank <[email protected]> wrote: > Hello, >=20 > I'm a new user of f2py and have a basic question before I dive into it.=20= >=20 > I want to run the 6s atmospheric correction code using Python (http://6s.l= tdri.org/). Right now I used the subprocess file to call a .exe file compil= ed from the 6s Fortran code. I call this file many, many times. Basically I= am wondering it it would be faster to use f2py. Does anybody know if that w= ould be the case? =20 >=20 > Thanks! > _______________________________________________ > f2py-users mailing list > f2py-users-Y4l6ocDipWCuvFJfX82//[email protected] > http://cens.ioc.ee/mailman/listinfo/f2py-users --Apple-Mail-17--88520984 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><body bgcolor=3D"#FFFFFF"><div>I don't know the answer directly; i sm n= ot sure anyone can answer as the solution likely depends on the % of effort r= equired for f2py overhead to call the program vs the % of effort to execute t= he 6s code. </div><div><br></div><div>Also, the type and size/extent of= arguments (if any) may slow down f2py. I suggest the best way to know= is to write a small script to call the .exe 'N' times and do the same for f= 2py. <br><br>Tim</div><div><br>On Jul 25, 2012, at 2:53 PM, Cody Schan= k <<a href=3D"mailto:[email protected]">[email protected]</a>> w= rote:<br><br></div><div></div><blockquote type=3D"cite"><div>Hello,<div><br>= </div><div>I'm a new user of f2py and have a basic question before I dive in= to it. </div><div><br></div><div>I want to run the 6s atmospheric corre= ction code using Python (<a href=3D"http://6s.ltdri.org/"><a href=3D"http://= 6s.ltdri.org/">http://6s.ltdri.org/</a></a>). Right now I used the sub= process file to call a .exe file compiled from the 6s Fortran code. I c= all this file many, many times. Basically I am wondering it it would b= e faster to use f2py. Does anybody know if that would be the case? &nb= sp;</div> <div><br></div><div>Thanks!</div> </div></blockquote><blockquote type=3D"cite"><div><span>____________________= ___________________________</span><br><span>f2py-users mailing list</span><b= r><span><a href=3D"mailto:f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]">f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]</a>= </span><br><span><a href=3D"http://cens.ioc.ee/mailman/listinfo/f2py-users">= http://cens.ioc.ee/mailman/listinfo/f2py-users</a></span><br></div></blockqu= ote></body></html>= --Apple-Mail-17--88520984-- --===============9144626334198394136== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ f2py-users mailing list f2py-users-Y4l6ocDipWCuvFJfX82//[email protected] http://cens.ioc.ee/mailman/listinfo/f2py-users --===============9144626334198394136==--