TelFit Documentation. Release Kevin Gullikson

Size: px
Start display at page:

Download "TelFit Documentation. Release Kevin Gullikson"

Transcription

1 TelFit Documentation Release Kevin Gullikson June 23, 2015

2

3 Contents 1 Introduction to Telluric Modeling with TelFit 3 2 Installation 5 3 TelFit Tutorial Generating a Telluric Model with TelFit Simple Model Fitting API for TelFit API for TelluricFitter API for MakeModel Updating the Atmosphere profile 11 6 Indices and tables 17 i

4 ii

5 Contents: Contents 1

6 2 Contents

7 CHAPTER 1 Introduction to Telluric Modeling with TelFit Do you have spectra observed from Earth? Do you hate needing to spend precious telescope time just to observe a telluric standard star? If so, TelFit might work for you! TelFit is a Python code written specifically to model and fit the telluric absorption spectrum in astronomical data. It is essentially a wrapper around the LBLRTM FORTRAN code, and provides an easy to use, object-oriented interface to the code. TelFit vastly simplifies the process of gnerating a telluric model, and can efficiently remove the telluric absorption lines in high-resolution optical or near-infrared spectra. 3

8 4 Chapter 1. Introduction to Telluric Modeling with TelFit

9 CHAPTER 2 Installation This code requires the following packages: matplotlib numpy v1.6 or greater scipy v0.13 or greater astropy v0.2 or greater lockfile pysynphot v0.7 or greater fortranformat cython requests The bolded entries are required before installation, so make sure you get them from pip, apt-get/yum, or conda (depending on your OS and linux distribution). The setup script will attempt to install the rest if you don t have them, but I suggest doing it yourself just to make sure nothing goes wrong. Once you have the dependencies, simply type pip install TelFit to install TelFit. It may take a while, as it needs to build the LBLRTM code and some of its standard input files. 5

10 6 Chapter 2. Installation

11 CHAPTER 3 TelFit Tutorial After installation, there should a few usage examples in ~/.TelFit/examples. We go into a bit more detail on what the examples are doing here. 3.1 Generating a Telluric Model with TelFit Making a telluric model used to be hard. With TelFit, it is just a few lines of code. from telfit import Modeler # Set the start and end wavelength, in nm wavestart = waveend = # Make the model modeler = Modeler() model = modeler.makemodel(humidity=50.0, lowfreq=1e7/waveend, highfreq=1e7/wavestart) 3.2 Simple Model Fitting Alright making a model is pretty simple, but you probably want to go further and find the best model for your data. This is a more complicated thing, so requires a bit more code. The rest of this tutorial will assume that you have imported a few modules: import numpy as np import matplotlib.pyplot as plt from telfit import TelluricFitter, DataStructures The first thing we need to do is make an instance of the TelluricFitter class, and set some basic information about your observatory. fitter = TelluricFitter() observatory = {"latitude": 30.5, "altitude": 2.5} fitter.setobservatory(observatory) You just need to give the TelluricFitter class a latitude and altitude. For your convenience, there are a few common observatories already loaded into TelFit, so you can also set the observatory with 7

12 fitter.setobservatory(obsname) where obsname is one of the following: McDonald CTIO Mauna Kea La Silla Paranal You can easily add your own observatory if you wish by editing the source code for the SetObservatory method. Alright, now that we have initialized the fitter class we need to tell it how what variables to fit and give their initial values. In this example, we will just fit the relative humidity and oxygen mixing ratio. You should be able to get an initial value for the humidity from your fits header or archived weather data; if not, guess with something like 50%. We will also set some constant values that are important. fitter.fitvariable({'h2o': humidity_guess, 'o2': 2.12e5}) # This is a good initial guess for the O2 abundance fitter.adjustvalue({"angle": angle, "pressure": pressure, "resolution": resolution, "wavestart": data.x[0] , "waveend": data.x[-1] }) You will notice that the input for both of the methods is a dictionary with parameter name and value. For the FitVariable method, the value is an initial guess. For the AdjustValue method, the value you give it is fixed (with the exception of detector resolution).now let s set some bounds on the fitted parameters as well. You can set bounds on any parameter, but it will be ignored if it is a constant. fitter.setbounds({'h2o': [1.0, 99.0], 'o2': [5e4, 1e6], 'resolution': , }) You will notice that we set bounds on the resolution parameter as well. The detector resolution is always fit, and you should always give it bounds that are pretty close to the true value. Finally, we can perform the fit. This will take quite some time to run, so go get some coffee if you are following along... model = fitter.fit(data=data) There are lots of options to Fit to control how it does everything. Check the API if the defaults aren t working for you. The data object you pass to Fit must be an object of type DataStructures.xypoint, which you can create with the following code (assuming you have your data in numpy arrays called wave, flux, and continuum ) data = DataStructures.xypoint(x=wave, y=flux, cont=continuum) The continuum does not need to be great, since TelFit estimates that as well after dividing out the telluric model. 8 Chapter 3. TelFit Tutorial

