MET4750 Techniques for Earth System Modeling MET 5990 Techniques for Earth System Modeling and Research (http://vortex.ihrc.fiu.edu/MET4570/MET4570.htm)

Slides:



Advertisements
Similar presentations
What is a Computer Program? For a computer to be able to do anything (multiply, play a song, run a word processor), it must be given the instructions.
Advertisements

What is Computer Software?. Hardware vs Software Got to have both to get the job done!
Chapter 5 Operating Systems. 5 The Operating System When working with multimedia, the operating system is perhaps the most important, the most complex,
Creating a Program In today’s lesson we will look at: what programming is different types of programs how we create a program installing an IDE to get.
Java.  Java is an object-oriented programming language.  Java is important to us because Android programming uses Java.  However, Java is much more.
Computer Concepts 5th Edition Parsons/Oja Page 546 CHAPTER 11 Software Engineering Section A PARSONS/OJA Computer Programming.
Programming Introduction November 9 Unit 7. What is Programming? Besides being a huge industry? Programming is the process used to write computer programs.
Course: Introduction to Computers
Types of software. Sonam Dema..
PYTHON: LESSON 1 Catherine and Annie. WHAT IS PYTHON ANYWAY?  Python is a programming language.  But what’s a programming language?  It’s a language.
Lesson 4 Computer Software
Thanks to: Dr. John S. Mallozzi Department of Computer Science 1. Introduction 2. Overview of programming in Python.
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
Python Mini-Course University of Oklahoma Department of Psychology Day 1 – Lesson 2 Fundamentals of Programming Languages 4/5/09 Python Mini-Course: Day.
Python Programming, 2/e1 Python Programming: An Introduction to Computer Science Chapter 1 Computers and Programs.
Adapted from John Zelle’s Book Slides1 CS177 Python Programming Chapter 1 Computers and Programs.
Topics Introduction Hardware and Software How Computers Store Data
Standard Grade Computing System Software & Operating Systems.
What is Computer Software?. Hardware vs Software Got to have both to get the job done!
Python Programming, 2/e1 Python Programming: An Introduction to Computer Science Chapter 1 Computers and Programs.
CHAPTER FOUR COMPUTER SOFTWARE.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 1 Introduction to Computers and Programming.
Introduction to Interactive Media Interactive Media Tools: Software.
Computer Programming A program is a set of instructions a computer follows in order to perform a task. solve a problem Collectively, these instructions.
Chapter 4 System Software. Software Programs that tell a computer what to do and how to do it. Sets of instructions telling computers to perform actions.
Python From the book “Think Python”
Guide to Programming with Python Chapter One Getting Started: The Game Over Program.
Fundamental Programming: Fundamental Programming K.Chinnasarn, Ph.D.
Robert Crawford, MBA West Middle School.  Explain how the binary system is used by computers.  Describe how software is written and translated  Summarize.
CS 127 Introduction to Computer Science. What is a computer?  “A machine that stores and manipulates information under the control of a changeable program”
Introduction to Python Lesson 1 First Program. Learning Outcomes In this lesson the student will: 1.Learn some important facts about PC’s 2.Learn how.
ECET – Dynamic Programming with Python Spring 2013 Lecture L1 – Introduction to Python Page 1 Welcome! This is Professor Jai P. Agrawal. I will walk.
 Programming - the process of creating computer programs.
What is Computer Software?. Hardware vs Software Got to have both to get the job done!
Chapter 1 Basic Concepts of Operating Systems Introduction Software A program is a sequence of instructions that enables the computer to carry.
Installing Java on a Home machine For Windows Users: Download/Install: Go to downloads html.
A Python Tour: Just a Brief Introduction "The only way to learn a new programming language is by writing programs in it." -- B. Kernighan and D. Ritchie.
The single most important skill for a computer programmer is problem solving Problem solving means the ability to formulate problems, think creatively.
1. COMPUTERS AND PROGRAMS Rocky K. C. Chang September 6, 2015 (Adapted from John Zelle’s slides)
Introduction  Program: Set of sequence instruction that tell the computer what to do.  Software: A collection of programs, data, and information. 
OCR A Level F453: The function and purpose of translators Translators a. describe the need for, and use of, translators to convert source code.
Programming 2 Intro to Java Machine code Assembly languages Fortran Basic Pascal Scheme CC++ Java LISP Smalltalk Smalltalk-80.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Python Programming, 3/e1 Python Programming: An Introduction to Computer Science Chapter 1 Computers and Programs.
Python Programming Module 1 Computers and Programs Python Programming, 2/e1.
PROBLEM SOLVING WARM-UP Fill in the spaces using any operation to solve the following (!, (), -/+,÷,×): = 6.
And now for something completely different…
Introduction to Computers
Installing Java on a Home machine
Why don’t programmers have to program in machine code?
Development Environment
CMIT100 Chapter 14 - Programming.
MET4750 Techniques for Earth System Modeling
A Python Tour: Just a Brief Introduction
Computational Thinking, Problem-solving and Programming: General Principals IB Computer Science.
Topics Introduction Hardware and Software How Computers Store Data
Introduction to Computer Science
Introduction to Computers and Java
A451 Theory – 7 Programming 7A, B - Algorithms.
Course: Introduction to Computers
TRANSLATORS AND IDEs Key Revision Points.
Installing Java on a Home machine
Introduction to Computers
Computer Science I CSC 135.
Chapter 2: System Structures
What is Computer Software?
Introduction to Computer Software
15-110: Principles of Computing
Chapter 1: Programming Basics, Python History and Program Components
Review of Previous Lesson
Presentation transcript:

MET4750 Techniques for Earth System Modeling MET 5990 Techniques for Earth System Modeling and Research ( (

Governing Equations of Geophysical Fluid 1. Equation of state 2. Mass conservation 3. Momentum equation, Newton law 4. Equation of energy conservation, first law of thermodynamics 5. Conservation of moisture We have total nine equations for nine unknowns System is closed!

Issues with numerical forecasts Initial value problem  British scientist L. F. Richardson Weather Prediction by Numerical Process, 1922  American meteorologist J. G. Charney Quasi-geostrophic model, 1950 Incompressible

Mean variables in observations and simulations

The average could be temporal, spatial, or ensemble average depending on specific dataset. Mean and perturbation 1. Mean equation of state 2. Mean mass conservation equation 3. Mean momentum equation

4. Mean equation of energy conservation 5. Mean equation of moisture conservation Closure a. First-order closure

What is Computer Science? It is not the study of computers! “Computers are to computer science what telescopes are to astronomy.” The question really is, “What can be computed?” What is a computer program? –A detailed, step-by-step set of instructions telling a computer what to do. –If we change the program, the computer performs a different set of actions or a different task. –The machine stays the same, but the program changes!

Programming Languages Natural language has ambiguity and imprecision problems when used to describe complex algorithms. Every structure in programming language has a precise form, called its syntax Every structure in programming language has a precise meaning, called its semantics. Programmers will often refer to their program as computer code. Process of writing an algorithm in a programming language often called coding.

High-level computer languages –Designed to be used and understood by humans Low-level language –Computer hardware can only understand a very low level language known as machine language High-level language c = a + b This needs to be translated into machine language that the computer can execute. Compilers convert programs written in a high- level language into the machine language of some computer. For example, FORTRAN compiler converts FORTRAN codes to machine language, which is binary (0, 1).

Interpreters simulate a computer that understands a high-level language. The source program is not translated into machine language all at once. An interpreter analyses and executes the source code instruction by instruction. Interpreter Compiling vs. Interpreting –Once program is compiled, it can be executed over and over without the source code or compiler. If it is interpreted, the source code and interpreter are needed each time the program runs –Compiled programs generally run faster since the translation of the source code happens only once.

–Interpreted languages are part of a more flexible programming environment since they can be developed and run interactively –Interpreted programs are more portable, meaning the executable code produced from a compiler for a Pentium won’t run on a Mac, without recompiling. However, if a suitable interpreter already exists, the interpreted code can be run with no modifications.

What is Python and why Python? Python is an interpreted programming language. It is named after the BBC show “Monty Python’s Flying Circus”. Python offers much more structure and support for large programs than shell scripts or batch files can offer, and it is much easier to check error than C. Being a very high-level language, Python has high-level data types built in, such as flexible arrays and dictionaries. Python allows you to split your program into modules that can be reused in other Python programs. It comes with a large collection of standard modules that you can use as the basis of your programs. Some of these modules provide things like I/O, system calls, and even interfaces to graphical user interface (GUI). Python is simple to use and is free!

Downloading and Installing Python Python can be downloaded at We are using Python3.5.2 version. There are installers for 64-bit and 32-bit computers. If your computer was bought in 2007 or later, it is most likely a 64-bit system. To find out,  On Windows, select Start > Control Panel > System and Security > System  On OS X, go to the apple menu, select About This Mac > More Info > System Report > Hardware. If you see Core Solo or Core Duo, then, it is a 32-bit machine. If it says something else including Intel Core 2 Duo, you have a 64-bit machine.  On Ubuntu Linux, open a terminal and run command uname –m. A response of i686 means 32-bit, and x86_64 means 64- bit.

Downloading and Installing Python On Windows, download the Python installer (ending with.msi) and double-click it and follow the instructions. On Mac OS X, download the.dmg file that is right for your version of OS X and follow the instructions. On Ubuntu Linux, open a terminal and run following commands, sudo apt-get install python3. sudo apt-get install idle3. sudo apt-get install python3-pip. Python is ready to use!

Starting IDLE On Windows 7, click the Start icon and enter IDLE in the search box, and select IDLE. On Mac OS X, open the Finder window, click Applications, click Python 3.5, and then click IDLE icon. On Ubuntu Linux, open a terminal and then enter idle3. You may also be able to click Applications, select Programming, and then, click IDLE 3. On Windows XP, click the Start icon and then select Programs > Python 3.5 > IDLE. You will see something like Python (v3.5.2:4def2a2901a5, Jun , 22:01:18) [MSC v bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>>

Python (v3.5.2:4def2a2901a5, Jun , 22:01:18) [MSC v bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> This window is called the interactive shell. This is where you enter instructions for the Python interpreter software to run. The computer reads the instructions you enter and runs them immediately. For example. >>> print(‘Hello world!’) Hello world! How to Find Help Most help can be obtained from the error message. Python gives detailed error message if your issued commands are wrong. Most of the time, error message can help you fix the problem. Search online.