Python Development Technical Note 4

Size: px
Start display at page:

Download "Python Development Technical Note 4"

Transcription

1 Python Development Technical Note 4 Peter Higgins, October 1, 2018 Introduction Programmed data analysis, and resultant presentation graphics (especially done by me) needs to be accomplished without using Matlab so as to be free from expensive licensed software that not all TAMUG researchers might have. In my case, I have only a student license which prohibits its use professionally, not to mention I m not a student. But the same analysis can be done using Python with its associated libraries such as MatPlotLib and Numpy. Python is increasingly becoming the computer language for science and engineering because it is open source and has a graphics library closely enabling all the Matlab plots of various kinds. In addition to presentation graphics, Python through its library Numpy, also implements the matrix manipulations needed for curve fitting and EOF analysis ( see eof2.eofsolve from Numpy). I am in the process now of learning Python after many year s using Matlab. This note describes my progress. Implementing Python To get Python for windows I downloaded, and installed Python37 from I selected Python released 6/27/018. The needed libraries come from including MatPlotLib, numpy and many more that support special functions. These are downloaded as.whl files that are installed using pip. When all Python related files are obtained, a GUI interface is essential for writing, and debugging Python scripts. Although Visual Studio can be used if one has already bought it; I m using Eclipse Oxygen for my programming which is freely available from Once downloaded and unwrapped, it must be configured for Python using PyDev as explained in detail here: Method To learn file data processing and data display using Python, I downloaded several Galveston Bay data files from TAMUG s TCBSatlas including those for: dissolved oxygen, salinity and temperature. Using Python with imported MatPlotLib and Numpy, the data files were opened. In some cases data was read line by line into lists and/or numpy arrays using readline(); in other cases all the data was read into one string using read(). The native storage variable for multiple values in Python is a List (of strings), but using numpy arrays, data can be stored in numeric multidimensional arrays. Python is rich with string handling functions that can filter and separate the data. This is also a function that can convert a list to a matrix (np.asarray()). Higgins, Technical Note 4 Page 1

2 Results Creating a mask to overlay contour plots A mask is needed to overlay plotted contours to show only the portion of the contour above the region of interest. Contours of DO over land are meaningless. The appropriate mask is produced by adding a point by point path in Google Earth Pro which traces the bay then boxes a surround defining the mask area. When done, save the path as a.kml file. In the program that reads and plots the data as a contour, add code to read this.kml line by line until reaching the line in this file giving coordinates of the mask (usually line 40). Read this line, strip it of extraneous characters, and split it into a list based on, as the delimiter. Then plot this polygon as a patch filled with an opaque color (black in this case) after plotting the contours. Figure 1 Google Earth mask generation Masked subplots of contours of seasonal dissolved oxygen Figure 2 is an exercise in learning to plot fiiied contours of data read from CTBSatlas files. In the plot below seasonal variation of DO is contoured as a companion to the points plots discussed next. An important feature learned is control of the colorbars and color pallets. Ordinarily the range displayed in the colorbars is automatically linked to the range of data in the z axes. This makes comparison of two figures more difficult, and can be misleading. Higgins, Technical Note 4 Page 2

3 In Python most plotting is straight-forward, however, contour plotting relies on two important steps: (1) making linspaces from the latitude and longitude sets, and (2) using griddata() to map levels to the linspace variables as in: xi = np.linspace(lgmin,lgmax, delta) yi = np.linspace(lmin,lmax, delta) zi = griddata((wxa,wya),wza,(xi[none,:], yi[:,none]), method= linear ) wherein lgmin and lgmax are limits to the longitude extent and lmin and lmax are limits to the latitude extent, delta is the number of datapoints, and Wxa, Way are the numpy arrays of longitudes and latitudes. The library function griddata maps the point array of DO levels as a function of position onto the linspace grid. In Figure 2 it can be seen that DO levels are higher in Winter for both Galveston and East Bays, and that monthly means are nearly the same accoss bays. Figure 2-Galveston and East Bay contours of seasonal DO, all years Higgins, Technical Note 4 Page 3

4 Point 3D subplots of seasonal dissolved oxygen Seasonal (in the form of June compared to December) data points of dissolved oxygen for Galveston and East bay, for all years in the CTBSatlas DO datafile, are 3D point plotted in figure 3 below. The mean of each filtered dataset is given in each plot s title. These plots confirm the result seen in figure 2 that in both bays DO levels are significantly higher in Winter. It is also noted that the monthly means of the DO datasets are similar in both bays. The coding of figures 2-3 included several features of future interest: programmed cases which coordinate title strings, axes labeling, font sizes and weights (Python also allows plot characteristics to be placed in style sheets); multi-line titles; subplots; adding variables into strings; using Python lists and Numpy float arrays, point colors and marker size and customized plot ticks. Unfilled seasonal contours of temperatures Figure 3 Galveston, and East Bay seasonal DO, all years Figures 4 and 5, shown next, are seasonal, unmasked and unfilled contours of Galveston Bay temperate in June and December. This was an exercise in specifying the number of contours, and in labeling them with chosen font size. Higgins, Technical Note 4 Page 4