13 CHAPTER 4 API for TelFit 4.1 API for TelluricFitter 4.2 API for MakeModel 9

14 10 Chapter 4. API for TelFit

15 CHAPTER 5 Updating the Atmosphere profile An atmosphere profile gives the pressure, temperature, and various molecular mixing ratios as a function of height in the atmosphere. TelFit comes with a default atmosphere profile suitable for mid-latitudes at nighttime that works pretty well, but you can do better by using a profile tailored to your observatory. There isn t a particularly easy way to do this, so I will outline the steps I use to get an updated atmosphere profile from the Global Data Assimilation System below. I have included screenshots of the various stages to aid you in your journey, but you are on your own if the website changes between now and when you are reading this! First, go to the GDAS website. Enter the latitude and longitude of your observatory, and click continue. In the Sounding row, choose the entry titled GDAS (0.5 deg, 3 hourly, Global). Hit the Go button in the sounding row. 11

16 Choose the appropriate UT date: On the next page, use the following settings. Choose the appropriate UT time Choose Text only in the Output Options row. Choose Text listing in the Graphics row. Complete the captcha (this is why I can t make it easy on you!) hit Get Sounding 12 Chapter 5. Updating the Atmosphere profile

17 After all this, you should get a page with a bunch of information. You want to copy-paste the second block into a text file. It should look something like this. PRESS HGT(MSL) TEMP DEW PT WND DIR WND SPD HPA M C C DEG M/S E = Estimated Surface Height E E E E E E E E E E E E E E E E E E E E E E E E E

18 E E E E E E E E E E E E E E E E E E E E E E E E E E E E E E E We are finally ready to do some Python! Read that text file in using your favorite method (I using numpy.loadtxt). You might need to go through and delete the E on every line, and probably delete the first row since it doesn t have all the information. import numpy as np Pres, height, Temp, dew = np.loadtxt(atmosphere_filename, usecols=(0, 1, 2, 3), unpack=true) You could concievably do something with the wind information, but TelFit doesn t use that so you are on your own. Now, we need to convert the units so that TelFit does the right thing. Here is some sample code for doing so. Most of it is pretty self-explanatory except for the conversion from dew point to mixing ratio in ppmv. The equation and constants were taken from a compilation of formulas for humidity, available here (hopefully). # Sort the arrays by height. sorter = numpy.argsort(height) height = height[sorter] Pres = Pres[sorter] Temp = Temp[sorter] dew = dew[sorter] #Convert dew point temperature to ppmv Pw = * 10**( *Temp/(Temp )) h2o = Pw / (Pres-Pw) * 1e6 #Unit conversion 14 Chapter 5. Updating the Atmosphere profile

19 height /= Temp += Now, you can tell TelFit about the new atmosphere with the following commands. I ll assume fitter is an instance of the TelluricFitter class. The Modeler class has the same method if you just want to make a model. fitter.editatmosphereprofile("temperature", height, Temp) fitter.editatmosphereprofile("pressure", height, Pres) fitter.editatmosphereprofile("h2o", height, h2o) 15

20 16 Chapter 5. Updating the Atmosphere profile

21 CHAPTER 6 Indices and tables genindex modindex search 17

TelFit Documentation. Release Kevin Gullikson

TelFit Documentation. Release Kevin Gullikson TelFit Documentation Release 1.3.0 Kevin Gullikson January 30, 2017 Contents 1 Introduction to Telluric Modeling with TelFit 3 2 Installation 5 3 TelFit Tutorial 7 3.1 Generating a Telluric Model with

More information

Euler s Method with Python

Euler s Method with Python Euler s Method with Python Intro. to Differential Equations October 23, 2017 1 Euler s Method with Python 1.1 Euler s Method We first recall Euler s method for numerically approximating the solution of

More information

Science One CS : Getting Started

Science One CS : Getting Started Science One CS 2018-2019: Getting Started Note: if you are having trouble with any of the steps here, do not panic! Ask on Piazza! We will resolve them this Friday when we meet from 10am-noon. You can

More information

Spectroscopic Analysis: Peak Detector

Spectroscopic Analysis: Peak Detector Electronics and Instrumentation Laboratory Sacramento State Physics Department Spectroscopic Analysis: Peak Detector Purpose: The purpose of this experiment is a common sort of experiment in spectroscopy.

More information

The name of our class will be Yo. Type that in where it says Class Name. Don t hit the OK button yet.

The name of our class will be Yo. Type that in where it says Class Name. Don t hit the OK button yet. Mr G s Java Jive #2: Yo! Our First Program With this handout you ll write your first program, which we ll call Yo. Programs, Classes, and Objects, Oh My! People regularly refer to Java as a language that

More information

NAVIGATING UNIX. Other useful commands, with more extensive documentation, are

