100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
College aantekeningen

All kind of computer program for beginner

Beoordeling
-
Verkocht
-
Pagina's
40
Geüpload op
16-07-2022
Geschreven in
2021/2022

All kind of computer program for beginner

Instelling
Vak











Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Gekoppeld boek

Geschreven voor

Vak

Documentinformatie

Geüpload op
16 juli 2022
Aantal pagina's
40
Geschreven in
2021/2022
Type
College aantekeningen
Docent(en)
Naseem
Bevat
Alle colleges

Onderwerpen

Voorbeeld van de inhoud

Contents

Preface i

Contents 2

1 Getting Started 3
1.1 Basic Skills . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.1.1 Using xterms and logging in to the server . . . . . . . . . . . . 4
1.1.2 About the Python Shell and idle . . . . . . . . . . . . . . . . 5
1.1.3 Running Python Locally . . . . . . . . . . . . . . . . . . . . . 7
1.2 Fun with Python . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.2.1 Basic operations . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.2.2 Lists, tuples and strings . . . . . . . . . . . . . . . . . . . . . 9
1.2.3 Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1.2.4 Getting help . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1.2.5 Program control: Looping, conditionals and functions . . . . . 12
1.3 Progressing in Python . . . . . . . . . . . . . . . . . . . . . . . . . . 16
1.3.1 Writing your own modules and executable scripts . . . . . . . 17
1.3.2 List comprehension . . . . . . . . . . . . . . . . . . . . . . . . 18
1.3.3 Using objects in Python . . . . . . . . . . . . . . . . . . . . . 18
1.3.4 The Numeric array package . . . . . . . . . . . . . . . . . . . 20
1.3.5 The Curve object and its uses . . . . . . . . . . . . . . . . . . 25
1.4 Advanced Python Topics . . . . . . . . . . . . . . . . . . . . . . . . . 28
1.4.1 Defining your own objects . . . . . . . . . . . . . . . . . . . . 28

v

, 1.4.2 Dictionaries . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
1.4.3 Writing text data to files . . . . . . . . . . . . . . . . . . . . . 37
1.4.4 Reading text data from a file . . . . . . . . . . . . . . . . . . 38

2 Thermodynamics and vertical structure 39
2.1 Tutorial: Getting physical properties and constants . . . . . . . . . . 40
2.2 Problem set: Dry thermodynamics . . . . . . . . . . . . . . . . . . . 41
2.2.1 Pressure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
2.2.2 Ideal gas law . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
2.2.3 Atmospheric composition and mixing ratios . . . . . . . . . . 42
2.2.4 Specific heat: Some basic problems . . . . . . . . . . . . . . . 42
2.2.5 Temperature-dependent specific heat . . . . . . . . . . . . . . 43
2.2.6 Potential Temperature and the Dry Adiabat . . . . . . . . . . 43
2.2.7 Inhomogeneous mixtures; Potential density and ”virtual tem-
perature” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
2.3 Data Lab: Analysis of temperature profile data . . . . . . . . . . . . 44
2.3.1 Analysis of tropical Earth soundings . . . . . . . . . . . . . . 44
2.3.2 Analysis of midlatitude Earth soundings . . . . . . . . . . . . 46
2.3.3 Analysis of planetary soundings . . . . . . . . . . . . . . . . . 47
2.4 Tutorial: Numerical solution of differential equations . . . . . . . . . 48
2.5 Problem set: Hydrostatics . . . . . . . . . . . . . . . . . . . . . . . . 52
2.5.1 Mass of carbon in the Earth’s atmosphere . . . . . . . . . . . 52
2.5.2 Mass of Titan’s atmosphere . . . . . . . . . . . . . . . . . . . 52
2.5.3 The dry adiabatic lapse rate . . . . . . . . . . . . . . . . . . . 53
2.5.4 Heat capacity of atmospheric columns . . . . . . . . . . . . . 53
2.6 Problem set: Moist thermodynamics . . . . . . . . . . . . . . . . . . 53
2.6.1 Latent heat . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
2.6.2 Using the simplified form of the Clausius-Clapeyron relation . 53
2.6.3 Methane on Titan . . . . . . . . . . . . . . . . . . . . . . . . . 54
2.6.4 Boiling vs. evaporation . . . . . . . . . . . . . . . . . . . . . . 54

vi

, 1

2.6.5 Comparison of idealized vs. empirical saturation vapor pressure 55
2.6.6 Variable latent heat . . . . . . . . . . . . . . . . . . . . . . . . 55
2.6.7 Latent heat from Clausius-Clapeyron . . . . . . . . . . . . . . 55
2.6.8 Water content of the atmosphere . . . . . . . . . . . . . . . . 57
2.6.9 CO2 condensation in the Martian Winter . . . . . . . . . . . . 57
2.6.10 CO2 condensation on Snowball Earth . . . . . . . . . . . . . . 57
2.6.11 Moist adiabat for atmosphere with two condensible components 58
2.6.12 Springtime for Europa . . . . . . . . . . . . . . . . . . . . . . 58
2.7 Computation Lab: Computing the moist adiabat . . . . . . . . . . . 59
2.8 Problem set: Rayleigh fractionation . . . . . . . . . . . . . . . . . . . 60

3 Elementary radiation balance problems 61

4 Continuous atmosphere radiation problems 63

5 Radiative-convective model problems 65

6 Scattering problems 67

7 Data analysis problems: Earth radiation budget 69

8 Surface energy budget problems 71

9 Seasonal Cycle problems 73

10 Atmospheric evolution modelling problems 75

11 Meridional heat transport modelling problems 77

12 Appendix A: Hints for the user of Unix and its relatives 79
12.1 Simple Unix for the masses . . . . . . . . . . . . . . . . . . . . . . . . 79
12.2 A few useful Unix utilities . . . . . . . . . . . . . . . . . . . . . . . . 80
12.3 Nasty Unix stuff I hope you won’t have to deal with . . . . . . . . . . 80
12.4 Public domain software to install on the server . . . . . . . . . . . . . 83

, 2

12.5 Installing the courseware . . . . . . . . . . . . . . . . . . . . . . . . . 85
$7.99
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten

Maak kennis met de verkoper
Seller avatar
endashaan

Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

Seller avatar
endashaan Rajarata University Of Sri Lanka
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
0
Lid sinds
4 jaar
Aantal volgers
0
Documenten
6
Laatst verkocht
-

0.0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via Bancontact, iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo eenvoudig kan het zijn.”

Alisha Student

Veelgestelde vragen