5 Figure 4 Galveston Bay June temperatures, all years Figure 5 Galveston Bay December temperatures, all years It can be seen that the Winter temperatures are much lower than in the Summer, and that the Winter temperature distribution is more complex. Higgins, Technical Note 4 Page 5

Data needs to be prepped for loading into matlab.

Data needs to be prepped for loading into matlab. Outline Preparing data sets CTD Data from Tomales Bay Clean up Binning Combined Temperature Depth plots T S scatter plots Multiple plots on a single figure What haven't you learned in this class? Preparing

More information

SES 123 Global and Regional Energy Lab Worksheet

SES 123 Global and Regional Energy Lab Worksheet SES 123 Global and Regional Energy Lab Worksheet Introduction An important aspect to understand about our planet is global temperatures, including spatial variations, such as between oceans and continents

More information

Data Science with Python Course Catalog

Data Science with Python Course Catalog Enhance Your Contribution to the Business, Earn Industry-recognized Accreditations, and Develop Skills that Help You Advance in Your Career March 2018 www.iotintercon.com Table of Contents Syllabus Overview

More information

Lab 6: Graphical Methods

Lab 6: Graphical Methods Lab 6: Graphical Methods 6.1 Introduction EGR 53L - Fall 2009 Lab this week is going to introduce graphical solution and presentation techniques as well as surface plots. 6.2 Resources The additional resources

More information

SES 123 Global and Regional Energy Lab Procedures

SES 123 Global and Regional Energy Lab Procedures SES 123 Global and Regional Energy Lab Procedures Introduction An important aspect to understand about our planet is global temperatures, including spatial variations, such as between oceans and continents

More information

David J. Pine. Introduction to Python for Science & Engineering

David J. Pine. Introduction to Python for Science & Engineering David J. Pine Introduction to Python for Science & Engineering To Alex Pine who introduced me to Python Contents Preface About the Author xi xv 1 Introduction 1 1.1 Introduction to Python for Science and

More information

Using the Matplotlib Library in Python 3

Using the Matplotlib Library in Python 3 Using the Matplotlib Library in Python 3 Matplotlib is a Python 2D plotting library that produces publication-quality figures in a variety of hardcopy formats and interactive environments across platforms.

More information

Table of Contents. Introduction.*.. 7. Part /: Getting Started With MATLAB 5. Chapter 1: Introducing MATLAB and Its Many Uses 7

Table of Contents. Introduction.*.. 7. Part /: Getting Started With MATLAB 5. Chapter 1: Introducing MATLAB and Its Many Uses 7 MATLAB Table of Contents Introduction.*.. 7 About This Book 1 Foolish Assumptions 2 Icons Used in This Book 3 Beyond the Book 3 Where to Go from Here 4 Part /: Getting Started With MATLAB 5 Chapter 1:

More information

LAB 6: LOOP STATEMENTS

LAB 6: LOOP STATEMENTS NAME: LAB 6: LOOP STATEMENTS This laboratory exercise will involve you writing your first loop statements in MATLAB functions and scripts. Your final code will be handed in via a single zip file following

More information

Episode 8 Matplotlib, SciPy, and Pandas. We will start with Matplotlib. The following code makes a sample plot.

Episode 8 Matplotlib, SciPy, and Pandas. We will start with Matplotlib. The following code makes a sample plot. Episode 8 Matplotlib, SciPy, and Pandas Now that we understand ndarrays, we can start using other packages that utilize them. In particular, we're going to look at Matplotlib, SciPy, and Pandas. Matplotlib

More information

GLY 6932/6862 Numerical Methods in Earth Sciences Spring 2009

GLY 6932/6862 Numerical Methods in Earth Sciences Spring 2009 T-03-17-2009 GLY 6932/6862 Numerical Methods in Earth Sciences Spring 2009 Lesson 7 Geospatial Analysis (and other 3-d data) (With acknowledgements to C. Connors, W&L Univ.) In Earth sciences, we often

More information

MATH 2221A Mathematics Laboratory II

MATH 2221A Mathematics Laboratory II MATH A Mathematics Laboratory II Lab Assignment 4 Name: Student ID.: In this assignment, you are asked to run MATLAB demos to see MATLAB at work. The color version of this assignment can be found in your

More information

AMS209 Final Project: Linear Equations System Solver

AMS209 Final Project: Linear Equations System Solver AMS209 Final Project: Linear Equations System Solver Rene Gutierrez Marquez 1 UCSC 1 December 7, 2016 Abstract In this project an implementation of a solver of a system of linear equations is implemented.

More information

Visualisation in python (with Matplotlib)

Visualisation in python (with Matplotlib) Visualisation in python (with Matplotlib) Thanks to all contributors: Ag Stephens, Stephen Pascoe. Introducing Matplotlib Matplotlib is a python 2D plotting library which produces publication quality figures