NAVIGATING UNIX. Other useful commands, with more extensive documentation, are 1 NAVIGATING UNIX Most scientific computing is done on a Unix based system, whether a Linux distribution such as Ubuntu, or OSX on a Mac. The terminal is the application that you will use to talk to the

More information

CS354 gdb Tutorial Written by Chris Feilbach

CS354 gdb Tutorial Written by Chris Feilbach CS354 gdb Tutorial Written by Chris Feilbach Purpose This tutorial aims to show you the basics of using gdb to debug C programs. gdb is the GNU debugger, and is provided on systems that

More information

Customizing DAZ Studio

Customizing DAZ Studio Customizing DAZ Studio This tutorial covers from the beginning customization options such as setting tabs to the more advanced options such as setting hot keys and altering the menu layout. Introduction:

More information

Parallel Transport on the Torus

Parallel Transport on the Torus MLI Home Mathematics The Torus Parallel Transport Parallel Transport on the Torus Because it really is all about the torus, baby After reading about the torus s curvature, shape operator, and geodesics,

More information

Getting Started with Python

Getting Started with Python Getting Started with Python A beginner course to Python Ryan Leung Updated: 2018/01/30 yanyan.ryan.leung@gmail.com Links Tutorial Material on GitHub: http://goo.gl/grrxqj 1 Learning Outcomes Python as

More information

EEN118 LAB FOUR. h = v t ½ g t 2

EEN118 LAB FOUR. h = v t ½ g t 2 EEN118 LAB FOUR In this lab you will be performing a simulation of a physical system, shooting a projectile from a cannon and working out where it will land. Although this is not a very complicated physical

More information

EEN118 LAB FOUR. h = v t ½ g t 2

EEN118 LAB FOUR. h = v t ½ g t 2 EEN118 LAB FOUR In this lab you will be performing a simulation of a physical system, shooting a projectile from a cannon and working out where it will land. Although this is not a very complicated physical

More information

bottle-rest Release 0.5.0

bottle-rest Release 0.5.0 bottle-rest Release 0.5.0 February 18, 2017 Contents 1 API documentation 3 1.1 bottle_rest submodule.......................................... 3 2 What is it 5 2.1 REST in bottle..............................................

More information

VIP Documentation. Release Carlos Alberto Gomez Gonzalez, Olivier Wertz & VORTEX team

VIP Documentation. Release Carlos Alberto Gomez Gonzalez, Olivier Wertz & VORTEX team VIP Documentation Release 0.8.9 Carlos Alberto Gomez Gonzalez, Olivier Wertz & VORTEX team Feb 17, 2018 Contents 1 Introduction 3 2 Documentation 5 3 Jupyter notebook tutorial 7 4 TL;DR setup guide 9

More information

1) Complete problems 1-65 on pages You are encouraged to use the space provided.

1) Complete problems 1-65 on pages You are encouraged to use the space provided. Dear Accelerated Pre-Calculus Student (017-018), I am excited to have you enrolled in our class for next year! We will learn a lot of material and do so in a fairly short amount of time. This class will

More information

How to get started with Theriak-Domino and some Worked Examples

How to get started with Theriak-Domino and some Worked Examples How to get started with Theriak-Domino and some Worked Examples Dexter Perkins If you can follow instructions, you can download and install Theriak-Domino. However, there are several folders and many files

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

Day One Export Documentation

Day One Export Documentation Day One Export Documentation Release 1.0.0 Nathan Grigg May 09, 2018 Contents 1 Use the command line tool 3 1.1 Basic Usage............................................... 3 1.2 Use a custom template..........................................

More information

6 Stephanie Well. It s six, because there s six towers.

6 Stephanie Well. It s six, because there s six towers. Page: 1 of 10 1 R1 So when we divided by two all this stuff this is the row we ended up with. 2 Stephanie Um hm. 3 R1 Isn t that right? We had a row of six. Alright. Now before doing it see if you can

More information

Excel for Gen Chem General Chemistry Laboratory September 15, 2014

Excel for Gen Chem General Chemistry Laboratory September 15, 2014 Excel for Gen Chem General Chemistry Laboratory September 15, 2014 Excel is a ubiquitous data analysis software. Mastery of Excel can help you succeed in a first job and in your further studies with expertise

More information

Computer Science 210 Data Structures Siena College Fall Topic Notes: Searching and Sorting

Computer Science 210 Data Structures Siena College Fall Topic Notes: Searching and Sorting Computer Science 10 Data Structures Siena College Fall 016 Topic Notes: Searching and Sorting Searching We all know what searching is looking for something. In a computer program, the search could be:

More information

Entering data into memory with MATLAB

Entering data into memory with MATLAB Entering data into memory with MATLAB x=3 x = 3 A ; (semicolon) in matlab is the same thing as pressing inside a program; its use is necessary as when you execute a program you are not

More information

Plotting with an introduction to functions

Plotting with an introduction to functions Plotting with CERN@school: an introduction to functions Twitter: @nicoleshearer93 N. Shearer a, T. Whyntie b, c a Durham University, b Langton Star Centre, c Queen Mary University of London Coding with

