1 / 36

Script Languages in Science CCOM Student Seminar Series

Script Languages in Science CCOM Student Seminar Series. Kurt Schwehr 12-Nov-2008. http://vislab-ccom.unh.edu/~schwehr/Classes/2008/. Tides. Python Everywhere. Scripting Languages. bash. Comes with Linux and Mac Windows can get it via “cygwin”

gretel
Download Presentation

Script Languages in Science CCOM Student Seminar Series

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Script Languages in ScienceCCOM Student Seminar Series Kurt Schwehr 12-Nov-2008

  2. http://vislab-ccom.unh.edu/~schwehr/Classes/2008/

  3. Tides Python Everywhere

  4. Scripting Languages

  5. bash • Comes with Linux and Mac • Windows can get it via “cygwin” • Good to use as “glue” to hold it all together • Automate common tasks

  6. Full power of the Unix command line

  7. Why python? • Support on many operating systems (Windows, Mac, Linux) • More fun to program • Promotes readable code • Many support libraries (modules) including databases, plotting, geospatial, scientific processing • Used by Arc/GIS • No licenses required / free / open-source • Useful for almost all application types • “Easy” access to C and C++ libraries

  8. Getting Python • Windows – enthought, cygwin, or python.org • Mac – built in, fink/macports, or python.org • Linux – built in or python.org

  9. Python Books • http://www.coderholic.com/free-python-programming-books/ • A Byte of Python - http://www.swaroopch.com/notes/Python • Text Processing in Python - http://gnosis.cx/TPiP/ • Thinking In Python - http://www.mindview.net/Books/TIPython

  10. If there is interest, I can teach an in-depth python short course

  11. Python.org and Pypi

  12. Reading a file

  13. How did I collect this data?pyserial!

  14. Parsing the lines

  15. matplotlib

  16. Histograms

  17. projections

  18. ipython

  19. Databases

  20. Scipy

  21. fft

  22. Using libraries in other languages • Almost anything written in C, C++ or Fortran can be used in Python • There are many ways to accomplish this: • SWIG • SIP • PyInline • CPython • Ctypes • Boost Python • …

  23. Thanks for listening!

More Related