More information

Introduction to scientific visualization with ParaView

Introduction to scientific visualization with ParaView Introduction to scientific visualization with ParaView Tijs de Kler SURFsara Visualization group Tijs.dekler@surfsara.nl (some slides courtesy of Robert Belleman, UvA) Outline Pipeline and data model (10

More information

5 File I/O, Plotting with Matplotlib

5 File I/O, Plotting with Matplotlib 5 File I/O, Plotting with Matplotlib Bálint Aradi Course: Scientific Programming / Wissenchaftliches Programmieren (Python) Installing some SciPy stack components We will need several Scipy components

More information

Introduction to Programming with Python 3, Ami Gates. Chapter 1: Creating a Programming Environment

Introduction to Programming with Python 3, Ami Gates. Chapter 1: Creating a Programming Environment Introduction to Programming with Python 3, Ami Gates Chapter 1: Creating a Programming Environment 1.1: Python, IDEs, Libraries, Packages, and Platforms A first step to learning and using any new programming

More information

Microsoft Word for Report-Writing (2016 Version)

Microsoft Word for Report-Writing (2016 Version) Microsoft Word for Report-Writing (2016 Version) Microsoft Word is a versatile, widely-used tool for producing presentation-quality documents. Most students are well-acquainted with the program for generating

More information

Final Project. Blair Gemmer. CSCI 444 Data Visualization. Fall 2011

Final Project. Blair Gemmer. CSCI 444 Data Visualization. Fall 2011 Final Project Blair Gemmer CSCI 444 Data Visualization Fall 2011 Hypothesis Most earthquakes occur between the 36N and -36N lines of Latitude, with an exceptional number of occurrences between the -180W

More information

Scientific Python: matplotlib

Scientific Python: matplotlib Scientific Python: matplotlib 17 July 2014 Introduction and Aims This exercise introduces the matplotlib module of Python. Matplotlib is a versatile plotting library that can be used to produce both quick

More information

User-Defined Function

User-Defined Function ENGR 102-213 (Socolofsky) Week 11 Python scripts In the lecture this week, we are continuing to learn powerful things that can be done with userdefined functions. In several of the examples, we consider

More information

Matrices and three-dimensional graphing

Matrices and three-dimensional graphing Matrices and three-dimensional graphing Module Summary Technical Tasks: 1. Create matrices in Matlab by assigning values, using for loops, or importing data 2. Do simple arithmetic with matrices in Matlab

More information

The 3 Voxet axes can be annotated: Menu > Voxet > Tools > Annotate Voxet > Custom system.

The 3 Voxet axes can be annotated: Menu > Voxet > Tools > Annotate Voxet > Custom system. Annotate Voxet The 3 Voxet axes can be annotated: Menu > Voxet > Tools > Annotate Voxet > Custom system. You can then enter the start and end coordinate values as well as custom labels. The annotation

More information

ERTH3021 Exploration and Mining Geophysics

ERTH3021 Exploration and Mining Geophysics ERTH3021 Exploration and Mining Geophysics Practical 1: Introduction to Scientific Programming using Python Purposes To introduce simple programming skills using the popular Python language. To provide

More information

Bi 1x Spring 2014: Plotting and linear regression

Bi 1x Spring 2014: Plotting and linear regression Bi 1x Spring 2014: Plotting and linear regression In this tutorial, we will learn some basics of how to plot experimental data. We will also learn how to perform linear regressions to get parameter estimates.

More information

Introduction to Matlab

Introduction to Matlab Introduction to Matlab Matlab (MATrix LABoratory) will be the programming environment of choice for the numerical solutions developed in this textbook due to its wide availability and its ease of use.

More information

Python Crash Course Numpy, Scipy, Matplotlib

Python Crash Course Numpy, Scipy, Matplotlib Python Crash Course Numpy, Scipy, Matplotlib That is what learning is. You suddenly understand something you ve understood all your life, but in a new way. Doris Lessing Steffen Brinkmann Max-Planck-Institut

More information

ME422 Mechanical Control Systems Matlab/Simulink Hints and Tips

ME422 Mechanical Control Systems Matlab/Simulink Hints and Tips Cal Poly San Luis Obispo Mechanical Engineering ME Mechanical Control Systems Matlab/Simulink Hints and Tips Ridgely/Owen, last update Jan Building A Model The way in which we construct models for analyzing

More information

CS 229: Machine Learning Final Report Identifying Driving Behavior from Data

CS 229: Machine Learning Final Report Identifying Driving Behavior from Data CS 9: Machine Learning Final Report Identifying Driving Behavior from Data Robert F. Karol Project Suggester: Danny Goodman from MetroMile December 3th 3 Problem Description For my project, I am looking

More information

Classes 7-8 (4 hours). Graphics in Matlab.

Classes 7-8 (4 hours). Graphics in Matlab. Classes 7-8 (4 hours). Graphics in Matlab. Graphics objects are displayed in a special window that opens with the command figure. At the same time, multiple windows can be opened, each one assigned a number.

More information

Python for Data Analysis

Python for Data Analysis Python for Data Analysis Wes McKinney O'REILLY 8 Beijing Cambridge Farnham Kb'ln Sebastopol Tokyo Table of Contents Preface xi 1. Preliminaries " 1 What Is This Book About? 1 Why Python for Data Analysis?

More information

Introduction to scientific visualization with ParaView

Introduction to scientific visualization with ParaView Introduction to scientific visualization with ParaView Paul Melis SURFsara Visualization group paul.melis@surfsara.nl (some slides courtesy of Robert Belleman, UvA) Outline Introduction, pipeline and data

More information

Python for Scientists

Python for Scientists High level programming language with an emphasis on easy to read and easy to write code Includes an extensive standard library We use version 3 History: Exists since 1991 Python 3: December 2008 General

More information

AMath 483/583 Lecture 28 June 1, Notes: Notes: Python scripting for Fortran codes. Python scripting for Fortran codes.

AMath 483/583 Lecture 28 June 1, Notes: Notes: Python scripting for Fortran codes. Python scripting for Fortran codes. AMath 483/583 Lecture 28 June 1, 2011 Today: Python plus Fortran Comments on quadtests.py for project Linear vs. log-log plots Visualization Friday: Animation: plots to movies Binary I/O Parallel IPython

More information

ATNS. USING Google EARTH. Version 1

ATNS. USING Google EARTH. Version 1 ATNS USING Google EARTH Version 1 ATNS/HO/Using Google Earth Page 1 25/04/2013 CONTENTS 1. BASIC SETUP 2. NAVIGATING IN GOOGLE EARTH 3. ADDING OBJECTS TO GOOGLE EARTH 4. USER HELP REFERENCES ATNS/HO/Using

More information

Final Project: Integrating ArcGIS Server with Google Maps Creating a Southern California Wildfire Mapping Application

Final Project: Integrating ArcGIS Server with Google Maps Creating a Southern California Wildfire Mapping Application Final Project: Integrating ArcGIS Server with Google Maps Creating a Southern California Wildfire Mapping Application In the final project for this course you will be creating an integrated Google Maps

More information

Programming Exercise 5: Regularized Linear Regression and Bias v.s. Variance

Programming Exercise 5: Regularized Linear Regression and Bias v.s. Variance Programming Exercise 5: Regularized Linear Regression and Bias v.s. Variance Machine Learning May 13, 212 Introduction In this exercise, you will implement regularized linear regression and use it to study

More information

A new Implementation of the N-D Lookup Tables

A new Implementation of the N-D Lookup Tables Torsten Sommer Markus Andres Stephan Diehl Modelon GmbH Agnes-Pockels-Bogen 1 D-80992 Munich, Germany torsten.sommer@modelon.com markus.andres@modelon.com stephan.diehl@modelon.com Abstract The HDF5Table

More information

Contour Analysis And Visualization

Contour Analysis And Visualization Contour Analysis And Visualization Objectives : stages The objectives of Contour Analysis and Visualization can be described in the following 1. To study and analyse the contour 2. Visualize the contour

More information

Math 3820 Project. 1 Typeset or handwritten? Guidelines

Math 3820 Project. 1 Typeset or handwritten? Guidelines Math 3820 Project Guidelines Abstract These are some recommendations concerning the projects in Math 3820. 1 Typeset or handwritten? Although handwritten reports will be accepted, I strongly recommended

More information

3 Selecting the standard map and area of interest

3 Selecting the standard map and area of interest Anomalies, EOF/PCA Mati Kahru 2005-2008 1 Anomalies, EOF/PC analysis with WAM 1 Introduction Calculating anomalies is a method of change detection in time series. Empirical Orthogonal Function (EOF) analysis

More information

ENGR Fall Exam 1 PRACTICE EXAM

ENGR Fall Exam 1 PRACTICE EXAM ENGR 13100 Fall 2012 Exam 1 PRACTICE EXAM INSTRUCTIONS: Duration: 60 minutes Keep your eyes on your own work! Keep your work covered at all times! 1. Each student is responsible for following directions.

More information

MATLAB 7. The Language of Technical Computing KEY FEATURES

MATLAB 7. The Language of Technical Computing KEY FEATURES MATLAB 7 The Language of Technical Computing MATLAB is a high-level technical computing language and interactive environment for algorithm development, data visualization, data analysis, and numerical

More information

INTERNATIONAL EDITION. MATLAB for Engineers. Third Edition. Holly Moore

INTERNATIONAL EDITION. MATLAB for Engineers. Third Edition. Holly Moore INTERNATIONAL EDITION MATLAB for Engineers Third Edition Holly Moore 5.4 Three-Dimensional Plotting Figure 5.8 Simple mesh created with a single two-dimensional matrix. 5 5 Element,5 5 The code mesh(z)

More information

pandas: Rich Data Analysis Tools for Quant Finance

pandas: Rich Data Analysis Tools for Quant Finance pandas: Rich Data Analysis Tools for Quant Finance Wes McKinney April 24, 2012, QWAFAFEW Boston about me MIT 07 AQR Capital: 2007-2010 Global Macro and Credit Research WES MCKINNEY pandas: 2008 - Present

More information

EMERALD: Radar/Lidar Visualization and Manipulation Tool for MATLAB. User s Guide

EMERALD: Radar/Lidar Visualization and Manipulation Tool for MATLAB. User s Guide EMERALD: Radar/Lidar Visualization and Manipulation Tool for MATLAB User s Guide For version 20150326 March 31, 2015 Author: Affiliation: Dr. Gregory Meymaris University Corporation for Atmospheric Research

More information

How to plot a species distribution on a simple map of New Zealand from an Excel file

How to plot a species distribution on a simple map of New Zealand from an Excel file How to plot a species distribution on a simple map of New Zealand from an Excel file This is a very simple step by step guide created by a beginner using QGIS for a beginner using QGIS. It will help you

More information

Ocean Data View (ODV) Manual V1.0

Ocean Data View (ODV) Manual V1.0 Ocean Data View (ODV) Manual V1.0 Prepared by the Coastal and Regional Oceanography Lab UNSW, Australia (www.oceanography.unsw.edu.au ) for the Sydney Institute of Marine Science. Table of Contents 1 Introduction

More information

Examples, examples: Outline

Examples, examples: Outline Examples, examples: Outline Overview of todays exercises Basic scripting Importing data Working with temporal data Working with missing data Interpolation in 1D Some time series analysis Linear regression

More information

Scientific Computing: Lecture 1

Scientific Computing: Lecture 1 Scientific Computing: Lecture 1 Introduction to course, syllabus, software Getting started Enthought Canopy, TextWrangler editor, python environment, ipython, unix shell Data structures in Python Integers,

More information

Engineering 162 Spring The Hewlett-Packard 4145B Semiconductor Parameter Analyzer

Engineering 162 Spring The Hewlett-Packard 4145B Semiconductor Parameter Analyzer Engineering 162 Spring 2005 The Hewlett-Packard 4145B Semiconductor Parameter Analyzer The Instrument: You will do most of the measurements for Lab 2 with a semiconductor parameter analyzer that was a

More information

General Program Description

General Program Description General Program Description This program is designed to interpret the results of a sampling inspection, for the purpose of judging compliance with chosen limits. It may also be used to identify outlying

More information

SignGO Pro // SignGO Lite Features Listing

SignGO Pro // SignGO Lite Features Listing SignGO Pro // SignGO Lite Features Listing Features Design Text Entry SignGO Lite SignGO Pro Artistic Text Text On Arc Text On Path Frame Text AutoMerge Script Drawing Shape drawing Freehand drawing Logos

More information

Appendix A. HINTS WHEN USING EXCEL w

Appendix A. HINTS WHEN USING EXCEL w Appendix A HINTS WHEN USING EXCEL w This appendix provides hints when using Microsoft Excel. Appendix A includes general features that are useful in all the applications solved with Excel in this book.

More information

IDL Tutorial. Contours and Surfaces. Copyright 2008 ITT Visual Information Solutions All Rights Reserved

IDL Tutorial. Contours and Surfaces. Copyright 2008 ITT Visual Information Solutions All Rights Reserved IDL Tutorial Contours and Surfaces Copyright 2008 ITT Visual Information Solutions All Rights Reserved http://www.ittvis.com/ IDL is a registered trademark of ITT Visual Information Solutions for the computer

More information

Getting Started with MATLAB

Getting Started with MATLAB Getting Started with MATLAB Math 315, Fall 2003 Matlab is an interactive system for numerical computations. It is widely used in universities and industry, and has many advantages over languages such as

More information

WINTER 2017 ECE 102 ENGINEERING COMPUTATION STANDARD HOMEWORK #3 ECE DEPARTMENT PORTLAND STATE UNIVERSITY

WINTER 2017 ECE 102 ENGINEERING COMPUTATION STANDARD HOMEWORK #3 ECE DEPARTMENT PORTLAND STATE UNIVERSITY WINTER 2017 ECE 102 ENGINEERING COMPUTATION STANDARD HOMEWORK #3 ECE DEPARTMENT PORTLAND STATE UNIVERSITY ECE 102 Standard Homework #3 (HW-s3) Problem List 15 pts Problem #1 - Curve fitting 15 pts Problem

More information

Introduction to Python Part 2

Introduction to Python Part 2 Introduction to Python Part 2 v0.2 Brian Gregor Research Computing Services Information Services & Technology Tutorial Outline Part 2 Functions Tuples and dictionaries Modules numpy and matplotlib modules

More information

Instructions for Getting Data into Google Earth

Instructions for Getting Data into Google Earth Instructions for Getting Data into Google Earth 21/10/14 1. Making simple placemarks in Google Earth from an Excel table An excel sheet can be set up with lat/long data and then put through a website like

More information

PROGRAMMING AND ENGINEERING COMPUTING WITH MATLAB Huei-Huang Lee SDC. Better Textbooks. Lower Prices.

PROGRAMMING AND ENGINEERING COMPUTING WITH MATLAB Huei-Huang Lee SDC. Better Textbooks. Lower Prices. PROGRAMMING AND ENGINEERING COMPUTING WITH MATLAB 2018 Huei-Huang Lee SDC P U B L I C AT I O N S Better Textbooks. Lower Prices. www.sdcpublications.com Powered by TCPDF (www.tcpdf.org) Visit the following

More information

Graphical Analysis of Data using Microsoft Excel [2016 Version]

Graphical Analysis of Data using Microsoft Excel [2016 Version] Graphical Analysis of Data using Microsoft Excel [2016 Version] Introduction In several upcoming labs, a primary goal will be to determine the mathematical relationship between two variable physical parameters.

More information

BODY / SYSTEM Specifically, the website consists of the following pages:

BODY / SYSTEM Specifically, the website consists of the following pages: GULF OF MEXICO MODELING SYSTEM WEBSITE http://www7330.nrlssc.navy.mil/gomms/index.html R. Holladay*, S. Holladay*, S. derada Naval Research Laboratory, Stennis Space Center, MS, USA *Student Intern SUMMARY

More information

Making Topographic Maps

Making Topographic Maps T O P O Applications N Making Topographic Maps M A P S Making Topographic Maps with TNTmips page 1 Before Getting Started TNTmips provides a variety of tools for working with map data and making topographic

More information

Lab 4: Structured Programming I

Lab 4: Structured Programming I 4.1 Introduction Lab 4: Structured Programming I Lab this week is going to focus on selective structures and functions. 4.2 Resources The additional resources required for this assignment include: 0 Books:

More information

Interpolation. Computer User Training Course Paul Dando. User Support. ECMWF 25 February 2016

Interpolation. Computer User Training Course Paul Dando. User Support. ECMWF 25 February 2016 Interpolation Computer User Training Course 2016 Paul Dando User Support advisory@ecmwf.int ECMWF 25 February 2016 1 Contents Introduction Overview of Interpolation Spectral Transformations Grid point

More information

KaleidaGraph Quick Start Guide

KaleidaGraph Quick Start Guide KaleidaGraph Quick Start Guide This document is a hands-on guide that walks you through the use of KaleidaGraph. You will probably want to print this guide and then start your exploration of the product.

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB Violeta Ivanova, Ph.D. MIT Academic Computing violeta@mit.edu http://web.mit.edu/violeta/www/iap2006 Topics MATLAB Interface and Basics Linear Algebra and Calculus Graphics Programming

More information

1. NJDEP Landscape 3.3 Viewer Interface

1. NJDEP Landscape 3.3 Viewer Interface Using the Landscape Project through NJDEP Landscape 3.3 Viewer Google Chrome or Mozilla Firefox are recommended for the use of this app. Navigate to the NJDEP-DFW s Landscape Project web page at www.njfishandwildlife.com/ensp/landscape/

More information

PyPlot. The plotting library must be imported, and we will assume in these examples an import statement similar to those for numpy and math as

PyPlot. The plotting library must be imported, and we will assume in these examples an import statement similar to those for numpy and math as Geog 271 Geographic Data Analysis Fall 2017 PyPlot Graphicscanbeproducedin Pythonviaavarietyofpackages. We willuseapythonplotting package that is part of MatPlotLib, for which documentation can be found

More information

Intermediate/Advanced Python. Michael Weinstein (Day 2)

Intermediate/Advanced Python. Michael Weinstein (Day 2) Intermediate/Advanced Python Michael Weinstein (Day 2) Topics Review of basic data structures Accessing and working with objects in python Numpy How python actually stores data in memory Why numpy can

More information

Homework Project #1. Math 365

Homework Project #1. Math 365 Homework Project # Math 365 For this homework, you are asked to write several files to disk using the function write file. For example, to save an array v to the file mysoln.out, use the command write_file(v,

More information

Lab Activity #2- Statistics and Graphing

Lab Activity #2- Statistics and Graphing Lab Activity #2- Statistics and Graphing Graphical Representation of Data and the Use of Google Sheets : Scientists answer posed questions by performing experiments which provide information about a given

More information

3.2 TIPS FOR USING MATLAB

3.2 TIPS FOR USING MATLAB 3.2 TIPS FOR USING MATLAB 3.2.1 Exporting Graphics from MATLAB to WORD and Editing Details Given a graphical plot in MATLAB, say graph.fig, the following procedure allows this graph to be imported into

More information

Registering new custom watershed models or other polygonal themes

Registering new custom watershed models or other polygonal themes Technical manual 55 Registering new custom watershed models or other polygonal themes Add new watershed model The Add New Watershed Model... option on the AWRD Modules menu allows users to register new

More information

INTRODUCTION TO MATLAB PLOTTING WITH MATLAB

INTRODUCTION TO MATLAB PLOTTING WITH MATLAB 1 INTRODUCTION TO MATLAB PLOTTING WITH MATLAB Plotting with MATLAB x-y plot Plotting with MATLAB MATLAB contains many powerful functions for easily creating plots of several different types. Command plot(x,y)

More information

PyPlot. The plotting library must be imported, and we will assume in these examples an import statement similar to those for numpy and math as

PyPlot. The plotting library must be imported, and we will assume in these examples an import statement similar to those for numpy and math as Geog 271 Geographic Data Analysis Fall 2015 PyPlot Graphicscanbeproducedin Pythonviaavarietyofpackages. We willuseapythonplotting package that is part of MatPlotLib, for which documentation can be found

More information

City of La Crosse Online Mapping Website Help Document

City of La Crosse Online Mapping Website Help Document City of La Crosse Online Mapping Website Help Document This document was created to assist in using the new City of La Crosse online mapping sites. When the website is first opened, a map showing the City

More information

INC151 Electrical Engineering Software Practice. MATLAB Graphics. Dr.Wanchak Lenwari :Control System and Instrumentation Engineering, KMUTT 1

INC151 Electrical Engineering Software Practice. MATLAB Graphics. Dr.Wanchak Lenwari :Control System and Instrumentation Engineering, KMUTT 1 INC151 Electrical Engineering Software Practice MATLAB Graphics Dr.Wanchak Lenwari :Control System and Instrumentation Engineering, KMUTT 1 Graphical display is one of MATLAB s greatest strengths and most

More information

Logical Subscripting: This kind of subscripting can be done in one step by specifying the logical operation as the subscripting expression.

Logical Subscripting: This kind of subscripting can be done in one step by specifying the logical operation as the subscripting expression. What is the answer? >> Logical Subscripting: This kind of subscripting can be done in one step by specifying the logical operation as the subscripting expression. The finite(x)is true for all finite numerical

More information

Government of Alberta. Find Your Farm. Alberta Soil Information Viewer. Alberta Agriculture and Forestry [Date]

Government of Alberta. Find Your Farm. Alberta Soil Information Viewer. Alberta Agriculture and Forestry [Date] Government of Alberta Find Your Farm Alberta Soil Information Viewer Alberta Agriculture and Forestry [Date] Contents Definitions... 1 Getting Started... 2 Area of Interest... 3 Search and Zoom... 4 By

More information

ARTIFICIAL INTELLIGENCE AND PYTHON

ARTIFICIAL INTELLIGENCE AND PYTHON ARTIFICIAL INTELLIGENCE AND PYTHON DAY 1 STANLEY LIANG, LASSONDE SCHOOL OF ENGINEERING, YORK UNIVERSITY WHAT IS PYTHON An interpreted high-level programming language for general-purpose programming. Python

More information

Additional Plot Types and Plot Formatting

Additional Plot Types and Plot Formatting Additional Plot Types and Plot Formatting The xy plot is the most commonly used plot type in MAT- LAB Engineers frequently plot either a measured or calculated dependent variable, say y, versus an independent

More information

Geological mapping using open

Geological mapping using open Geological mapping using open source QGIS MOHSEN ALSHAGHDARI -2017- Abstract Geological mapping is very important to display your field work in a map for geologist and others, many geologists face problems

More information

1-- Pre-Lab The Pre-Lab this first week is short and straightforward. Make sure that you read through the information below prior to coming to lab.

1-- Pre-Lab The Pre-Lab this first week is short and straightforward. Make sure that you read through the information below prior to coming to lab. EELE 477 Lab 1: Introduction to MATLAB Pre-Lab and Warm-Up: You should read the Pre-Lab and Warm-up sections of this lab assignment and go over all exercises in the Pre-Lab section before attending your

More information

Plotting With matplotlib

Plotting With matplotlib Lab Plotting With matplotlib and Mayavi Lab Objective: Introduce some of the basic plotting functions available in matplotlib and Mayavi. -D plotting with matplotlib The Python library matplotlib will

More information

A MATLAB Exercise Book. Ludmila I. Kuncheva and Cameron C. Gray

A MATLAB Exercise Book. Ludmila I. Kuncheva and Cameron C. Gray A MATLAB Exercise Book Ludmila I. Kuncheva and Cameron C. Gray Contents 1 Getting Started 1 1.1 MATLAB................................................. 1 1.2 Programming Environment......................................

More information

for ArcSketch Version 1.1 ArcSketch is a sample extension to ArcGIS. It works with ArcGIS 9.1

for ArcSketch Version 1.1 ArcSketch is a sample extension to ArcGIS. It works with ArcGIS 9.1 ArcSketch User Guide for ArcSketch Version 1.1 ArcSketch is a sample extension to ArcGIS. It works with ArcGIS 9.1 ArcSketch allows the user to quickly create, or sketch, features in ArcMap using easy-to-use

More information

Exercise 8B: Writing Data to a Feature Class with an Insert Cursor

Exercise 8B: Writing Data to a Feature Class with an Insert Cursor Exercise 8B: Writing Data to a Feature Class with an Insert Cursor Insert cursors are used to insert new rows into a feature class or table. When inserting rows into a feature class you will need to know

More information

Matplotlib Python Plotting

Matplotlib Python Plotting Matplotlib Python Plotting 1 / 6 2 / 6 3 / 6 Matplotlib Python Plotting Matplotlib is a Python 2D plotting library which produces publication quality figures in a variety of hardcopy formats and interactive

More information

DATA PLOTTING WITH MATLAB

DATA PLOTTING WITH MATLAB DATA PLOTTING WITH MATLAB Prof. Marco Pilotti marco.pilotti@ing.unibs.it Dr. Giulia Valerio giulia.valerio@ing.unibs.it Giulia Valerio 7Marzo 2014 1 1. WHY MATLAB? WHY MATLAB? Matlab is a high-level programming

More information

Fall 2017: Numerical Methods I Assignment 1 (due Sep. 21, 2017)

Fall 2017: Numerical Methods I Assignment 1 (due Sep. 21, 2017) MATH-GA 2010.001/CSCI-GA 2420.001, Georg Stadler (NYU Courant) Fall 2017: Numerical Methods I Assignment 1 (due Sep. 21, 2017) Objectives. This class is for you and you should try to get the most out of

More information

3D Horizon/Fault Interpretation Exercise Using Seismic Micro-Technology s PC based 2d/3dPAK Seismic Interpretation Software

3D Horizon/Fault Interpretation Exercise Using Seismic Micro-Technology s PC based 2d/3dPAK Seismic Interpretation Software 3D Horizon/Fault Interpretation Exercise Using Seismic Micro-Technology s PC based 2d/3dPAK Seismic Interpretation Software Prepared by Tom Wilson, Appalachian Region Resource Center, Petroleum Technology

More information

Plotting using Matlab. Vytautas Astromskas

Plotting using Matlab. Vytautas Astromskas Plotting using Matlab Vytautas Astromskas Contents 1 Manipulating a plot using GUI 2 2 Manipulating a plot using command line 4 3 Adding multiple lines to the same plot 5 4 Logarithmic axes 6 5 Plotting

More information

Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial Vb

Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial Vb Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial Vb Making Plots with Matlab (last updated 5/29/05 by GGB) Objectives: These tutorials are

More information

ENGR 102 Engineering Lab I - Computation

ENGR 102 Engineering Lab I - Computation ENGR 102 Engineering Lab I - Computation Learning Objectives by Week 1 ENGR 102 Engineering Lab I Computation 2 Credits 2. Introduction to the design and development of computer applications for engineers;

More information

Name: INSERT YOUR NAME HERE UWNetID: INSERT YOUR NETID

Name: INSERT YOUR NAME HERE UWNetID: INSERT YOUR NETID AMath 584 Homework 3 Due to dropbox by 6pm PDT, November 4, 2011 Name: INSERT YOUR NAME HERE UWNetID: INSERT YOUR NETID Use latex for this assignment! Submit a pdf file to the dropbox. You do not need

More information

MS6021 Scientific Computing. TOPICS: Python BASICS, INTRO to PYTHON for Scientific Computing

MS6021 Scientific Computing. TOPICS: Python BASICS, INTRO to PYTHON for Scientific Computing MS6021 Scientific Computing TOPICS: Python BASICS, INTRO to PYTHON for Scientific Computing Preliminary Notes on Python (v MatLab + other languages) When you enter Spyder (available on installing Anaconda),

More information

Introduction. Thank you for purchasing SpecMaps.

Introduction. Thank you for purchasing SpecMaps. Table of Contents Collecting Data 2 Map Boundary 2 Uploading a Data File 2 Viewing an Existing Chart 4 Deleting Maps 4 SpecMaps Charts 5 Unable to Process Data 6 Introduction Thank you for purchasing SpecMaps.

More information

Introduction to MatLab. Introduction to MatLab K. Craig 1

Introduction to MatLab. Introduction to MatLab K. Craig 1 Introduction to MatLab Introduction to MatLab K. Craig 1 MatLab Introduction MatLab and the MatLab Environment Numerical Calculations Basic Plotting and Graphics Matrix Computations and Solving Equations

More information

Lecture 1: MATLAB - advanced use cases

Lecture 1: MATLAB - advanced use cases Lecture 1: MATLAB - advanced use cases Data handling and analysis Juha Kuortti and Heikki Apiola February 10, 2018 Aalto University juha.kuortti@aalto.fi Importing and exporting data: basics Creating and

More information