More information

Reversing. Time to get with the program

Reversing. Time to get with the program Reversing Time to get with the program This guide is a brief introduction to C, Assembly Language, and Python that will be helpful for solving Reversing challenges. Writing a C Program C is one of the

More information

Week Two. Arrays, packages, and writing programs

Week Two. Arrays, packages, and writing programs Week Two Arrays, packages, and writing programs Review UNIX is the OS/environment in which we work We store files in directories, and we can use commands in the terminal to navigate around, make and delete

More information

pyeemd Documentation Release Perttu Luukko

pyeemd Documentation Release Perttu Luukko pyeemd Documentation Release 1.3.1 Perttu Luukko August 10, 2016 Contents 1 Contents: 3 1.1 Installing pyeemd............................................ 3 1.2 Tutorial..................................................

More information

Molecular Statistics Exercise 1. As was shown to you this morning, the interactive python shell can add, subtract, multiply and divide numbers.

Molecular Statistics Exercise 1. As was shown to you this morning, the interactive python shell can add, subtract, multiply and divide numbers. Molecular Statistics Exercise 1 Introduction This is the first exercise in the course Molecular Statistics. The exercises in this course are split in two parts. The first part of each exercise is a general

More information

EEN118 LAB FOUR. h = v t ½ g t 2

EEN118 LAB FOUR. h = v t ½ g t 2 EEN118 LAB FOUR In this lab you will be performing a simulation of a physical system, shooting a projectile from a cannon and working out where it will land. Although this is not a very complicated physical

More information

Introduction to Scientific Computing with Python, part two.

Introduction to Scientific Computing with Python, part two. Introduction to Scientific Computing with Python, part two. M. Emmett Department of Mathematics University of North Carolina at Chapel Hill June 20 2012 The Zen of Python zen of python... fire up python

More information

1. Please, please, please look at the style sheets job aid that I sent to you some time ago in conjunction with this document.

1. Please, please, please look at the style sheets job aid that I sent to you some time ago in conjunction with this document. 1. Please, please, please look at the style sheets job aid that I sent to you some time ago in conjunction with this document. 2. W3Schools has a lovely html tutorial here (it s worth the time): http://www.w3schools.com/html/default.asp

More information

EEN118 LAB FOUR. h = v t - ½ g t 2

EEN118 LAB FOUR. h = v t - ½ g t 2 EEN118 LAB FOUR In this lab you will be performing a simulation of a physical system, shooting a projectile from a cannon and working out where it will land. Although this is not a very complicated physical

More information

Lutheran High North Technology The Finder

Lutheran High North Technology  The Finder Lutheran High North Technology shanarussell@lutheranhighnorth.org www.lutheranhighnorth.org/technology The Finder Your Mac s filing system is called the finder. In this document, we will explore different

More information

Matlab for FMRI Module 1: the basics Instructor: Luis Hernandez-Garcia

Matlab for FMRI Module 1: the basics Instructor: Luis Hernandez-Garcia Matlab for FMRI Module 1: the basics Instructor: Luis Hernandez-Garcia The goal for this tutorial is to make sure that you understand a few key concepts related to programming, and that you know the basics

More information

Introduction to district compactness using QGIS

Introduction to district compactness using QGIS Introduction to district compactness using QGIS Mira Bernstein, Metric Geometry and Gerrymandering Group Designed for MIT Day of Engagement, April 18, 2017 1) First things first: before the session Download

More information

CME 193: Introduction to Scientific Python Lecture 1: Introduction

CME 193: Introduction to Scientific Python Lecture 1: Introduction CME 193: Introduction to Scientific Python Lecture 1: Introduction Nolan Skochdopole stanford.edu/class/cme193 1: Introduction 1-1 Contents Administration Introduction Basics Variables Control statements

More information

PySoundFile Documentation Release 0.6.0

PySoundFile Documentation Release 0.6.0 PySoundFile Documentation Release 0.6.0 Bastian Bechtold, Matthias Geier January 30, 2015 Contents 1 Breaking Changes 1 2 Installation 1 3 Read/Write Functions 2 4 Block Processing 2 5 SoundFile Objects

More information

Keeping Sane - Managing your

Keeping Sane - Managing your WITH KEVIN Keeping Sane - Managing your Email TODAY S COFFEE TALK Email is a wonderful tool for sending and receiving a lot of information quickly and securely. However, it s important that your personal

More information

Missing Assignment s to Parents instructions for Teachers

Missing Assignment  s to Parents instructions for Teachers Missing Assignment Emails to Parents instructions for Teachers In a Teacher s Gradebook, there is an option to Email Progress Reports to parents/students. There is also an option to include Missing Assignments

More information

Data Reduction Helpdesk First Responder Guidelines

Data Reduction Helpdesk First Responder Guidelines Data Reduction Helpdesk First Responder Guidelines Kathleen Labrie Science Users Support Department V1.1 12 March 2018 Revision History V1.0 16 January 2018 Kathleen Labrie V1.1 12 March 2018 Kathleen

