Scientific Programming in C XIII. Shell programming
|
|
- Bertina Chase
- 6 years ago
- Views:
Transcription
1 Scientific Programming in C XIII. Shell programming Susi Lehtola 11 December 2012
2 Introduction Often in scientific computing one needs to do simple tasks related to renaming of files file conversions unit conversions These are often best done using shell programming and command line tools. Scientific Programming in C, fall 2012 Susi Lehtola Shell programming 2/22
3 sed sed performs text filtering and transformation. Examples: Replace foo with bar in file: $ sed s foo bar g f i l e > f i l e. new Delete the first 10 lines of a file $ sed 1,10 d f i l e > f i l e. new Delete the last line of a file $ sed $d f i l e > f i l e. new In-place modification of file with -i argument (no output to stdout). Scientific Programming in C, fall 2012 Susi Lehtola Shell programming 3/22
4 awk awk is a language for processing text files. The input is read line by line, and it is split into fields (i.e., words). Scientific Programming in C, fall 2012 Susi Lehtola Shell programming 4/22
5 awk awk is a language for processing text files. The input is read line by line, and it is split into fields (i.e., words). Awk programs are written as a series of pattern action pairs c o n d i t i o n { a c t i o n } that are run at every line of input. Scientific Programming in C, fall 2012 Susi Lehtola Shell programming 5/22
6 awk, cont d Hello world in awk $ awk BEGIN { p r i n t H e l l o world! } H e l l o world! Scientific Programming in C, fall 2012 Susi Lehtola Shell programming 6/22
7 awk, cont d There are also special BEGIN and END blocks that are run only once at the startand the end of the program, respectively. Full program: BEGIN { / code t h a t i s run a t t h e s t a r t / } { } / code t h a t i s run f o r e v e r y l i n e o f i n p u t / END { / code t h a t i s run a t t h e end / } Scientific Programming in C, fall 2012 Susi Lehtola Shell programming 7/22
8 awk, cont d Example: an xyz file 18 6 m o l e c u l e water c l u s t e r O H H O H H O H H O H H O H H O H H Scientific Programming in C, fall 2012 Susi Lehtola Shell programming 8/22
9 awk, cont d Decompose the file #!/ u s r / b i n /awk f { p r i n t f ( L i n e %i : \ %s \ \n,nr, $0 ) ; f o r ( i =1; i <=NF ; i ++) { p r i n t f ( \ tword %i : \ %s \. \ n, i, $ i ) ; } } Running gives $ c a t c l u s t e r. xyz. / decompose. awk L i n e 1 : 18 Word 1 : 1 8. L i n e 2 : Water c l u s t e r, f i r s t 6 m o l e c u l e s. Word 1 : Water. Word 2 : c l u s t e r,. Word 3 : f i r s t. Word 4 : 6. Word 5 : m o l e c u l e s.. L i n e 3 : O Word 1 : O. Word 2 : Word 3 : Word 4 : Scientific Programming in C, fall 2012 Susi Lehtola Shell programming 9/22
10 awk, cont d $0 contains the whole input line $1 is the first word on the line $2 is the second word on the line... $NF is the last word on the line Useful special variables in awk: NR is the current line number NF contains the number of fields on the current line $NR is the amount of lines in the file (line number of last line) Scientific Programming in C, fall 2012 Susi Lehtola Shell programming 10/22
11 awk, cont d Extract the x coordinates from the file $ c a t c l u s t e r. xyz awk { i f (NR>2) { p r i n t $2 }} Scientific Programming in C, fall 2012 Susi Lehtola Shell programming 11/22
12 awk, cont d Find out the maximum and minimum coordinates #!/ u s r / b i n /awk f BEGIN { max [0]= max [1]= max[2]= 1 e10 ; min [0]= min [1]= min [2]=1 e10 ; } { } i f (NR>2) { f o r ( i =0; i <3; i ++) { i f ( $ ( i +2)<min [ i ] ) { min [ i ]=$ ( i +2) } ; i f ( $ ( i +2)>max [ i ] ) { max [ i ]=$ ( i +2) } } } END { f o r ( i =0; i <3; i ++) { p r i n t f ( % e... % e \n, min [ i ], max [ i ] ) } }Scientific Programming in C, fall 2012 Susi Lehtola Shell programming 12/22
13 awk, cont d Running gives $ c a t c l u s t e r. xyz. / minmax. awk e e e e e e+00 Scientific Programming in C, fall 2012 Susi Lehtola Shell programming 13/22
14 Bash Bash (Bourne-Again SHell) is the default shell on linux systems, and it has quite nice scripting features. For example: $ f o r i i n f o o bar ; do echo $ i ; done f o o bar $ f o r ( ( i =0; i <10; i ++)); do echo The v a l u e o f i i s $ i. ; done The v a l u e o f i i s 0. The v a l u e o f i i s 1. The v a l u e o f i i s 2. The v a l u e o f i i s 3. The v a l u e o f i i s 4. The v a l u e o f i i s 5. The v a l u e o f i i s 6. The v a l u e o f i i s 7. The v a l u e o f i i s 8. The v a l u e o f i i s 9. Scientific Programming in C, fall 2012 Susi Lehtola Shell programming 14/22
15 Bash, cont d You can also loop over files: $ f o r i i n. t e x ; do cp a $ i $ i. o r i g ; done This will make backups of all the.tex files in the current directory. (*.tex is expanded to match all the.tex files in the directory, after which the for loop runs over the expansion) Scientific Programming in C, fall 2012 Susi Lehtola Shell programming 15/22
16 Bash, cont d You can also loop over files: $ f o r i i n. t e x ; do cp a $ i $ i. o r i g ; done This will make backups of all the.tex files in the current directory. (*.tex is expanded to match all the.tex files in the directory, after which the for loop runs over the expansion) Advanced version: $ f o r i i n. t e x ; do # Get m o d i f i e d d a t e s u f f i x=$ ( d a t e r e f e r e n c e=$ i +%Y%m%d.%H%M. bak ) # and backup t h e f i l e cp av $ i ${ i } ${ s u f f i x } done This will suffix the backup with the time stamp of the original file. Scientific Programming in C, fall 2012 Susi Lehtola Shell programming 16/22
17 Bash, cont d Let s say you have a bunch of files with names file1, file2,..., file199, file200,..., file1098, file1099. You want to rename these to file0001, file0002,..., file1099. How do you do this? Scientific Programming in C, fall 2012 Susi Lehtola Shell programming 17/22
18 Bash, cont d Solution: bash and awk. $ f o r ( ( i =1; i <=1099; i ++)); do # Convert number to c o n t a i n l e a d i n g z e r o s n= echo $ i awk { p r i n t f ( %04 i, $1 ) } # Has f i l e name changed? i f [ [ $ i!= $n ] ] ; then mv f i l e $ { i } f i l e $ {n} f i done Scientific Programming in C, fall 2012 Susi Lehtola Shell programming 18/22
19 Bash, cont d Bash also has arrays. $ a r r =( This i s an a r r a y. ) $ echo $ a r r This $ echo ${ a r r [ 0 ] } This $ echo ${ a r r [ 1 ] } i s $ echo ${ a r r [ 2 ] } an $ echo ${ a r r [ 3 ] } a r r a y. $ echo ${ a r r } This i s an a r r a y. $ f o r ( ( i =0; i <${#a r r ] } ; i ++)); do echo Element $ i : \ ${ a r r [ i ] } \. done Element 0 : This. Element 1 : i s. Element 2 : an. Element 3 : a r r a y.. Scientific Programming in C, fall 2012 Susi Lehtola Shell programming 19/22
20 Bash, cont d You can also loop directly over the elements in the array as $ f o r i i n ${ a r r [@ ] } ; do echo $ i ; done This i s an a r r a y. since ${arr[@]} expands to the full array. Scientific Programming in C, fall 2012 Susi Lehtola Shell programming 20/22
21 Bash, cont d For example, in conventional quantum chemistry one often needs to check the convergence with regard to the basis set. This can be nicely automatized with bash arrays $ b a s i s =({, aug }cc pv{d, T,Q, 5, 6 } Z) $ f o r i i n ${ b a s i s [@ ] } ; do echo $ i ; done cc pvdz cc pvtz cc pvqz cc pv5z cc pv6z aug cc pvdz aug cc pvtz aug cc pvqz aug cc pv5z aug cc pv6z Scientific Programming in C, fall 2012 Susi Lehtola Shell programming 21/22
22 Bash, cont d Read more on bash programming at beginners guide advanced level Scientific Programming in C, fall 2012 Susi Lehtola Shell programming 22/22
Notater: INF3331. Veronika Heimsbakk December 4, Introduction 3
Notater: INF3331 Veronika Heimsbakk veronahe@student.matnat.uio.no December 4, 2013 Contents 1 Introduction 3 2 Bash 3 2.1 Variables.............................. 3 2.2 Loops...............................
More informationKurt Schmidt. June 5, 2017
Dept. of Computer Science, Drexel University June 5, 2017 Examples are taken from Kernighan & Pike, The Practice of ming, Addison-Wesley, 1999 Objective: To learn when and how to optimize the performance
More informationQUANTUM CHEMISTRY PROJECT 3: PARTS B AND C
Chemistry 460 Fall 2017 Dr. Jean M. Standard November 6, 2017 QUANTUM CHEMISTRY PROJECT 3: PARTS B AND C PART B: POTENTIAL CURVE, SPECTROSCOPIC CONSTANTS, AND DISSOCIATION ENERGY OF DIATOMIC HYDROGEN (20
More informationBoris Mantisi. Contents. Context 2. How to install APoGe 3. How APoGe works 4. Input File 5. Crystal File 8. How to use APoGe 10
Boris Mantisi Contents Context 2 How to install APoGe 3 How APoGe works 4 Input File 5 Crystal File 8 How to use APoGe 10 Context Polycrystalline structure plays an important role in the macroscopic properties
More informationQUANTUM CHEMISTRY PROJECT 3: ATOMIC AND MOLECULAR STRUCTURE
Chemistry 460 Fall 2017 Dr. Jean M. Standard November 1, 2017 QUANTUM CHEMISTRY PROJECT 3: ATOMIC AND MOLECULAR STRUCTURE OUTLINE In this project, you will carry out quantum mechanical calculations of
More informationMRCI calculations in MOLPRO
1 MRCI calculations in MOLPRO Molpro is a software package written in Fortran and maintained by H.J. Werner and P.J. Knowles. It is often used for performing sophisticated electronic structure calculations,
More informationOctave. Tutorial. Daniel Lamprecht. March 26, Graz University of Technology. Slides based on previous work by Ingo Holzmann
Tutorial Graz University of Technology March 26, 2012 Slides based on previous work by Ingo Holzmann Introduction What is? GNU is a high-level interactive language for numerical computations mostly compatible
More informationLec20 Fri 3mar17
564-17 Lec20 Fri 3mar17 [PDF]GAUSSIAN 09W TUTORIAL www.molcalx.com.cn/wp-content/uploads/2015/01/gaussian09w_tutorial.pdf by A Tomberg - Cited by 8 - Related articles GAUSSIAN 09W TUTORIAL. AN INTRODUCTION
More informationRRQR Factorization Linux and Windows MEX-Files for MATLAB
Documentation RRQR Factorization Linux and Windows MEX-Files for MATLAB March 29, 2007 1 Contents of the distribution file The distribution file contains the following files: rrqrgate.dll: the Windows-MEX-File;
More informationSpectral energy distribution fitting with MagPhys package
Spectral energy distribution fitting with MagPhys package Nikola Baran 22 September 2015 Exercise Description The goal of this exercise is to introduce the student to one of the important techniques used
More informationT. Helgaker, Department of Chemistry, University of Oslo, Norway. T. Ruden, University of Oslo, Norway. W. Klopper, University of Karlsruhe, Germany
1 The a priori calculation of molecular properties to chemical accuarcy T. Helgaker, Department of Chemistry, University of Oslo, Norway T. Ruden, University of Oslo, Norway W. Klopper, University of Karlsruhe,
More informationNumerical differentiation
Chapter 3 Numerical differentiation 3.1 Introduction Numerical integration and differentiation are some of the most frequently needed methods in computational physics. Quite often we are confronted with
More informationVPython Class 2: Functions, Fields, and the dreaded ˆr
Physics 212E Classical and Modern Physics Spring 2016 1. Introduction VPython Class 2: Functions, Fields, and the dreaded ˆr In our study of electric fields, we start with a single point charge source
More information计算物理作业二. Excercise 1: Illustration of the convergence of the dissociation energy for H 2 toward HF limit.
计算物理作业二 Excercise 1: Illustration of the convergence of the dissociation energy for H 2 toward HF limit. In this exercise, basis indicates one of the following basis sets: STO-3G, cc-pvdz, cc-pvtz, cc-pvqz
More informationA First Course on Kinetics and Reaction Engineering Example 1.4
Example 1.4 Problem Purpose This example illustrates the process of identifying reactions that are linear combinations of other reactions in a set and eliminating them until a mathematically independent
More informationA two-dimensional FE truss program
A two-dimensional FE truss program 4M020: Design Tools Eindhoven University of Technology Introduction The Matlab program fem2d allows to model and analyze two-dimensional truss structures, where trusses
More informationCreating Empirical Calibrations
030.0023.01.0 Spreadsheet Manual Save Date: December 1, 2010 Table of Contents 1. Overview... 3 2. Enable S1 Calibration Macro... 4 3. Getting Ready... 4 4. Measuring the New Sample... 5 5. Adding New
More informationLec20 Wed 1mar17 update 3mar 10am
564-17 Lec20 Wed 1mar17 update 3mar 10am Figure 15.2 Shows that increasing the diversity of the basis set lowers The HF-SCF energy considerably, but comes nowhere near the exact experimental energy, regardless
More informationLandscapeDNDC: Getting started
LandscapeDNDC: Getting started ldndc-team Institute of Meteorology and Climate Research 1 2018-02-09 ldndc-team - Institute of Meteorology and Climate Research KIT University of the State of Baden-Wuerttemberg
More informationImplementing MD Simulations and Principal Component Analysis to Calculate Protein Motions
Implementing MD Simulations and Principal Component Analysis to Calculate Protein Motions Myrna I. Merced Serrano Computational and Systems Biology Summer Institute Iowa State University Ames, IA 50010
More informationBasis sets for electron correlation
Basis sets for electron correlation Trygve Helgaker Centre for Theoretical and Computational Chemistry Department of Chemistry, University of Oslo, Norway The 12th Sostrup Summer School Quantum Chemistry
More informationCSD Conformer Generator User Guide
CSD Conformer Generator User Guide 2018 CSD Release Copyright 2017 Cambridge Crystallographic Data Centre Registered Charity No 800579 Conditions of Use The CSD Conformer Generator is copyright work belonging
More informationRunning jobs on the CS research cluster
C o m p u t e r S c i e n c e S e m i n a r s Running jobs on the CS research cluster How to get results while web surfing! by October 10, 2007 O u t l i n e Motivation Overview of CS cluster(s) Secure
More information2D Plotting with Matlab
GEEN 1300 Introduction to Engineering Computing Class Meeting #22 Monday, Nov. 9 th Engineering Computing and Problem Solving with Matlab 2-D plotting with Matlab Script files User-defined functions Matlab
More informationCHEM 498Q / CHEM 630Q: Molecular Modeling of Proteins TUTORIAL #3a: Empirical force fields
Department of Chemistry and Biochemistry, Concordia University! page 1 of 6 CHEM 498Q / CHEM 630Q: Molecular Modeling of Proteins TUTORIAL #3a: Empirical force fields INTRODUCTION The goal of this tutorial
More informationCSD Conformer Generator User Guide
CSD Conformer Generator User Guide 2017 CSD Release Copyright 2016 Cambridge Crystallographic Data Centre Registered Charity No 800579 Conditions of Use The CSD Conformer Generator is copyright work belonging
More informationMolecular dynamics simulation of graphene formation on 6H SiC substrate via simulated annealing
Molecular dynamics simulation of graphene formation on 6H SiC substrate via simulated annealing Yoon Tiem Leong @ Min Tjun Kit School of Physics Universiti Sains Malaysia 1 Aug 2012 Single layer graphene
More informationCHEM 498Q / CHEM 630Q: Molecular Modeling of Proteins TUTORIAL #3a: Empirical force fields
Department of Chemistry and Biochemistry, Concordia University page 1 of 6 CHEM 498Q / CHEM 630Q: Molecular Modeling of Proteins TUTORIAL #3a: Empirical force fields INTRODUCTION The goal of this tutorial
More informationScripting Languages Fast development, extensible programs
Scripting Languages Fast development, extensible programs Devert Alexandre School of Software Engineering of USTC November 30, 2012 Slide 1/60 Table of Contents 1 Introduction 2 Dynamic languages A Python
More informationTP 1: Euler s Algorithm-Air Resistance-Introduction to Fortran
TP 1: Euler s Algorithm-Air Resistance-Introduction to Fortran December 10, 2009 1 References N.J.Giordano, Computational Physics. R.H.Landau, M.J.Paez, C.C.Bordeianu, Computational Physics. H.Gould, J.Tobochnick,
More informationProblem Set 5 Solutions
UNIVERSITY OF ALABAMA Department of Physics and Astronomy PH 25 / LeClair Spring 2009. Problem 7.5 from your textbook Problem Set 5 Solutions (a) We are given the initial and final position vectors d i
More informationCalculations to predict motion or move objects (done repetitively in a loop)
Lab 2: Free Fall 1 Modeling Free Fall Now that you ve done experimental measurements of an object in free fall, you will model the motion of an object in free fall using numerical methods and compare your
More informationJoy Allen. March 12, 2015
LATEX Newcastle University March 12, 2015 Why use L A TEX? Extremely useful tool for writing scientific papers, presentations and PhD Thesis which are heavily laden with mathematics You get lovely pretty
More informationBenzene Dimer: dispersion forces and electronic correlation
Benzene Dimer: dispersion forces and electronic correlation Introduction The Benzene dimer is an ideal example of a system bound by π-π interaction, which is in several cases present in many biologically
More informationGRASS GIS in the sky
GRASS GIS as highperformance remote sensing toolbox Markus Neteler, Markus Metz, Moritz Lennert https://grass.osgeo.org/ GRASS GIS Intro Geographic Resources Analysis Support System Open Source GIS developed
More informationExercise 1: Structure and dipole moment of a small molecule
Introduction to computational chemistry Exercise 1: Structure and dipole moment of a small molecule Vesa Hänninen 1 Introduction In this exercise the equilibrium structure and the dipole moment of a small
More informationPySaxs A Python module and GUI for SAXS data treatment
DIRECTION DES SCIENCES DE LA MATIERE IRAMIS Laboratoire Interdisciplinaire sur l Organisation Nanométrique et Supramoléculaire PySaxs A Python module and GUI for SAXS data treatment Olivier Taché Collaborative
More informationQUANTUM CHEMISTRY WITH GAUSSIAN : A VERY BRIEF INTRODUCTION (PART 2)
QUANTUM CHEMISTRY WITH GAUSSIAN : A VERY BRIEF INTRODUCTION (PART 2) TARAS V. POGORELOV AND MIKE HALLOCK SCHOOL OF CHEMICAL SCIENCES, UIUC This tutorial continues introduction to Gaussian [2]. Here we
More informationA Package for calculating elastic tensors of rhombohedral Phases by using second-order derivative with Wien2k Package
IR ELAST + WIEN2k A Package for calculating elastic tensors of rhombohedral Phases by using second-order derivative with Wien2k Package User s guide, Rhom-elastic_13.1 (Release 16.09.2013) Morteza Jamal
More informationChem 253. Tutorial for Materials Studio
Chem 253 Tutorial for Materials Studio This tutorial is designed to introduce Materials Studio 7.0, which is a program used for modeling and simulating materials for predicting and rationalizing structure
More informationABC of DFT: Hands-on session 1 Introduction into calculations on molecules
ABC of DFT: Hands-on session 1 Introduction into calculations on molecules Tutor: Alexej Bagrets Wann? 09.11.2012, 11:30-13:00 Wo? KIT Campus Nord, Flachbau Physik, Geb. 30.22, Computerpool, Raum FE-6
More informationINTRODUCTION. This is not a full c-programming course. It is not even a full 'Java to c' programming course.
C PROGRAMMING 1 INTRODUCTION This is not a full c-programming course. It is not even a full 'Java to c' programming course. 2 LITTERATURE 3. 1 FOR C-PROGRAMMING The C Programming Language (Kernighan and
More informationElectronic Supplementary Information (ESI): First Principles Study of Photo-oxidation Degradation Mechanisms in P3HT for Organic Solar Cells
Electronic Supplementary Material (ESI) for Physical Chemistry Chemical Physics. This journal is The Royal Society of Chemistry 2014 Electronic Supplementary Information (ESI): First Principles Study of
More informationLAST TIME..THE COMMAND LINE
LAST TIME..THE COMMAND LINE Maybe slightly to fast.. Finder Applications Utilities Terminal The color can be adjusted and is simply a matter of taste. Per default it is black! Dr. Robert Kofler Introduction
More informationIntroduction to Python and its unit testing framework
Introduction to Python and its unit testing framework Instructions These are self evaluation exercises. If you know no python then work through these exercises and it will prepare yourself for the lab.
More informationPorous Media in OpenFOAM
Chalmers Spring 2009 Porous Media in OpenFOAM Haukur Elvar Hafsteinsson Introduction This tutorial gives a detailed description of how to do simulations with porous media in OpenFOAM-1.5. The porous media
More informationPython & Numpy A tutorial
Python & Numpy A tutorial Devert Alexandre School of Software Engineering of USTC 13 February 2012 Slide 1/38 Table of Contents 1 Why Python & Numpy 2 First steps with Python 3 Fun with lists 4 Quick tour
More informationTutorial I: IQ MOL and Basic DFT and MP2 Calculations 1 / 30
Tutorial I: IQ MOL and Basic DFT and MP2 Calculations Q-Chem User Workshop, Denver March 21, 2015 1 / 30 2 / 30 Introduction to IQMOL DFT and MP2 Calculations 3 / 30 IQMOL and Q-CHEM IQMOL is an open-source
More informationCS276 Homework 1: ns-2
CS276 Homework 1: ns-2 Erik Peterson October 28, 2006 1 Part 1 - Fairness between TCP variants 1.1 Method After learning ns-2, I wrote a script (Listing 3) that runs a simulation of one or two tcp flows
More informationPreparing a PDB File
Figure 1: Schematic view of the ligand-binding domain from the vitamin D receptor (PDB file 1IE9). The crystallographic waters are shown as small spheres and the bound ligand is shown as a CPK model. HO
More informationLysinebasedTrypsinActSite. A computer application for modeling Chymotrypsin
LysinebasedTrypsinActSite A computer application for modeling Chymotrypsin Version.2 May 2006 LysTAS A computer application for modeling chymotrypsin Version.2 May 2006 Table of Contents Page. Introduction
More informationIntroduction. How to use this book. Linear algebra. Mathematica. Mathematica cells
Introduction How to use this book This guide is meant as a standard reference to definitions, examples, and Mathematica techniques for linear algebra. Complementary material can be found in the Help sections
More informationAnatomy of SINGULAR talk at p. 1
Anatomy of SINGULAR talk at MaGiX@LIX 2011- p. 1 Anatomy of SINGULAR talk at MaGiX@LIX 2011 - Hans Schönemann hannes@mathematik.uni-kl.de Department of Mathematics University of Kaiserslautern Anatomy
More informationHow to Make or Plot a Graph or Chart in Excel
This is a complete video tutorial on How to Make or Plot a Graph or Chart in Excel. To make complex chart like Gantt Chart, you have know the basic principles of making a chart. Though I have used Excel
More informationDiscrete Mathematics
Discrete Mathematics Jeremy Siek Spring 2010 Jeremy Siek Discrete Mathematics 1 / 24 Outline of Lecture 3 1. Proofs and Isabelle 2. Proof Strategy, Forward and Backwards Reasoning 3. Making Mistakes Jeremy
More information2. To measure the emission lines in the hydrogen, helium and possibly other elemental spectra, and compare these to know values.
4.1. Purpose 1. To record several elemental emission spectra using arc lamps filled with each element using the Ocean Optics USB650 spectrometer. 2. To measure the emission lines in the hydrogen, helium
More informationNon-Minimal SUSY Computation of observables and fit to exp
Non-Minimal SUSY Computation of observables and fit to experimental data + Peter Athron, Alexander Voigt Dresden Fittino Workshop, 24th November 2010, DESY Outline 1 Introduction 2 Motivation 3 Outline
More informationAccurate multireference configuration interaction calculations on the lowest 1 and 3 electronic states of C 2,CN, BN, and BO
Accurate multireference configuration interaction calculations on the lowest 1 and 3 electronic states of C 2,CN, BN, and BO Kirk A. Peterson a) Department of Chemistry, Washington State University and
More informationOptical Pumping of Rubidium
Optical Pumping of Rubidium Practical Course M I. Physikalisches Institut Universiät zu Köln February 3, 2014 Abstract The hyperfine levels of Rubidium atoms in a sample cell are split up into their Zeeman
More informationApplied Linear Algebra in Geoscience Using MATLAB
Applied Linear Algebra in Geoscience Using MATLAB Contents Getting Started Creating Arrays Mathematical Operations with Arrays Using Script Files and Managing Data Two-Dimensional Plots Programming in
More informationMnova Software for Analyzing Reaction Monitoring NMR Spectra
Mnova Software for Analyzing Reaction Monitoring NMR Spectra Version 10 Chen Peng, PhD, VP of Business Development, US & China Mestrelab Research SL San Diego, CA, USA chen.peng@mestrelab.com 858.736.4563
More informationPractice / Lecture 8 : Differential equations Quantum Particle in a box
Problem 1 : Quantum Particle in a box In this problem we would like to modify the code of the pendulum, written in the last session, to solve the Schrodinger equation. Problem 1.a : d 2 y(x) dx 2 = 2m(V
More informationNumPy 1.5. open source. Beginner's Guide. v g I. performance, Python based free open source NumPy. An action-packed guide for the easy-to-use, high
NumPy 1.5 Beginner's Guide An actionpacked guide for the easytouse, high performance, Python based free open source NumPy mathematical library using realworld examples Ivan Idris.; 'J 'A,, v g I open source
More informationFast Simulation of Higgs Recoil Mass
Fast Simulation of Higgs Recoil Mass YANG Ying 1 2 RUAN Manqi 2 JIN Shan 2 1 Central China Normal University 2 Institute of High Energy Physics Chinese Academy of Sciences 1 Outline From ILD to CEPC detector
More informationTainted Flow Analysis on e-ssaform
Tainted Flow Analysis on e-ssaform Programs Andrei Rimsa, Marcelo d Amorim and Fernando M. Q. Pereira The Objective of this work is to detect security vulnerabilities in programs via static analysis Vulnerabilities
More informationCS429: Computer Organization and Architecture
CS429: Computer Organization and Architecture Warren Hunt, Jr. and Bill Young Department of Computer Sciences University of Texas at Austin Last updated: September 3, 2014 at 08:38 CS429 Slideset C: 1
More informationCharmed baryon spectroscopy in a quark model
Charmed baryon spectroscopy in a quark model Tokyo tech RCNP A RIKEN B Tetsuya YoshidaMakoto Oka Atsushi Hosaka A Emiko Hiyama B Ktsunori Sadato A Contents Ø Motivation Ø Formalism Ø Result ü Spectrum
More informationAn area chart emphasizes the trend of each value over time. An area chart also shows the relationship of parts to a whole.
Excel 2003 Creating a Chart Introduction Page 1 By the end of this lesson, learners should be able to: Identify the parts of a chart Identify different types of charts Create an Embedded Chart Create a
More informationHomework 1. Part(a) Due: 15 Mar, 2018, 11:55pm
ENGG1203: Introduction to Electrical and Electronic Engineering Second Semester, 2017 18 Homework 1 Due: 15 Mar, 2018, 11:55pm Instruction: Submit your answers electronically through Moodle. In Moodle,
More informationThe Schrödinger KNIME extensions
The Schrödinger KNIME extensions Computational Chemistry and Cheminformatics in a workflow environment Jean-Christophe Mozziconacci Volker Eyrich Topics What are the Schrödinger extensions? Workflow application
More informationInkscape and Python. Alex Valavanis. July 11, Institute of Microwaves and Photonics, University of Leeds
Inkscape and Python Alex Valavanis Institute of Microwaves and Photonics, University of Leeds July 11, 2014 Overview Inkscape: an intro to the project How I got involved Inkscape development My involvement
More informationWide-field Infrared Survey Explorer (WISE)
Wide-field Infrared Survey Explorer (WISE) WSDC MST7 Test Report Version 1.0 30 July 2009 Prepared by: S. J. Barba Infrared Processing and Analysis Center California Institute of Technology WSDC D-T011
More informationSolution of the Electronic Schrödinger Equation. Using Basis Sets to Solve the Electronic Schrödinger Equation with Electron Correlation
Solution of the Electronic Schrödinger Equation Using Basis Sets to Solve the Electronic Schrödinger Equation with Electron Correlation Errors in HF Predictions: Binding Energies D e (kcal/mol) HF Expt
More informationLaTeX in a nutshell. Master on Libre Software Miguel Vidal. September 24, GSyC/Libresoft URJC
Master on Libre Software 2010 mvidal@gsyc.urjc.es GSyC/Libresoft URJC September 24, 2010 (cc) 2010. Some rights reserved. This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License,
More informationExample: H 2 O (the car file)
Example: H 2 O (the car file) As a practical example of DFT methods we calculate the energy and electronic properties of the water molecule. In order to carry out the DFT calculation you will need a set
More informationModern Functional Programming and Actors With Scala and Akka
Modern Functional Programming and Actors With Scala and Akka Aaron Kosmatin Computer Science Department San Jose State University San Jose, CA 95192 707-508-9143 akosmatin@gmail.com Abstract For many years,
More informationDynamics of the Atmosphere GEMPAK Lab 3. 3) In-class exercise about geostrophic balance in the real atmosphere.
Dynamics of the Atmosphere GEMPAK Lab 3 Goals of this lab: 1) Learn about Linux scripts. 2) Learn how to combine levels in GEMPAK functions. 3) In-class exercise about geostrophic balance in the real atmosphere.
More informationPractical Bioinformatics
4/24/2017 Resources Course website: http://histo.ucsf.edu/bms270/ Resources on the course website: Syllabus Papers and code (for downloading before class) Slides and transcripts (available after class)
More informationSection 7: Discriminant Analysis.
Section 7: Discriminant Analysis. Ensure you have completed all previous worksheets before advancing. 1 Linear Discriminant Analysis To perform Linear Discriminant Analysis in R we will make use of the
More informationModule 2: Quantum Espresso Walkthrough
Module 2: Quantum Espresso Walkthrough Energy and Geometry Optimization of the H 2 Molecule We will be using the PWSCF code for quantum mechanical calculations of extended systems. The PWSCF program is
More informationLab 2 Worksheet. Problems. Problem 1: Geometry and Linear Equations
Lab 2 Worksheet Problems Problem : Geometry and Linear Equations Linear algebra is, first and foremost, the study of systems of linear equations. You are going to encounter linear systems frequently in
More informationAdaptive Spike-Based Solver 1.0 User Guide
Intel r Adaptive Spike-Based Solver 10 User Guide I V 1 W 2 I V 2 W 3 I V 3 W 4 I 1 Contents 1 Overview 4 11 A Quick What, Why, and How 4 12 A Hello World Example 7 13 Future Developments 8 14 User Guide
More informationProblem Set 4 Solutions
8.369 Problem Set 4 Solutions Problem : (5+5+ points) (a) Let us write (Â () + Â)ψ = λ( ˆB () + ˆB)ψ, where ψ = ψ () + ψ () + and λ = λ () + λ () + are expansions of the new eigensolutions in powers of
More informationParametric Model for the LWA-1 Dipole Response as a Function of Frequency
Parametric Model for the LWA-1 Dipole Response as a Function of Frequency Jayce Dowell December 20, 2011 LWA Memo #178 Version 2 Contents 1 Introduction 2 2 Methods 2 3 Results 3 4 Application 3 A Document
More informationModeling a Composite Slot Cross-Section for Torsional Analysis
Modeling a Composite Slot Cross-Section for Torsional Analysis The cross-section in question is shown below (see also p. 432 in the textbook). Due to double symmetry, only one-quarter of the cross-section
More informationSTRUCTURAL BIOINFORMATICS I. Fall 2015
STRUCTURAL BIOINFORMATICS I Fall 2015 Info Course Number - Classification: Biology 5411 Class Schedule: Monday 5:30-7:50 PM, SERC Room 456 (4 th floor) Instructors: Vincenzo Carnevale - SERC, Room 704C;
More informationReport on stay at ZAMG
Report on stay at ZAMG Viena, Austria 13.05.2013 05.07.2013 Simona Tascu NMA, Romania Supervised by: Yong Wang and Theresa Gorgas Introduction The goal of the present stay was to develop and optimize the
More informationSOLUTION. Homework 1. Part(a) Due: 15 Mar, 2018, 11:55pm
ENGG1203: Introduction to Electrical and Electronic Engineering Second Semester, 2017 18 Homework 1 Due: 15 Mar, 2018, 11:55pm Instruction: Submit your answers electronically through Moodle. In Moodle,
More informationLectures about Python, useful both for beginners and experts, can be found at (http://scipy-lectures.github.io).
Random Matrix Theory (Sethna, "Entropy, Order Parameters, and Complexity", ex. 1.6, developed with Piet Brouwer) 2016, James Sethna, all rights reserved. This is an ipython notebook. This hints file is
More informationDADI INSTITUTE OF ENGINEERING & TECHNOLOGY
DADI INSTITUTE OF ENGINEERING & TECHNOLOGY (Approved by A.I.C.T.E., New Delhi& Affiliated to JNTUK, Kakinada) NAAC Accredited Institute An ISO 9001:2008, 14001:2004 & OHSAS 18001:2007 Certified Institute
More informationUptake of OH radical to aqueous aerosol: a computational study
Uptake of OH radical to aqueous aerosol: a computational study Grigory Andreev Karpov Institute of Physical Chemistry 10 Vorontsovo pole, Moscow, 105064, Russia Institute of Physical Chemistry and Electrochemistry
More informationSV6: Polynomial Regression and Neural Networks
Signal and Information Processing Laboratory Institut für Signal- und Informationsverarbeitung Fachpraktikum Signalverarbeitung SV6: Polynomial Regression and Neural Networks 1 Introduction Consider the
More informationAPPENDIX 1 MATLAB AND ANSYS PROGRAMS
APPENDIX 1 MATLAB AND ANSYS PROGRAMS This appendix lists all the MATLAB and ANSYS codes used in each chapter, along with a short description of the purpose of each. MATLAB codes have the suffix.m and the
More informationAb initio calculations for potential energy surfaces. D. Talbi GRAAL- Montpellier
Ab initio calculations for potential energy surfaces D. Talbi GRAAL- Montpellier A theoretical study of a reaction is a two step process I-Electronic calculations : techniques of quantum chemistry potential
More informationMoving into the information age: From records to Google Earth
Moving into the information age: From records to Google Earth David R. R. Smith Psychology, School of Life Sciences, University of Hull e-mail: davidsmith.butterflies@gmail.com Introduction Many of us
More informationPractical Advice for Quantum Chemistry Computations. C. David Sherrill School of Chemistry and Biochemistry Georgia Institute of Technology
Practical Advice for Quantum Chemistry Computations C. David Sherrill School of Chemistry and Biochemistry Georgia Institute of Technology Choice of Basis Set STO-3G is too small 6-31G* or 6-31G** 6 probably
More informationRFI Identification and Automatic Flagging
RFI Identification and Automatic Flagging 1388MHz Momjian Urvashi Rau & Emmanuel 1756 MHz NRAO VLA Data Reduction Workshop 27 31 October 2014 1 Outline RFI at the VLA + Online Flags Automatic Flagging
More informationMolecular Dynamics, Stochastic simulations, and Monte Carlo
UMEÅ UNIVERSITY September 11, 2018 Department of Physics Modeling and Simulation, 7.5hp Molecular Dynamics, Stochastic simulations, and Monte Carlo Peter Olsson Miscellanous comments The following instructions
More informationMadagascar tutorial: Field data processing
Madagascar tutorial: Field data processing Maurice the Aye-Aye ABSTRACT In this tutorial, you will learn about multiple attenuation using parabolic Radon transform (Hampson, 1986). You will first go through
More informationData Structures & Database Queries in GIS
Data Structures & Database Queries in GIS Objective In this lab we will show you how to use ArcGIS for analysis of digital elevation models (DEM s), in relationship to Rocky Mountain bighorn sheep (Ovis
More information