+ All Categories
Home > Documents > Introduction to - Division · Event Map -29 Off Region Observation Positions -31 22h02m 21h58m 35...

Introduction to - Division · Event Map -29 Off Region Observation Positions -31 22h02m 21h58m 35...

Date post: 05-Aug-2020
Category:
Upload: others
View: 1 times
Download: 0 times
Share this document with a friend
13
Introduction to
Transcript
Page 1: Introduction to - Division · Event Map -29 Off Region Observation Positions -31 22h02m 21h58m 35 30 25 20 15 On Region 21h55m Event Map -29 Regions Observation'* Positions 22h02m

Introduction to

Page 2: Introduction to - Division · Event Map -29 Off Region Observation Positions -31 22h02m 21h58m 35 30 25 20 15 On Region 21h55m Event Map -29 Regions Observation'* Positions 22h02m

Why Python?Highly expressive:friends = ['john', 'pat', 'gary', 'michael']for i, name in enumerate(friends): print("iteration {iteration} is {name}".format(iteration=i, name=name))

Extendability:libraries for numerics, data analysis,plotting, financing, ...

Ease:Easy to learn, change from IDL or Matlab.

Very active community

Object oriented

Interoperability:Import IDL and Matlab code.“But all my routines are written in IDL.”

Page 3: Introduction to - Division · Event Map -29 Off Region Observation Positions -31 22h02m 21h58m 35 30 25 20 15 On Region 21h55m Event Map -29 Regions Observation'* Positions 22h02m

Why Python?“Python is everywhere, it is all around us, even now in this very room.”

3ds MaxMayaBlenderCinema 4D...

Paraview, Visit, Vapor, ...

Civilization IV, Battlefield 2, World of Tanks, ...

Page 4: Introduction to - Division · Event Map -29 Off Region Observation Positions -31 22h02m 21h58m 35 30 25 20 15 On Region 21h55m Event Map -29 Regions Observation'* Positions 22h02m

Why Python?

Page 5: Introduction to - Division · Event Map -29 Off Region Observation Positions -31 22h02m 21h58m 35 30 25 20 15 On Region 21h55m Event Map -29 Regions Observation'* Positions 22h02m

Why Python?

Page 6: Introduction to - Division · Event Map -29 Off Region Observation Positions -31 22h02m 21h58m 35 30 25 20 15 On Region 21h55m Event Map -29 Regions Observation'* Positions 22h02m

History

1991, Guido van Rossum

Namesake:

Python 3.02008

Python 2.02000

Python Course

Python 3.52 2016

Page 7: Introduction to - Division · Event Map -29 Off Region Observation Positions -31 22h02m 21h58m 35 30 25 20 15 On Region 21h55m Event Map -29 Regions Observation'* Positions 22h02m

Ways of Using Python

https://www.python.org/

python/ipython

Page 8: Introduction to - Division · Event Map -29 Off Region Observation Positions -31 22h02m 21h58m 35 30 25 20 15 On Region 21h55m Event Map -29 Regions Observation'* Positions 22h02m

Ways of Using Python

Page 9: Introduction to - Division · Event Map -29 Off Region Observation Positions -31 22h02m 21h58m 35 30 25 20 15 On Region 21h55m Event Map -29 Regions Observation'* Positions 22h02m

OutlookMatplotlib Gallery Scipy Functionalities

Page 10: Introduction to - Division · Event Map -29 Off Region Observation Positions -31 22h02m 21h58m 35 30 25 20 15 On Region 21h55m Event Map -29 Regions Observation'* Positions 22h02m

OutlookPython Data Analysis Library mpmath

floating-point arithmetic with arbitrary precision

http://pandas.pydata.org

http://mpmath.org

Hierarchical Data Format vtk Data Format

Page 11: Introduction to - Division · Event Map -29 Off Region Observation Positions -31 22h02m 21h58m 35 30 25 20 15 On Region 21h55m Event Map -29 Regions Observation'* Positions 22h02m

OutlookSunPy

http://sunpy.org

astropy

http://www.astropy.org

Page 12: Introduction to - Division · Event Map -29 Off Region Observation Positions -31 22h02m 21h58m 35 30 25 20 15 On Region 21h55m Event Map -29 Regions Observation'* Positions 22h02m

Help!

# Python Documentationhelp(plt.plot)plt.plot?source(plt.plot)plt.plot??

Page 13: Introduction to - Division · Event Map -29 Off Region Observation Positions -31 22h02m 21h58m 35 30 25 20 15 On Region 21h55m Event Map -29 Regions Observation'* Positions 22h02m

Practice!


Recommended