More information

Symbolic and Automatic Di erentiation in Python

Symbolic and Automatic Di erentiation in Python Lab 15 Symbolic and Automatic Di erentiation in Python Lab Objective: Python is good for more than just analysis of numerical data. There are several packages available which allow symbolic and automatic

More information

XP: Backup Your Important Files for Safety

XP: Backup Your Important Files for Safety XP: Backup Your Important Files for Safety X 380 / 1 Protect Your Personal Files Against Accidental Loss with XP s Backup Wizard Your computer contains a great many important files, but when it comes to

More information

2.9 Linear Approximations and Differentials

2.9 Linear Approximations and Differentials 2.9 Linear Approximations and Differentials 2.9.1 Linear Approximation Consider the following graph, Recall that this is the tangent line at x = a. We had the following definition, f (a) = lim x a f(x)

More information

Basic Uses of JavaScript: Modifying Existing Scripts

Basic Uses of JavaScript: Modifying Existing Scripts Overview: Basic Uses of JavaScript: Modifying Existing Scripts A popular high-level programming languages used for making Web pages interactive is JavaScript. Before we learn to program with JavaScript

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

Gianluca Chiozzi is Senior SW Engineer in the Control SW and Engineering Department at ESO. He is now responsible for the control software of the

Gianluca Chiozzi is Senior SW Engineer in the Control SW and Engineering Department at ESO. He is now responsible for the control software of the Gianluca Chiozzi is Senior SW Engineer in the Control SW and Engineering Department at ESO. He is now responsible for the control software of the Astronomical Site Monitor upgrade and is involved in the

More information

Keyword research. Keywords. SEO for beginners training Module 2.1. What is a keyword? Head, mid tail and long tail keywords

Keyword research. Keywords. SEO for beginners training Module 2.1. What is a keyword? Head, mid tail and long tail keywords SEO for beginners training Module 2.1 Keyword research This lesson covers keyword research. We ll start by exploring what keywords are, and why they are important. Then, we ll dive into keyword research.

More information

Matthew Schwartz Lecture 19: Diffraction and resolution

Matthew Schwartz Lecture 19: Diffraction and resolution Matthew Schwartz Lecture 19: Diffraction and resolution 1 Huygens principle Diffraction refers to what happens to a wave when it hits an obstacle. The key to understanding diffraction is a very simple

More information

Rebuilding the Hubble Space Telescope Exposure Time Calculators

Rebuilding the Hubble Space Telescope Exposure Time Calculators Rebuilding the Hubble Space Telescope Exposure Time Calculators Perry Greenfield Ivo Busko Vicki Laidler (CSC/STScI) Todd Miller Mark Sienkiewicz Megan Sosey Space Telescope Science Institute Outline What

More information

Scientific computing platforms at PGI / JCNS

Scientific computing platforms at PGI / JCNS Member of the Helmholtz Association Scientific computing platforms at PGI / JCNS PGI-1 / IAS-1 Scientific Visualization Workshop Josef Heinen Outline Introduction Python distributions The SciPy stack Julia

More information

An interesting related problem is Buffon s Needle which was first proposed in the mid-1700 s.

An interesting related problem is Buffon s Needle which was first proposed in the mid-1700 s. Using Monte Carlo to Estimate π using Buffon s Needle Problem An interesting related problem is Buffon s Needle which was first proposed in the mid-1700 s. Here s the problem (in a simplified form). Suppose

More information

Lecture 24. Lidar Simulation

Lecture 24. Lidar Simulation Lecture 24. Lidar Simulation q Introduction q Lidar Modeling via Lidar Simulation & Error Analysis q Functions of Lidar Simulation and Error Analysis q How to Build up Lidar Simulation? q Range-resolved

More information

EEN118 LAB THREE. Section A - Conversions A1. Remembering how to start. A2. Exotic Canada

EEN118 LAB THREE. Section A - Conversions A1. Remembering how to start. A2. Exotic Canada EEN118 LAB THREE The purpose of this lab is to ensure that you are confident with - and have had a lot of practice at - writing small clear functions that give precise control over repetitive tasks. The

More information

PYTHON YEAR 10 RESOURCE. Practical 01: Printing to the Shell KS3. Integrated Development Environment

PYTHON YEAR 10 RESOURCE. Practical 01: Printing to the Shell KS3. Integrated Development Environment Practical 01: Printing to the Shell To program in Python you need the latest version of Python, which is freely available at www.python.org. Your school will have this installed on the computers for you,

More information

The first thing we ll need is some numbers. I m going to use the set of times and drug concentration levels in a patient s bloodstream given below.

The first thing we ll need is some numbers. I m going to use the set of times and drug concentration levels in a patient s bloodstream given below. Graphing in Excel featuring Excel 2007 1 A spreadsheet can be a powerful tool for analyzing and graphing data, but it works completely differently from the graphing calculator that you re used to. If you

