R and Python for Oceanographers: A Practical Guide with Applications
()
About this ebook
R and Python for Oceanographers: A Practical Guide with Applications describes the uses of scientific Python packages and R in oceanographic data analysis, including both script codes and graphic outputs. Each chapter begins with theoretical background that is followed by step-by-step examples of software applications, including scripts, graphics, tables and practical exercises for better understanding of the subject. Examples include frequently used data analysis approaches in physical and chemical oceanography, but also contain topics on data import/export and GIS mapping. The examples seen in book provide uses of the latest versions of Python and R libraries.
- Presents much needed oceanographic data analysis approaches to chemical and physical oceanography
- Includes examples with software applications (based on Python and R), including free software for the analysis of oceanographic data
- Provides guidance on how to get started, along with guidance on example code and output
Hakan Alyuruk
Hakan Alyuruk is a research assistant (PhD) at the Institute of Marine Sciences and Technology, Dokuz Eylül University. His doctoral studies centered on characterization and determination of dissolved organic matter in seawater samples. His current research interests are mainly based on the in-depth chemical analyses and biogeochemical cycles of organic matter in the water column.
Related to R and Python for Oceanographers
Related ebooks
Advanced Python Development: Using Powerful Language Features in Real-World Applications Rating: 0 out of 5 stars0 ratingsPython Geospatial Analysis Essentials Rating: 0 out of 5 stars0 ratingsIntegrating Python with Leading Computer Forensics Platforms Rating: 0 out of 5 stars0 ratingsAdvanced Python Scripting for ArcGIS Pro Rating: 4 out of 5 stars4/5Advances in Subsurface Data Analytics Rating: 0 out of 5 stars0 ratingsGIS – An Overview of Applications Rating: 0 out of 5 stars0 ratingsTransform Plate Boundaries and Fracture Zones Rating: 5 out of 5 stars5/5Groundwater Modelling: An Introduction with Sample Programs in BASIC Rating: 0 out of 5 stars0 ratingsPython Geospatial Analysis Cookbook Rating: 0 out of 5 stars0 ratingsSediment Dynamics of Chinese Muddy Coasts and Estuaries: Physics, Biology and their Interactions Rating: 0 out of 5 stars0 ratingsCUDA Fortran for Scientists and Engineers: Best Practices for Efficient CUDA Fortran Programming Rating: 0 out of 5 stars0 ratingsComputational Methods in Subsurface Flow Rating: 0 out of 5 stars0 ratingsGeospatial Intelligence A Complete Guide - 2020 Edition Rating: 0 out of 5 stars0 ratingsGeospatial Development By Example with Python Rating: 5 out of 5 stars5/5Remote Sensing of Ocean and Coastal Environments Rating: 5 out of 5 stars5/5Boundary Element Techniques in Engineering Rating: 4 out of 5 stars4/5Understanding Faults: Detecting, Dating, and Modeling Rating: 0 out of 5 stars0 ratingsMining Geophysics Rating: 5 out of 5 stars5/5Accelerating MATLAB with GPU Computing: A Primer with Examples Rating: 3 out of 5 stars3/5Building Mapping Applications with QGIS Rating: 0 out of 5 stars0 ratingsSediment Quality and Impact Assessment of Pollutants Rating: 0 out of 5 stars0 ratingsMastering GeoServer Rating: 0 out of 5 stars0 ratingsPython Scripting for ArcGIS Rating: 5 out of 5 stars5/5Data Assimilation for the Geosciences: From Theory to Application Rating: 0 out of 5 stars0 ratingsSeismic Inversion: Theory and Applications Rating: 0 out of 5 stars0 ratingsProgramming ArcGIS with Python Cookbook - Second Edition Rating: 4 out of 5 stars4/5Data Analysis Methods in Physical Oceanography Rating: 0 out of 5 stars0 ratingsLearning Geospatial Analysis with Python Rating: 5 out of 5 stars5/5Geoscience After IT: A View of the Present and Future Impact of Information Technology on Geoscience Rating: 5 out of 5 stars5/5Environmental Forensics: Contaminant Specific Guide Rating: 4 out of 5 stars4/5
Physics For You
Quantum Physics: A Beginners Guide to How Quantum Physics Affects Everything around Us Rating: 5 out of 5 stars5/5Vibration and Frequency: How to Get What You Want in Life Rating: 4 out of 5 stars4/5Physics I For Dummies Rating: 4 out of 5 stars4/5AP Physics 1 Premium, 2024: 4 Practice Tests + Comprehensive Review + Online Practice Rating: 0 out of 5 stars0 ratingsPhysics Essentials For Dummies Rating: 4 out of 5 stars4/5How to Diagnose and Fix Everything Electronic, Second Edition Rating: 4 out of 5 stars4/5The Reality Revolution: The Mind-Blowing Movement to Hack Your Reality Rating: 4 out of 5 stars4/5Introducing Quantum Theory: A Graphic Guide Rating: 4 out of 5 stars4/5QED: The Strange Theory of Light and Matter Rating: 4 out of 5 stars4/5Step By Step Mixing: How to Create Great Mixes Using Only 5 Plug-ins Rating: 5 out of 5 stars5/5Moving Through Parallel Worlds To Achieve Your Dreams Rating: 4 out of 5 stars4/5What If?: Serious Scientific Answers to Absurd Hypothetical Questions Rating: 5 out of 5 stars5/5Welcome to the Universe: An Astrophysical Tour Rating: 4 out of 5 stars4/5Quantum Physics for Beginners Rating: 4 out of 5 stars4/5Feynman Lectures Simplified 1A: Basics of Physics & Newton's Laws Rating: 5 out of 5 stars5/5String Theory For Dummies Rating: 4 out of 5 stars4/5Unlocking Spanish with Paul Noble Rating: 5 out of 5 stars5/5The God Effect: Quantum Entanglement, Science's Strangest Phenomenon Rating: 4 out of 5 stars4/5The Consciousness of the Atom Rating: 5 out of 5 stars5/5The Physics Book: From the Big Bang to Quantum Resurrection, 250 Milestones in the History of Physics Rating: 4 out of 5 stars4/5The Principia: The Authoritative Translation: Mathematical Principles of Natural Philosophy Rating: 4 out of 5 stars4/5The Dancing Wu Li Masters: An Overview of the New Physics Rating: 4 out of 5 stars4/5A Universe from Nothing: Why There Is Something Rather than Nothing Rating: 4 out of 5 stars4/5Midnight in Chernobyl: The Untold Story of the World's Greatest Nuclear Disaster Rating: 4 out of 5 stars4/5God Particle: If the Universe Is the Answer, What Is the Question? Rating: 5 out of 5 stars5/5Beyond Weird: Why Everything You Thought You Knew about Quantum Physics Is Different Rating: 4 out of 5 stars4/5Flatland Rating: 4 out of 5 stars4/5The Grid: The Fraying Wires Between Americans and Our Energy Future Rating: 4 out of 5 stars4/5
Reviews for R and Python for Oceanographers
0 ratings0 reviews
Book preview
R and Python for Oceanographers - Hakan Alyuruk
India
Chapter 1
Introduction to R and Python
Abstract
R is a programming language and environment for statistical computing and graphics, while Python is an interpreted, general-purpose, object-oriented, and high-level programming language. Since R and Python are open source languages and freely distributed, usage of both languages in scientific computation and data analysis have substantially increased in the last decade. R and Python are widely used for academic and commercial purposes, and it is possible to find rich information on their usage through help documentations, user communities, internet resources, and books. In this chapter, a brief introduction to R and Python programming languages is given, including their developments, advantages over other languages, package systems and structural components, installation instructions, and editing tools.
Keywords
R; Python; Packages; Installation; IDE; Editor; Scientific computing
1.1 Introduction to R
R is a language and package-based software environment that provides a wide variety of functions for statistical computing and graphics. R is a project of GNU, and its root depends on S language with some differences. S language and environment was developed by John Chambers and his colleagues at Bell Laboratories (formerly AT&T and now Lucent Technologies). While S language provides programmable research tools for statistical analysis, R has evolved as an Open Source alternative of the S language. R was initially developed by Robert Gentleman and Ross Ihaka at the statistics department of the University of Auckland. Its name R
comes from the first letters of its developers. Besides its statistical capabilities (such as linear and nonlinear modelling, classical statistical tests, time-series analysis, classification, clustering, etc.), high-resolution publication-quality plots can be produced with full control of the users. R is distributed under the terms of Free Software Foundation's GNU GPL license. Thanks to terms of this license, source codes of both base distribution and external packages with GPL license can be accessed, modified, and re-distributed by the user. Therefore, data analysts can view and contribute to source codes of these packages by accessing the running algorithms and adding their specific functions. As a result, scientists and students at universities can use R freely and without a license fee. The use of free software in science encourages and improves worldwide collaboration on data-analysis approaches. Also, R is used in teaching statistics at undergraduate and graduate levels at universities since students can freely use these statistical tools [1, 2].
The base distribution of R is maintained by the R Development Core Team since 1997. In addition, a huge group of volunteer developers contribute to the project by developing new packages or upgrading existing add-on packages to improve their functionalities. The project's website is the main official information source and can be reached from Fig. 1.1:
Fig. 1.1 A view of official R-Project website.
https://www.r-project.org
1.2 R environment
R statistical environment system is composed of two main parts: base-distribution system and add-on packages.
1.2.1 Base system of R
The base system consists of core functions required to run R language. Also, core statistical functions (stats package) and graphical tools (graphics package) are included as dependencies of other add-on packages. Core packages included in the installation media of base system cover standard statistical functions, such as statistical tests, linear models, non-linear models, data-handling functions, clustering functions, and survival-test functions. A list of packages within the base system (included in R version 3.4.0) is given below.
A list of base distribution packages:
1.2.2 Add-on packages
Add-on packages are developed and maintained by the user community. These packages contain many advanced statistical, computational, and graphical functions. Some of the packages have dependencies on other packages.
Examples of add-on packages:
1.3 Installation of R
1.3.1 Installation of R base software
R is an open source software, and it can be downloaded and installed freely. Latest/older versions of R software for Windows, Linux, or Mac OSX operating systems could be downloaded and installed from http://cran.r-project.org/ (Fig.