Presentation is loading. Please wait.

Presentation is loading. Please wait.

Script Languages in Science CCOM Student Seminar Series Kurt Schwehr 12-Nov-2008.

Similar presentations


Presentation on theme: "Script Languages in Science CCOM Student Seminar Series Kurt Schwehr 12-Nov-2008."— Presentation transcript:

1 Script Languages in Science CCOM 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

7

8 Full power of the Unix command line

9 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

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

11

12 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

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

14 Python.org and Pypi

15

16

17

18 Reading a file

19 How did I collect this data? pyserial!

20 Parsing the lines

21

22

23

24 matplotlib

25

26 Histograms

27 projections

28 ipython

29 Databases

30 Scipy

31

32

33

34 fft

35 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 – …

36 Thanks for listening!


Download ppt "Script Languages in Science CCOM Student Seminar Series Kurt Schwehr 12-Nov-2008."

Similar presentations


Ads by Google