More information

Computer Science 252 Problem Solving with Java The College of Saint Rose Spring Topic Notes: Searching and Sorting

Computer Science 252 Problem Solving with Java The College of Saint Rose Spring Topic Notes: Searching and Sorting Computer Science 5 Problem Solving with Java The College of Saint Rose Spring 016 Topic Notes: Searching and Sorting Searching We all know what searching is looking for something. In a computer program,

More information

10.4 Linear interpolation method Newton s method

10.4 Linear interpolation method Newton s method 10.4 Linear interpolation method The next best thing one can do is the linear interpolation method, also known as the double false position method. This method works similarly to the bisection method by

More information

1. Introduction EE108A. Lab 1: Combinational Logic: Extension of the Tic Tac Toe Game

1. Introduction EE108A. Lab 1: Combinational Logic: Extension of the Tic Tac Toe Game EE108A Lab 1: Combinational Logic: Extension of the Tic Tac Toe Game 1. Introduction Objective This lab is designed to familiarize you with the process of designing, verifying, and implementing a combinational

More information

APPM 2460 Matlab Basics

APPM 2460 Matlab Basics APPM 2460 Matlab Basics 1 Introduction In this lab we ll get acquainted with the basics of Matlab. This will be review if you ve done any sort of programming before; the goal here is to get everyone on

More information

Adafruit BME280 Humidity + Barometric Pressure + Temperature Sensor Breakout

Adafruit BME280 Humidity + Barometric Pressure + Temperature Sensor Breakout Adafruit BME280 Humidity + Barometric Pressure + Temperature Sensor Breakout Created by lady ada Last updated on 2018-08-22 03:49:22 PM UTC Guide Contents Guide Contents Overview Pinouts Power Pins: SPI

More information

Introduction to Python. IPTA 2018 Student Workshop, Socorro NM Adam Brazier and Nate Garver-Daniels

Introduction to Python. IPTA 2018 Student Workshop, Socorro NM Adam Brazier and Nate Garver-Daniels Introduction to Python IPTA 2018 Student Workshop, Socorro NM Adam Brazier and Nate Garver-Daniels How is this going to proceed? Some talking, but mostly practical examples through which you work These

More information

Programming IDL for Astronomy September 6, 2004

Programming IDL for Astronomy September 6, 2004 Programming IDL for Astronomy September 6, 2004 Marshall Perrin 1 1. Introduction This is not a programming course, but nonetheless it will involve a lot of programming. This is true of astronomy as a

More information

SQLite vs. MongoDB for Big Data

SQLite vs. MongoDB for Big Data SQLite vs. MongoDB for Big Data In my latest tutorial I walked readers through a Python script designed to download tweets by a set of Twitter users and insert them into an SQLite database. In this post

More information

Connecting ArcGIS with R and Conda. Shaun Walbridge

Connecting ArcGIS with R and Conda. Shaun Walbridge Connecting ArcGIS with R and Conda Shaun Walbridge https://github.com/sc w/nyc-r-ws High Quality PDF ArcGIS Today: R and Conda Conda Introduction Optional demo R and the R-ArcGIS Bridge Introduction Demo

More information

Lastly, in case you don t already know this, and don t have Excel on your computers, you can get it for free through IT s website under software.

Lastly, in case you don t already know this, and don t have Excel on your computers, you can get it for free through IT s website under software. Welcome to Basic Excel, presented by STEM Gateway as part of the Essential Academic Skills Enhancement, or EASE, workshop series. Before we begin, I want to make sure we are clear that this is by no means

More information

Week - 01 Lecture - 04 Downloading and installing Python

Week - 01 Lecture - 04 Downloading and installing Python Programming, Data Structures and Algorithms in Python Prof. Madhavan Mukund Department of Computer Science and Engineering Indian Institute of Technology, Madras Week - 01 Lecture - 04 Downloading and

More information

Fast numerics in Python - NumPy and PyPy

Fast numerics in Python - NumPy and PyPy Fast numerics in Python - NumPy and Maciej Fijałkowski SEA, NCAR 22 February 2012 What is this talk about? What is and why? Numeric landscape in Python What we achieved in Where we re going? What is? An

More information

Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller

Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller Table of Contents Introduction!... 1 Part 1: Entering Data!... 2 1.a: Typing!... 2 1.b: Editing

More information

Math 2250 Lab #3: Landing on Target

Math 2250 Lab #3: Landing on Target Math 2250 Lab #3: Landing on Target 1. INTRODUCTION TO THE LAB PROGRAM. Here are some general notes and ideas which will help you with the lab. The purpose of the lab program is to expose you to problems

More information

Software Needed Any word processing application: Word, Word Perfect, AppleWorks, ClarisWorks, WordPad, etc. LEVEL 1 Word Processing Mini WP 1

