Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to Python By Neil Cook Twitter: njcuk9999 Slides/Notes:

Similar presentations


Presentation on theme: "Introduction to Python By Neil Cook Twitter: njcuk9999 Slides/Notes:"— Presentation transcript:

1 Introduction to Python By Neil Cook Twitter: njcuk9999 Email: neil.james.cook@gmail.com Slides/Notes: star.herts.ac.uk/~ncook/pythonneil.james.cook@gmail.com

2 5.1 AstroPy: Unit Conversion

3 AstroPy: Unit Conversion 1 5.1 AstroPy: Unit Conversion

4 AstroPy: Unit Conversion 2 5.1 AstroPy: Unit Conversion

5 AstroPy: Unit Conversion 3 5.1 AstroPy: Unit Conversion

6 Combining and converting units 5.1 AstroPy: Unit Conversion

7 Exercise 5.1a 5.1 AstroPy: Unit Conversion

8 Solution 5.1a 5.1 AstroPy: Unit Conversion

9 Advanced features 1 5.1 AstroPy: Unit Conversion

10 Advanced features 2 5.1 AstroPy: Unit Conversion

11 Using Physical constants 5.1 AstroPy: Unit Conversion

12 Integration with numpy functions 5.1 AstroPy: Unit Conversion

13 Exercise 5.1b 5.1 AstroPy: Unit Conversion

14 Solution 5.1b 5.1 AstroPy: Unit Conversion

15 5.2 AstroPy: Tables

16 AstroPy: Tables 5.2 AstroPy: Tables

17 Creating tables 5.2 AstroPy: Tables

18 Looking at your table 5.2 AstroPy: Tables

19 Accessing parts of the table 1 5.2 AstroPy: Tables

20 Accessing parts of the table 2 5.2 AstroPy: Tables

21 Exercise 5.2a 5.2 AstroPy: Tables

22 Solution 5.2a 1 5.2 AstroPy: Tables

23 Solution 5.2a 2 5.2 AstroPy: Tables

24 Modifying the table 1 5.2 AstroPy: Tables

25 Modifying the table 2 5.2 AstroPy: Tables

26 Converting the table to numpy 5.2 AstroPy: Tables

27 Masked tables 1 5.2 AstroPy: Tables

28 Masked tables 2 5.2 AstroPy: Tables

29 High-level table operations 1 5.2 AstroPy: Tables

30 High-level table operations 2 5.2 AstroPy: Tables

31 High-level table operations 3 5.2 AstroPy: Tables

32 Writing data 5.2 AstroPy: Tables

33 Reading data 5.2 AstroPy: Tables

34 5.3 AstroPy - Handling FITS files

35 AstroPy - Handling FITS files 5.3 AstroPy - Handling FITS files

36 Reading FITS files and accessing data 1 5.3 AstroPy - Handling FITS files

37 Reading FITS files and accessing data 2 5.3 AstroPy - Handling FITS files

38 Reading FITS files and accessing data 3 5.3 AstroPy - Handling FITS files

39 Reading FITS files and accessing data 4 5.3 AstroPy - Handling FITS files

40 Reading FITS files and accessing data 5 5.3 AstroPy - Handling FITS files

41 Reading FITS files and accessing data 6 5.3 AstroPy - Handling FITS files

42 Reading FITS files and accessing data 7 5.3 AstroPy - Handling FITS files

43 Creating a FITS file from scratch 5.3 AstroPy - Handling FITS files

44 Exercise 5.3a 5.3 AstroPy - Handling FITS files

45 Solution 5.3a 5.3 AstroPy - Handling FITS files

46 Creating a multi-extension FITS file 1 5.3 AstroPy - Handling FITS files

47 Creating a multi-extension FITS file 2 5.3 AstroPy - Handling FITS files

48 Convenience functions 5.3 AstroPy - Handling FITS files

49 5.4 Object-oriented programming

50 Object-oriented programming 1 5.4 Object-oriented programming

51 Object-oriented programming 2 5.4 Object-oriented programming

52 Object-oriented programming 3 5.4 Object-oriented programming

53 Classes, instances and methods 1 5.4 Object-oriented programming

54 Classes, instances and methods 2 5.4 Object-oriented programming

55 Classes, instances and methods 3 5.4 Object-oriented programming

56 Classes, instances and methods 4 5.4 Object-oriented programming

57 Classes, instances and methods 5 5.4 Object-oriented programming

58 Classes, instances and methods 6 5.4 Object-oriented programming

59 Classes, instances and methods 7 5.4 Object-oriented programming

60 Exercise 5.4a 5.4 Object-oriented programming

61 Solution 5.4a 5.4 Object-oriented programming

62 Inheritance 1 5.4 Object-oriented programming

63 Inheritance 2 5.4 Object-oriented programming

64 Attributes 5.4 Object-oriented programming

65 Why use objects? 1 5.4 Object-oriented programming

66 Why use objects? 2 5.4 Object-oriented programming

67 Why use objects? 3 5.4 Object-oriented programming

68 Unified Modelling Language (UML) 1 5.4 Object-oriented programming

69 Unified Modelling Language (UML) 2 5.4 Object-oriented programming

70 5.5 Some useful tricks and tips See notes for some useful extra bits of code that will be very useful!

71 5.6 Own Projects

72 Own Projects 1 5.6 Own Projects

73 Coursework (based on object orientated programming) Coursework 1: Particle Physics Coursework 2: Bank Account Coursework 3: Astronomy Walk through and skeleton codes are provided in the notes 5.6 Own Projects

74 Introduction to Python By Neil Cook Twitter: njcuk9999 Email: neil.james.cook@gmail.com Slides/Notes: star.herts.ac.uk/~ncook/pythonneil.james.cook@gmail.com


Download ppt "Introduction to Python By Neil Cook Twitter: njcuk9999 Slides/Notes:"

Similar presentations


Ads by Google