Software Needed Any word processing application: Word, Word Perfect, AppleWorks, ClarisWorks, WordPad, etc. LEVEL 1 Word Processing Mini WP 1 Software Needed Any word processing application: Word, Word Perfect, AppleWorks, ClarisWorks, WordPad, etc LEVEL 1 Word Processing Mini WP 1 Create, Open and Save a document Using a word processing program

More information

Computer Basics 1/24/13. Computer Organization. Computer systems consist of hardware and software.

Computer Basics 1/24/13. Computer Organization. Computer systems consist of hardware and software. Hardware and Software Computer Basics TOPICS Computer Organization Data Representation Program Execution Computer Languages Computer systems consist of hardware and software. Hardware includes the tangible

More information

Solving Problems with Similar Triangles

Solving Problems with Similar Triangles Solving Problems with Similar Triangles xample 1: Given that lines and are parallel in the figure to the right, determine the value of x, the distance between points and. Solution: First, we can demonstrate

More information

Animations involving numbers

Animations involving numbers 136 Chapter 8 Animations involving numbers 8.1 Model and view The examples of Chapter 6 all compute the next picture in the animation from the previous picture. This turns out to be a rather restrictive

More information

INSTRUCTIONS. High Performance Electronic Components 9630 W. Irving Park Rd., Schiller Park, IL Phone (847) Fax (847)

INSTRUCTIONS. High Performance Electronic Components 9630 W. Irving Park Rd., Schiller Park, IL Phone (847) Fax (847) IMPORTANT - Unit does not need to be left ON in order to take accurate readings. Read through instructions completely. GREETING MESSAGE The PerformAIRE By ALTRONICS O2 EQUIPPED VERSION 2.* "O2 EQUIPPED"

More information

Euler s Method for Approximating Solution Curves

Euler s Method for Approximating Solution Curves Euler s Method for Approximating Solution Curves As you may have begun to suspect at this point, time constraints will allow us to learn only a few of the many known methods for solving differential equations.

More information

DESIGN YOUR OWN BUSINESS CARDS

DESIGN YOUR OWN BUSINESS CARDS DESIGN YOUR OWN BUSINESS CARDS USING VISTA PRINT FREE CARDS I m sure we ve all seen and probably bought the free business cards from Vista print by now. What most people don t realize is that you can customize

More information

Installation Guide for Python

Installation Guide for Python GPDI 513 Beginner s Guide to the Python Programming Language Installation Guide for Python Linux Operating System If you are using a Linux computer, open the terminal and type the following commands in

More information

LOCATION SPOOFING ON IOS WITHOUT A JAILBREAK

LOCATION SPOOFING ON IOS WITHOUT A JAILBREAK LOCATION SPOOFING ON IOS WITHOUT A JAILBREAK Adidas Confirmed requires that the user is in the location before confirming a pair of shoes using the app. The app utilizes the phone s GPS to find the location.

More information

python-samplerate Documentation

python-samplerate Documentation python-samplerate Documentation Release 0.1.0+4.ga9b5d2a Tino Wagner February 24, 2017 Contents 1 Installation 3 2 Usage 5 3 See also 7 4 License 9 5 API documentation 11 5.1 samplerate module documentation....................................

More information

Setting up Python 3.5, numpy, and matplotlib on your Macintosh or Linux computer

Setting up Python 3.5, numpy, and matplotlib on your Macintosh or Linux computer CS-1004, Introduction to Programming for Non-Majors, C-Term 2017 Setting up Python 3.5, numpy, and matplotlib on your Macintosh or Linux computer Hugh C. Lauer Adjunct Professor Worcester Polytechnic Institute

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

Introduction to Python

Introduction to Python A sample Training Module from our course WELL HOUSE CONSULTANTS LTD 404, The Spa Melksham, Wiltshire SN12 6QL United Kingdom PHONE: 01225 708225 FACSIMLE 01225 707126 EMAIL: info@wellho.net 2004 Well House

More information

Note that ALL of these points are Intercepts(along an axis), something you should see often in later work.

Note that ALL of these points are Intercepts(along an axis), something you should see often in later work. SECTION 1.1: Plotting Coordinate Points on the X-Y Graph This should be a review subject, as it was covered in the prerequisite coursework. But as a reminder, and for practice, plot each of the following

More information

Intro to Programming. Unit 7. What is Programming? What is Programming? Intro to Programming

Intro to Programming. Unit 7. What is Programming? What is Programming? Intro to Programming Intro to Programming Unit 7 Intro to Programming 1 What is Programming? 1. Programming Languages 2. Markup vs. Programming 1. Introduction 2. Print Statement 3. Strings 4. Types and Values 5. Math Externals

More information

Intro to GMT Part 1. Beth Meyers Matt Herman

Intro to GMT Part 1. Beth Meyers Matt Herman Intro to GMT Part 1 Beth Meyers Matt Herman By the end of of this tutorial you will be able to create the following figures: By the end of of this tutorial you will be able to create the following figures:

More information

COUNTING AND CONVERTING

COUNTING AND CONVERTING COUNTING AND CONVERTING The base of each number system is also called the radix. The radix of a decimal number is ten, and the radix of binary is two. The radix determines how many different symbols are

More information

Biocomputing II Coursework guidance

Biocomputing II Coursework guidance Biocomputing II Coursework guidance I refer to the database layer as DB, the middle (business logic) layer as BL and the front end graphical interface with CGI scripts as (FE). Standardized file headers

More information

1 Introduction: Download the Sample Code and Data

1 Introduction: Download the Sample Code and Data PHYS-4007/5007: Computational Physics Python Tutorial Making Plots of Spectra in Python 1 Introduction: Download the Sample Code and Data Log into your Linux account and open the web browser. Open the

More information

How to Stay Safe on Public Wi-Fi Networks

How to Stay Safe on Public Wi-Fi Networks How to Stay Safe on Public Wi-Fi Networks Starbucks is now offering free Wi-Fi to all customers at every location. Whether you re clicking connect on Starbucks Wi-Fi or some other unsecured, public Wi-Fi

More information

How to decrypt 3ds ROM s: This Guide is STRICTLY for 3DS s that are on firmware s I will go back and make this

How to decrypt 3ds ROM s: This Guide is STRICTLY for 3DS s that are on firmware s I will go back and make this How to decrypt 3ds ROM s: WAIT!!!!! BEFORE WE BEGIN THERE ARE A FEW THINGS!!! This Guide is STRICTLY for 3DS s that are on firmware s 4.1-4.5. I will go back and make this tutorial for users that are on

More information

Lab Guide. Service Portal and Mobile. Patrick Wilson & Will Lisac. Default Login / Password: admin / Knowledge17. itil / Knowledge17

Lab Guide. Service Portal and Mobile. Patrick Wilson & Will Lisac. Default Login / Password: admin / Knowledge17. itil / Knowledge17 Lab Guide Service Portal and Mobile Patrick Wilson & Will Lisac Default Login / Password: admin / Knowledge17 itil / Knowledge17 employee / Knowledge17 2017 ServiceNow, Inc. All rights reserved. 1 Lab

More information

WHAT IS A DATABASE? There are at least six commonly known database types: flat, hierarchical, network, relational, dimensional, and object.

WHAT IS A DATABASE? There are at least six commonly known database types: flat, hierarchical, network, relational, dimensional, and object. 1 WHAT IS A DATABASE? A database is any organized collection of data that fulfills some purpose. As weather researchers, you will often have to access and evaluate large amounts of weather data, and this

More information

Creating a Yubikey MFA Service in AWS

Creating a Yubikey MFA Service in AWS Amazon AWS is a cloud based development environment with a goal to provide many options to companies wishing to leverage the power and convenience of cloud computing within their organisation. In 2013

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

Running the model in production mode: using the queue.

Running the model in production mode: using the queue. Running the model in production mode: using the queue. 1) Codes are executed with run scripts. These are shell script text files that set up the individual runs and execute the code. The scripts will seem

More information

PropConfig A Tool for Atmospheric Propagation Configuration

PropConfig A Tool for Atmospheric Propagation Configuration MZA Associates Corporation Albuquerque Dayton Jupiter PropConfig A Tool for Atmospheric Propagation Configuration February 24, 2010 Amy M. Ngwele Marcus Gualtieri MZA Associates Corporation 2021 Girard

More information

Decisions, Decisions. Testing, testing C H A P T E R 7

Decisions, Decisions. Testing, testing C H A P T E R 7 C H A P T E R 7 In the first few chapters, we saw some of the basic building blocks of a program. We can now make a program with input, processing, and output. We can even make our input and output a little

More information

XXXX - AUTOMATING THE MARQUEE 1 N/08/08

XXXX - AUTOMATING THE MARQUEE 1 N/08/08 INTRODUCTION TO GRAPHICS Automating the Marquee Information Sheet No. XXXX Note: the following project is extracted from David Nagel s excellent web tutorials. His demonstrations are invaluable to any

More information

X-ray Spectra Part II: Fitting Data and Determining Errors

X-ray Spectra Part II: Fitting Data and Determining Errors X-ray Spectra Part II: Fitting Data and Determining Errors Michael Nowak, mnowak@space.mit.edu May 12, 2016 Setting Up the Data This exercise presumes that you ve downloaded and installed the.isisrc files

More information

Introduction to Remote Sensing Wednesday, September 27, 2017

Introduction to Remote Sensing Wednesday, September 27, 2017 Lab 3 (200 points) Due October 11, 2017 Multispectral Analysis of MASTER HDF Data (ENVI Classic)* Classification Methods (ENVI Classic)* SAM and SID Classification (ENVI Classic) Decision Tree Classification

More information

Understanding the Basics

Understanding the Basics Understanding the Basics Start-Up or Main Screen When you open Ballistic AE, the app defaults to the Trajectory screen, this is your main screen. (Unless you change the default in settings.) From here

More information