100% found this document useful (1 vote)
54 views

Introduction to Python in Earth Science Data Analysis 1st Edition Maurizio Petrelli download

The document is an introduction to the book 'Introduction to Python in Earth Science Data Analysis' by Maurizio Petrelli, aimed at teaching Earth Scientists how to use Python for data visualization, analysis, and modeling. It covers essential programming concepts, descriptive statistics, and machine learning applications tailored for geological data. The book is structured into five parts, providing a comprehensive resource for students and professionals in the Earth Sciences field.

Uploaded by

naucaaware91
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
54 views

Introduction to Python in Earth Science Data Analysis 1st Edition Maurizio Petrelli download

The document is an introduction to the book 'Introduction to Python in Earth Science Data Analysis' by Maurizio Petrelli, aimed at teaching Earth Scientists how to use Python for data visualization, analysis, and modeling. It covers essential programming concepts, descriptive statistics, and machine learning applications tailored for geological data. The book is structured into five parts, providing a comprehensive resource for students and professionals in the Earth Sciences field.

Uploaded by

naucaaware91
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 40

Introduction to Python in Earth Science Data

Analysis 1st Edition Maurizio Petrelli download

https://ebookmeta.com/product/introduction-to-python-in-earth-
science-data-analysis-1st-edition-maurizio-petrelli/

Download more ebook from https://ebookmeta.com


Maurizio Petrelli

Introduction
to Python
in Earth Science
Data Analysis
From Descriptive Statistics
to Machine Learning
Springer Textbooks in Earth Sciences,
Geography and Environment
The Springer Textbooks series publishes a broad portfolio of textbooks on Earth
Sciences, Geography and Environmental Science. Springer textbooks provide
comprehensive introductions as well as in-depth knowledge for advanced studies.
A clear, reader-friendly layout and features such as end-of-chapter summaries, work
examples, exercises, and glossaries help the reader to access the subject. Springer
textbooks are essential for students, researchers and applied scientists.

More information about this series at http://www.springer.com/series/15201


Maurizio Petrelli

Introduction to Python
in Earth Science Data
Analysis
From Descriptive Statistics to Machine
Learning
Maurizio Petrelli
Department of Physics and Geology
University of Perugia
Perugia, Italy

ISSN 2510-1307 ISSN 2510-1315 (electronic)


Springer Textbooks in Earth Sciences, Geography and Environment
ISBN 978-3-030-78054-8 ISBN 978-3-030-78055-5 (eBook)
https://doi.org/10.1007/978-3-030-78055-5

© The Editor(s) (if applicable) and The Author(s), under exclusive license to Springer Nature
Switzerland AG 2021
This work is subject to copyright. All rights are solely and exclusively licensed by the Publisher, whether
the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse
of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and
transmission or information storage and retrieval, electronic adaptation, computer software, or by similar
or dissimilar methodology now known or hereafter developed.
The use of general descriptive names, registered names, trademarks, service marks, etc. in this publication
does not imply, even in the absence of a specific statement, that such names are exempt from the relevant
protective laws and regulations and therefore free for general use.
The publisher, the authors and the editors are safe to assume that the advice and information in this book
are believed to be true and accurate at the date of publication. Neither the publisher nor the authors or
the editors give a warranty, expressed or implied, with respect to the material contained herein or for any
errors or omissions that may have been made. The publisher remains neutral with regard to jurisdictional
claims in published maps and institutional affiliations.

This Springer imprint is published by the registered company Springer Nature Switzerland AG
The registered company address is: Gewerbestrasse 11, 6330 Cham, Switzerland
To my daughters Agata, Anna, and Caterina,
my wife Arianna, and Atomo who completes
the family
Preface

The idea of writing this book came to me in 2015 when I started teaching a course
entitled “Data Analysis and Interpretation in Earth Science” at the Department of
Physics and Geology of Perugia University. From the beginning of the course, I
realized that many of my students were strongly interested in data managing, visu-
alizing, and modeling in Python. I also realized that no reference book was avail-
able for teaching Python to geologists. Although numerous books present Python
to programmers at all levels, from beginners to experts, they mostly focus solely on
programming techniques, without discussing real applications, especially in geology.
In other words, a book devoted to Earth Scientists was missing. The project grew
and became structured while teaching the basics of Python to Earth Scientists at
the Eötvös University Budapest (Hungary) and at Leibniz Universität of Hannover
(Germany) in December 2018 and February 2020, respectively. Sadly, by the begin-
ning of March 2020, the COVID-19 pandemic had dramatically spread to all regions
of Italy and, on March 4th, the Italian government shut down all schools and univer-
sities nationwide, forcing me to stay at home like most Italians. In one of the most
confusing and insecure moments of my life, I decided to start writing this book.
“Introduction to Python in Earth Science Data Analysis” is devoted to Earth Scien-
tists, at any level, from students to academics and professionals, who would like to
harness the power of Python to visualize, analyze, and model geological data. No
experience in programming is required to use this book. If you are working in the
Earth Sciences, are a novice programmer, and would like to exploit the power of
Python in your projects, this is the right place for you.

Assisi, Italy Maurizio Petrelli


March 2021

vii
Acknowledgments

I would like to acknowledge all the people who encouraged me when I started
planning this project and all those who supported me during the writing. The first
one is Diego Perugini, who allowed me to re-enter academia in 2014 through the
Chronos project after a hiatus of three years. I also thank the Erasmus Plus (E+)
program that supported my foreign teaching excursions in Hungary and Germany,
including Roberto Rettori and Sabrina Nazzareni, who oversaw the E+ program for
my department, and the local E+ officers at the University of Perugia (Sonia Trinari
and Francesca Buco) and at the Tiber Umbria Comett Education Programme (Maria
Grazia Valocchia). Professor Francois Holtz (Leibniz Universität Hannover) and
Professor Szabolcs Harangi (Eötvös University Budapest) are also kindly acknowl-
edged for allowing me to run the “Python in Earth Sciences” courses at their insti-
tutions. The Department of Physics and Geology at University of Perugia, who
supported this book through the Engage FRB2019 project, also has my gratitude. I
also give my heartfelt thanks to my family, who put up with me as I wrote this book.
Finally, I sincerely thank Aviva Loew (Academic Language Experts), Giuseppe la
Spina, Eleonora Carocci, and Diego González-García for their critical suggestions,
which have largely improved this book.
Just before I starting writing these acknowledgments, I received a message on
my smartphone stating that I had an appointment for a COVID-19 vaccination the
following day (March 3, 2021), exactly a year to the day after the initial lockdown in
Italy. I interpreted this notification as a message of belief. I hope that the worldwide
vaccination campaigns that have been launched will signal the beginning of a new era
of beloved “normality” in our lives and that the time for resilience against COVID-19
is coming to an end. Now should be a time of empathy, cooperation, and rebirth.

ix
Overview

Let me Introduce Myself

Hi and welcome. My name is Maurizio Petrelli and I currently work at the Depart-
ment of Physics and Geology, University of Perugia (UniPg). My research focuses
on the petrological characterization of volcanoes with an emphasis on the dynamics
and timescales of pre-eruptive events. For this work, I combine classical and uncon-
ventional techniques. Since 2002, I’ve worked intensely in the laboratory, mainly
focusing on the development UniPg’s facility for Laser Ablation Inductively Coupled
Plasma Mass Spectrometry (LA-ICP-MS). In February 2006, I obtained my Ph.D.
degree with a thesis entitled “Nonlinear Dynamics in Magma Interaction Processes
and their Implications on Magma Hybridization.” Currently, I am developing a new
line of research at UniPg, Department of Physics and Geology, for applying Machine
Learning techniques in Geology. Finally, I also manage the LA-ICP-MS laboratory
at UniPg.

Organization of Book

The book is organized into five parts plus three appendixes. The Part I, entitled
“Python for Geologists: A Kickoff,” focuses on the very basics of Python program-
ming, from setting up an environment for scientific computing to solving your first
geology problems using Python. The Part II is entitled “Describing Geological Data”
and explains how to start visualizing (i.e., making plots) and generating descriptive
statistics, both univariate and bivariate. The Part III, entitled “Integrals and Differ-
ential Equations in Geology,” discusses integrals and differential equations while
highlighting various applications in geology. The Part IV deals with “Probability
Density Functions and Error Analysis” applied to the evaluation and modeling of
Earth Science data. Finally, the Part V, entitled “Robust Statistics and Machine Learn-
ing” analyzes data sets that depart from normality (statistically speaking) and the
application of machine learning techniques to data modeling in the Earth Sciences.

xi
xii Overview

Styling Conventions

I use conventions throughout this book to identify different types of information. For
example, Python statements, commands, and variables used within the main body of
the text are set in italics.
Consider the following quoted text as an example “There are many options to
create multiple subplots in matplotlib. In my opinion, the easiest approach is to
create an empty figure [i.e., fig = plt.figure(), then add multiple axes (i.e., subplots)
by using the method fig.add_subplot(nrows, ncols, index)]. The parameters nrows,
ncols, and index indicate the numbers of rows and columns (ncols) and the positional
index. In detail, index starts at 1 in the upper-left corner and increases to the right.
To better understand, consider the code listing 4.4.”
A block of Python code is highlighted as follows:

Listing 1 Example of code listing in Python

Shared Codes

All code presented in this book is tested on the Anaconda Individual Edition ver.
2021.5 (Python 3.8.8) and is available at my GitHub repository ( Petrelli-m):
http://bit.ly/python_earth_science

Involvement and Collaborations

I am always open to new collaborations worldwide. Feel free to contact me by mail


to discuss new ideas or propose a collaboration. You can also reach me through
my personal website or by Twitter. I love sharing the content of this book in short
courses everywhere. If you are interested, please contact me to organize a visit to
your institution.
Personal contacts:
[email protected]
@mauripetre
https://www.mauriziopetrelli.info
Contents

Part I Python for Geologists: A Kickoff


1 Setting Up Your Python Environment, Easily . . . . . . . . . . . . . . . . . . . . 3
1.1 The Python Programming Language . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 Programming Paradigms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.3 A Local Python Environment for Scientific Computing . . . . . . . . 5
1.4 Remote Python Environments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.5 Python Packages for Scientific Applications . . . . . . . . . . . . . . . . . . 8
1.6 Python Packages Specifically Developed for Geologists . . . . . . . . 9
2 Python Essentials for a Geologist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.1 Start Working with IPython Console . . . . . . . . . . . . . . . . . . . . . . . . 11
2.2 Naming and Style Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.3 Working with Python Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.4 Conditional Statements, Indentation, Loops, and Functions . . . . . 17
2.5 Importing External Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.6 Basic Operations and Mathematical Functions . . . . . . . . . . . . . . . . 21
3 Solving Geology Problems Using Python: An Introduction . . . . . . . . 25
3.1 My First Binary Diagram Using Python . . . . . . . . . . . . . . . . . . . . . 25
3.2 Making Our First Models in Earth Science . . . . . . . . . . . . . . . . . . . 32
3.3 Quick Intro to Spatial Data Representation . . . . . . . . . . . . . . . . . . . 36

Part II Describing Geological Data


4 Graphical Visualization of a Geological Data Set . . . . . . . . . . . . . . . . . 43
4.1 Statistical Description of a Data Set: Key Concepts . . . . . . . . . . . . 43
4.2 Visualizing Univariate Sample Distributions . . . . . . . . . . . . . . . . . . 44
4.3 Preparing Publication-Ready Binary Diagrams . . . . . . . . . . . . . . . 47
4.4 Visualization of Multivariate Data: A First Attempt . . . . . . . . . . . 66
5 Descriptive Statistics 1: Univariate Analysis . . . . . . . . . . . . . . . . . . . . . 67
5.1 Basics of Descriptive Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
5.2 Location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67

xiii
xiv Contents

5.3 Dispersion or Scale . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72


5.4 Skewness . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
5.5 Descriptive Statistics in Pandas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
5.6 Box Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
6 Descriptive Statistics 2: Bivariate Analysis . . . . . . . . . . . . . . . . . . . . . . . 83
6.1 Covariance and Correlation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
6.2 Simple Linear Regression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
6.3 Polynomial Regression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
6.4 Nonlinear Regression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91

Part III Integrals and Differential Equations in Geology


7 Numerical Integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
7.1 Definite Integrals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
7.2 Basic Properties of Integrals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
7.3 Analytical and Numerical Solutions of Definite Integrals . . . . . . . 101
7.4 Fundamental Theorem of Calculus and Analytical Solutions . . . . 101
7.5 Numerical Solutions of Definite Integrals . . . . . . . . . . . . . . . . . . . . 103
7.6 Computing the Volume of Geological Structures . . . . . . . . . . . . . . 109
7.7 Computing the Lithostatic Pressure . . . . . . . . . . . . . . . . . . . . . . . . . 110
8 Differential Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
8.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
8.2 Ordinary Differential Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
8.3 Numerical Solutions of First-Order Ordinary Differential
Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
8.4 Fick’s Law of Diffusion—A Widely Used Partial
Differential Equation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126

Part IV Probability Density Functions and Error Analysis


9 Probability Density Functions and Their Use in Geology . . . . . . . . . . 137
9.1 Probability Distribution and Density Functions . . . . . . . . . . . . . . . 137
9.2 The Normal Distribution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
9.3 The Log-Normal Distribution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
9.4 Other Useful PDFs for Geological Applications . . . . . . . . . . . . . . . 144
9.5 Density Estimation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
9.6 The Central Limit Theorem and Normal Distributed Means . . . . 152
10 Error Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
10.1 Dealing with Errors in Geological Measurements . . . . . . . . . . . . . 155
10.2 Reporting Uncertainties in Binary Diagrams . . . . . . . . . . . . . . . . . 162
10.3 Linearized Approach to Error Propagation . . . . . . . . . . . . . . . . . . . 168
10.4 The Mote Carlo Approach to Error Propagation . . . . . . . . . . . . . . . 172
Contents xv

Part V Robust Statistics and Machine Learning


11 Introduction to Robust Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
11.1 Classical and Robust Approaches to Statistics . . . . . . . . . . . . . . . . 181
11.2 Normality Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
11.3 Robust Estimators for Location and Scale . . . . . . . . . . . . . . . . . . . . 186
11.4 Robust Statistics in Geochemistry . . . . . . . . . . . . . . . . . . . . . . . . . . 192
12 Machine Learning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
12.1 Introduction to Machine Learning in Geology . . . . . . . . . . . . . . . . 195
12.2 Machine Learning in Python . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
12.3 A Case Study of Machine Learning in Geology . . . . . . . . . . . . . . . 197

Appendix A: Python Packages and Resources for Geologists . . . . . . . . . . . 209


Appendix B: Introduction to Object Oriented Programming . . . . . . . . . . 211
Appendix C: The Matplotlib Object Oriented API . . . . . . . . . . . . . . . . . . . . 215
Appendix D: Working with Pandas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
Further Readings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
Part I
Python for Geologists: A Kickoff
Chapter 1
Setting Up Your Python Environment,
Easily

1.1 The Python Programming Language

Python is a high-level, modular, interpreted programming language.1 What does this


mean? A high-level programming language is characterized by a strong abstraction
that cloaks the details of the computer so that the code is easy to understand for
humans. Python is modular, which means that it supports modules and packages that
allow program flexibility and code reuse. In detail, Python is composed of a “core”
that deals with all basic operations plus a wide ecosystem of specialized packages
to perform specific tasks. To be clear, a Python package or library is a reusable
portion of code, which is a collection of functions and modules (i.e., a group of
functions) allowing the user to complete specialized tasks such as reading an excel
file or drawing a publication-ready diagram.
Python is an interpreted language (like MATLAB, Mathematica, Maple, and R).
Conversely, C or FORTRAN are compiled languages. What is the difference between
compiled and interpreted languages? Roughly speaking, with compiled languages, a
translator compiles each code listing in an executable file. Once compiled, any target
machine can directly run the executable file. Interpreted languages compile code in
real time during each execution. The main difference for a novice programmer is that
interpreted code typically runs slower than compiled executable code. However, per-
formance is not an issue in most everyday operations. Performance starts becoming
significant in computing-intensive tasks such as complex fluid dynamic simulations
or three-dimensional (3D) graphical applications. If needed, the performance of
Python can be significantly improved with the support of specific packages such as
Numba, which can compile Python code. In this case, Python code approaches the
speed of C and FORTRAN.
Being an interpreted language, Python facilitates code exchange over different
platforms (i.e., cross-platform code exchange), fast prototyping, and great flexibility.

1 https://www.python.org.
© The Author(s), under exclusive license to Springer Nature Switzerland AG 2021 3
M. Petrelli, Introduction to Python in Earth Science Data Analysis,
Springer Textbooks in Earth Sciences, Geography and Environment,
https://doi.org/10.1007/978-3-030-78055-5_1
Other documents randomly have
different content
CLARIDGE'S HOTEL, LONDON,
BROOK STREET, GROSVENOR SQUARE, W.

In the centre of fashionable London. The old Royal Hostelry


resuscitated.

The Orchestra plays in the Restaurant during Dinner.

SUITES OF ROOMS OF ALL SIZES.


Over 300 Rooms. Nearly 100 Bathrooms.

General Manager— MR. H. MENGAY.

THE SHIP, GREENWICH.


Telephone 201 Deptford.

HIGH-CLASS DINNERS
and
RARE VINTAGE WINES.

Public and Private Rooms facing the River.

Al-fresco dining in the very hot weather.

Telegrams and Letters, Address BALE.


LERINA
"THE"
LIQUEUR.

LIQUEUR made by the Monks of the


ABBEY OF OUR LADY OF LERINS
On the Island of St. Honorat, CANNES (Alpes Maritimes).
Well known to all Visitors to the Riviera.

ESSENTIALLY DIGESTIVE.

LERINA

"THE"
LIQUEUR.

CAN BE OBTAINED FROM ALL STORES AND WINE MERCHANTS.


Adjoining the Haymarket Theatre and opposite
Her Majesty's Theatre.

EPITAUX'S RESTAURANT,
LATE CAFÉ DE L'EUROPE,
9 & 10 HAYMARKET, S.W.

This famous Restaurant has been reconstructed and appointed in the


most recherché style, and is now open for Luncheons at 2/6, Dinners
à la Carte or at fixed prices, and Suppers at 3/-, after the theatres
(speciality). Also on Sundays, from 6 till 11 p.m. The High-class
Cuisine is under the personal superintendence of the proprietor, and
the well-known cellars of M. Costa, late of the Washington, Oxford
Street, have been carefully removed to this establishment.

Telephone No. 1486 Gerrard.

EPITAUX'S RESTAURANT,
9 & 10 HAYMARKET, S.W.

PAGANI'S RESTAURANT,

44 & 48 GREAT PORTLAND STREET


Haute Cuisine at Moderate Prices.

Telephone—2710 Gerrard. Telegrams—Soufflé, London.

RENOWNED FRENCH & ITALIAN CUISINE.


Luncheons, Dinners and Suppers à la Carte.

Open from 8 a.m. till 12.30 p.m.

The Famous ARTIST ROOM can be


Reserved for Private Parties, etc.

Best Vintage Wines.

M. & G. PAGANI, Proprietors.

THE EQUITABLE

Life Assurance Society


OF THE UNITED STATES.

ASSETS exceed 53¾ MILLIONS STERLING.


SURPLUS over all LIABILITIES exceeds 11¾ MILLIONS STERLING.

Paid to Policyholders during 1898—


Over £4,980,000 Sterling.
Paid to Policyholders in less than 40 years—
Over £62,270,000 Sterling.

The Policies of the Equitable of the United States secure:—


1. A Lucrative Investment.
2. Protection for a Wife.
3. Endowment for Children.
4. Education for Children.
5. Provision for Old Age.
Amounts of Cash Surrenders, Loans, Paid-up Assurance are
written in the EQUITABLE'S Policies and Guaranteed.

Head Office for Great Britain and Ireland:


6 PRINCES STREET, BANK, LONDON.
A. MUNKITTRICK and W. TRIGGS, General Managers.

The Criterion Restaurant,

PICCADILLY, LONDON.

THE EAST ROOM,

Entirely remodelled and charmingly redecorated in Louis XV. style, is


now one of the most elegant Restaurant Salons in the world, and
overlooks Piccadilly. Cuisine Véritablement fine. Déjeuners, Dîners et
Soupers à la Carte, or at fixed prices.

THE WEST ROOM

Has also been remodelled and redecorated in Louis XVI. style, and
can be strongly recommended for its comfort and elegant service.
Academy Luncheon at 2/6. Dîner parisienne at 5/-.

GRAND HALL.

A most excellent dinner is served at the very moderate price of 3/6.

RESTAURANT.
On the ground floor for the service à la Carte, or at fixed popular
prices.

The Magyar Honved Band plays in the Central Minstrels'


Gallery a selection of high-class music during Luncheon,
Dinner, and Supper.

BUFFET AND AMERICAN BAR.

LARGE AND SMALL BANQUETING ROOMS.

THE GRILL ROOM

On the lower ground floor, with two special entrances in Jermyn


Street, can be strongly recommended for its quick service and very
moderate prices.

Attention is called to the New Private Entrance in Jermyn Street,


affording most convenient access to all floors.

Quick travelling Lifts at both Entrances.

The Criterion Restaurant,


PICCADILLY, LONDON.

SPIERS & POND, LTD., Proprietors.

The Flowing Bowl:


A Treatise on Drinks of all Kinds and of all Periods,
interspersed with sundry Anecdotes and Reminiscences

By EDWARD SPENCER
WITH COVER DESIGNED BY PHIL MAY

The Cover-drawing of "The


Flowing Bowl."
Small 4to. Cloth, 5s.
GRANT RICHARDS
9 HENRIETTA STREET, COVENT GARDEN, W.C.

"Most useful companions to the traveller."—Punch.

GRANT ALLEN'S

HISTORICAL GUIDES
Fcap. 8vo (Pocket Size), Limp Cloth, Round Corners,
3s. 6d. net each.

VOLUMES NOW READY.

PARIS.
FLORENCE.
CITIES OF BELGIUM (Bruges, Ghent, Brussels, Antwerp).
VENICE.

VOLUMES IN PREPARATION.

MUNICH
CITIES OF NORTH ITALY (Milan, Verona, Padua, Bologna, Ravenna).
DRESDEN (with Nuremberg, etc.).
ROME, Pagan and Christian
CITIES OF NORTHERN FRANCE (Rouen, Amiens, Blois, Tours,
Orleans).

Some Opinions of the Press.

THE TIMES.—"Such good work in the way of showing students the


right manner of approaching the history of a great city.... The
execution of the little volumes is, on the whole admirable.... These
useful little volumes."
THE GUARDIAN.—"From the point of view of really intelligent sight-
seeing, the two little volumes that have already appeared are better
than anything that we yet have; and if the holiday-maker will only
take them with him to Paris or Florence, he will probably feel that he
has learnt more of the real city than in all his former visits."
THE SPECTATOR.—"A visitor to Florence could hardly, we imagine,
do better than provide himself with this volume. A great amount of
matter—and good matter, too—is compressed into a small space, for
the book is light, and such as can go into a pocket of moderate
capacity. Mr Grant Allen not only guides his reader's judgment, but
disposes of his time for him; he must not only not do much at once,
but must arrange his sight-seeing in an economical and intelligent
way."
GRANT RICHARDS, 9 Henrietta Street, Covent Garden, W.C.

The Pall Mall Magazine.


The Finest Illustrated Magazine of the Day.
Edited by LORD FREDERIC HAMILTON.
The PALL MALL MAGAZINE is published on the 18th of each month.
It numbers among its contributors all the leading writers and artists
of the day.
The exquisite illustrations form a special feature of this beautiful
Magazine.
During the next few months Stories and Article will be written by—
H.G. Wells.
Gilbert Parker.
W.E. Henley.
H.B. Marriott Watson.
E. Nesbit.
Louis Becke.
F.C. Burnand.
Mrs. F.A. Steel.
William Archer.
G.S. Street.
The late Chas. Yriarte.
Edgar Jepson, etc., etc.

Illustrations in Half-tone and in Colour will be supplied by—


L. Raven Hill.
A.S. Hartrick.
G. Denholm Armour.
E.J. Sullivan.
Grenville Manton.
Frank Craig.
S.H. Sime.
Max Cowper.
A.H. Buckland.
H. Granville Fell.
Abbey Altson.
Maurice Greiffenhagen.
Edgar Willson.
Claude Shepperson, etc., etc.

PHOTOGRAVURE FRONTISPIECES.

With each number is included a fine Frontispiece, printed on plate-


paper. During the next few months PHOTOGRAVURES will be
published by Gainsborough, Reynolds, Rembrandt, Burne-Jones, Albert
Moore, etc., etc.
Other features of the Pall Mall Magazine will include papers on the
"Historic Houses of Great Britain"; "Capitals of the Empire"; Articles on
Sport and Travel; and many finely Illustrated Poems. REPRODUCTIONS
of fine Pictures in the National Collections both in England and
Abroad will also be published. These will be reproduced by the
newest and best PROCESSES.

PRICE ONE SHILLING.

Offices: 18 CHARING CROSS ROAD, LONDON, W.C.


The Magazine de Luxe.

The
Pall Mall Magazine.
Illustrated by the best Black-and-White Work of the Day.

Edited by LORD FREDERIC HAMILTON.

In its Pages will shortly appear:—

Stories of the Year 2090. Six Stories. By H.G. Wells,


Author of The Time Machine, etc.

Anglo-Egyptian Tales. Six Stories. By Gilbert


Parker, Author of The Seats of the Mighty, etc.

The American Stage. Three Articles. By F.C. Burnand,


Editor of Punch.

American Architecture—
Chicago. Peter B. Wight.
Boston. Montgomery Schuyler.

Readers are respectfully requested to order the PALL MALL


MAGAZINE to be supplied to them regularly through a Bookseller or
Newsagent, or from a Railway Bookstall, rather than to rely upon a
chance purchase, with the risk of disappointment, recent numbers
having been sold out within a short time of issue.

Offices: 18 Charing Cross Road, London, W.C.,


and Astor Court Building, New York.
*** END OF THE PROJECT GUTENBERG EBOOK DINNERS AND
DINERS: WHERE AND HOW TO DINE IN LONDON ***

Updated editions will replace the previous one—the old editions will
be renamed.

Creating the works from print editions not protected by U.S.


copyright law means that no one owns a United States copyright in
these works, so the Foundation (and you!) can copy and distribute it
in the United States without permission and without paying
copyright royalties. Special rules, set forth in the General Terms of
Use part of this license, apply to copying and distributing Project
Gutenberg™ electronic works to protect the PROJECT GUTENBERG™
concept and trademark. Project Gutenberg is a registered trademark,
and may not be used if you charge for an eBook, except by following
the terms of the trademark license, including paying royalties for use
of the Project Gutenberg trademark. If you do not charge anything
for copies of this eBook, complying with the trademark license is
very easy. You may use this eBook for nearly any purpose such as
creation of derivative works, reports, performances and research.
Project Gutenberg eBooks may be modified and printed and given
away—you may do practically ANYTHING in the United States with
eBooks not protected by U.S. copyright law. Redistribution is subject
to the trademark license, especially commercial redistribution.

START: FULL LICENSE


THE FULL PROJECT GUTENBERG LICENSE
PLEASE READ THIS BEFORE YOU DISTRIBUTE OR USE THIS WORK

To protect the Project Gutenberg™ mission of promoting the free


distribution of electronic works, by using or distributing this work (or
any other work associated in any way with the phrase “Project
Gutenberg”), you agree to comply with all the terms of the Full
Project Gutenberg™ License available with this file or online at
www.gutenberg.org/license.

Section 1. General Terms of Use and


Redistributing Project Gutenberg™
electronic works
1.A. By reading or using any part of this Project Gutenberg™
electronic work, you indicate that you have read, understand, agree
to and accept all the terms of this license and intellectual property
(trademark/copyright) agreement. If you do not agree to abide by all
the terms of this agreement, you must cease using and return or
destroy all copies of Project Gutenberg™ electronic works in your
possession. If you paid a fee for obtaining a copy of or access to a
Project Gutenberg™ electronic work and you do not agree to be
bound by the terms of this agreement, you may obtain a refund
from the person or entity to whom you paid the fee as set forth in
paragraph 1.E.8.

1.B. “Project Gutenberg” is a registered trademark. It may only be


used on or associated in any way with an electronic work by people
who agree to be bound by the terms of this agreement. There are a
few things that you can do with most Project Gutenberg™ electronic
works even without complying with the full terms of this agreement.
See paragraph 1.C below. There are a lot of things you can do with
Project Gutenberg™ electronic works if you follow the terms of this
agreement and help preserve free future access to Project
Gutenberg™ electronic works. See paragraph 1.E below.
1.C. The Project Gutenberg Literary Archive Foundation (“the
Foundation” or PGLAF), owns a compilation copyright in the
collection of Project Gutenberg™ electronic works. Nearly all the
individual works in the collection are in the public domain in the
United States. If an individual work is unprotected by copyright law
in the United States and you are located in the United States, we do
not claim a right to prevent you from copying, distributing,
performing, displaying or creating derivative works based on the
work as long as all references to Project Gutenberg are removed. Of
course, we hope that you will support the Project Gutenberg™
mission of promoting free access to electronic works by freely
sharing Project Gutenberg™ works in compliance with the terms of
this agreement for keeping the Project Gutenberg™ name associated
with the work. You can easily comply with the terms of this
agreement by keeping this work in the same format with its attached
full Project Gutenberg™ License when you share it without charge
with others.

1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside the
United States, check the laws of your country in addition to the
terms of this agreement before downloading, copying, displaying,
performing, distributing or creating derivative works based on this
work or any other Project Gutenberg™ work. The Foundation makes
no representations concerning the copyright status of any work in
any country other than the United States.

1.E. Unless you have removed all references to Project Gutenberg:

1.E.1. The following sentence, with active links to, or other


immediate access to, the full Project Gutenberg™ License must
appear prominently whenever any copy of a Project Gutenberg™
work (any work on which the phrase “Project Gutenberg” appears,
or with which the phrase “Project Gutenberg” is associated) is
accessed, displayed, performed, viewed, copied or distributed:
This eBook is for the use of anyone anywhere in the United
States and most other parts of the world at no cost and with
almost no restrictions whatsoever. You may copy it, give it away
or re-use it under the terms of the Project Gutenberg License
included with this eBook or online at www.gutenberg.org. If you
are not located in the United States, you will have to check the
laws of the country where you are located before using this
eBook.

1.E.2. If an individual Project Gutenberg™ electronic work is derived


from texts not protected by U.S. copyright law (does not contain a
notice indicating that it is posted with permission of the copyright
holder), the work can be copied and distributed to anyone in the
United States without paying any fees or charges. If you are
redistributing or providing access to a work with the phrase “Project
Gutenberg” associated with or appearing on the work, you must
comply either with the requirements of paragraphs 1.E.1 through
1.E.7 or obtain permission for the use of the work and the Project
Gutenberg™ trademark as set forth in paragraphs 1.E.8 or 1.E.9.

1.E.3. If an individual Project Gutenberg™ electronic work is posted


with the permission of the copyright holder, your use and distribution
must comply with both paragraphs 1.E.1 through 1.E.7 and any
additional terms imposed by the copyright holder. Additional terms
will be linked to the Project Gutenberg™ License for all works posted
with the permission of the copyright holder found at the beginning
of this work.

1.E.4. Do not unlink or detach or remove the full Project


Gutenberg™ License terms from this work, or any files containing a
part of this work or any other work associated with Project
Gutenberg™.

1.E.5. Do not copy, display, perform, distribute or redistribute this


electronic work, or any part of this electronic work, without
prominently displaying the sentence set forth in paragraph 1.E.1
with active links or immediate access to the full terms of the Project
Gutenberg™ License.

1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if you
provide access to or distribute copies of a Project Gutenberg™ work
in a format other than “Plain Vanilla ASCII” or other format used in
the official version posted on the official Project Gutenberg™ website
(www.gutenberg.org), you must, at no additional cost, fee or
expense to the user, provide a copy, a means of exporting a copy, or
a means of obtaining a copy upon request, of the work in its original
“Plain Vanilla ASCII” or other form. Any alternate format must
include the full Project Gutenberg™ License as specified in
paragraph 1.E.1.

1.E.7. Do not charge a fee for access to, viewing, displaying,


performing, copying or distributing any Project Gutenberg™ works
unless you comply with paragraph 1.E.8 or 1.E.9.

1.E.8. You may charge a reasonable fee for copies of or providing


access to or distributing Project Gutenberg™ electronic works
provided that:

• You pay a royalty fee of 20% of the gross profits you derive
from the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”

• You provide a full refund of any money paid by a user who


notifies you in writing (or by e-mail) within 30 days of receipt
that s/he does not agree to the terms of the full Project
Gutenberg™ License. You must require such a user to return or
destroy all copies of the works possessed in a physical medium
and discontinue all use of and all access to other copies of
Project Gutenberg™ works.

• You provide, in accordance with paragraph 1.F.3, a full refund of


any money paid for a work or a replacement copy, if a defect in
the electronic work is discovered and reported to you within 90
days of receipt of the work.

• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.

1.E.9. If you wish to charge a fee or distribute a Project Gutenberg™


electronic work or group of works on different terms than are set
forth in this agreement, you must obtain permission in writing from
the Project Gutenberg Literary Archive Foundation, the manager of
the Project Gutenberg™ trademark. Contact the Foundation as set
forth in Section 3 below.

1.F.

1.F.1. Project Gutenberg volunteers and employees expend


considerable effort to identify, do copyright research on, transcribe
and proofread works not protected by U.S. copyright law in creating
the Project Gutenberg™ collection. Despite these efforts, Project
Gutenberg™ electronic works, and the medium on which they may
be stored, may contain “Defects,” such as, but not limited to,
incomplete, inaccurate or corrupt data, transcription errors, a
copyright or other intellectual property infringement, a defective or
damaged disk or other medium, a computer virus, or computer
codes that damage or cannot be read by your equipment.

1.F.2. LIMITED WARRANTY, DISCLAIMER OF DAMAGES - Except for


the “Right of Replacement or Refund” described in paragraph 1.F.3,
the Project Gutenberg Literary Archive Foundation, the owner of the
Project Gutenberg™ trademark, and any other party distributing a
Project Gutenberg™ electronic work under this agreement, disclaim
all liability to you for damages, costs and expenses, including legal
fees. YOU AGREE THAT YOU HAVE NO REMEDIES FOR
NEGLIGENCE, STRICT LIABILITY, BREACH OF WARRANTY OR
BREACH OF CONTRACT EXCEPT THOSE PROVIDED IN PARAGRAPH
1.F.3. YOU AGREE THAT THE FOUNDATION, THE TRADEMARK
OWNER, AND ANY DISTRIBUTOR UNDER THIS AGREEMENT WILL
NOT BE LIABLE TO YOU FOR ACTUAL, DIRECT, INDIRECT,
CONSEQUENTIAL, PUNITIVE OR INCIDENTAL DAMAGES EVEN IF
YOU GIVE NOTICE OF THE POSSIBILITY OF SUCH DAMAGE.

1.F.3. LIMITED RIGHT OF REPLACEMENT OR REFUND - If you


discover a defect in this electronic work within 90 days of receiving
it, you can receive a refund of the money (if any) you paid for it by
sending a written explanation to the person you received the work
from. If you received the work on a physical medium, you must
return the medium with your written explanation. The person or
entity that provided you with the defective work may elect to provide
a replacement copy in lieu of a refund. If you received the work
electronically, the person or entity providing it to you may choose to
give you a second opportunity to receive the work electronically in
lieu of a refund. If the second copy is also defective, you may
demand a refund in writing without further opportunities to fix the
problem.

1.F.4. Except for the limited right of replacement or refund set forth
in paragraph 1.F.3, this work is provided to you ‘AS-IS’, WITH NO
OTHER WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.

1.F.5. Some states do not allow disclaimers of certain implied


warranties or the exclusion or limitation of certain types of damages.
If any disclaimer or limitation set forth in this agreement violates the
law of the state applicable to this agreement, the agreement shall be
interpreted to make the maximum disclaimer or limitation permitted
by the applicable state law. The invalidity or unenforceability of any
provision of this agreement shall not void the remaining provisions.

1.F.6. INDEMNITY - You agree to indemnify and hold the Foundation,


the trademark owner, any agent or employee of the Foundation,
anyone providing copies of Project Gutenberg™ electronic works in
accordance with this agreement, and any volunteers associated with
the production, promotion and distribution of Project Gutenberg™
electronic works, harmless from all liability, costs and expenses,
including legal fees, that arise directly or indirectly from any of the
following which you do or cause to occur: (a) distribution of this or
any Project Gutenberg™ work, (b) alteration, modification, or
additions or deletions to any Project Gutenberg™ work, and (c) any
Defect you cause.

Section 2. Information about the Mission


of Project Gutenberg™
Project Gutenberg™ is synonymous with the free distribution of
electronic works in formats readable by the widest variety of
computers including obsolete, old, middle-aged and new computers.
It exists because of the efforts of hundreds of volunteers and
donations from people in all walks of life.

Volunteers and financial support to provide volunteers with the


assistance they need are critical to reaching Project Gutenberg™’s
goals and ensuring that the Project Gutenberg™ collection will
remain freely available for generations to come. In 2001, the Project
Gutenberg Literary Archive Foundation was created to provide a
secure and permanent future for Project Gutenberg™ and future
generations. To learn more about the Project Gutenberg Literary
Archive Foundation and how your efforts and donations can help,
see Sections 3 and 4 and the Foundation information page at
www.gutenberg.org.

Section 3. Information about the Project


Gutenberg Literary Archive Foundation
The Project Gutenberg Literary Archive Foundation is a non-profit
501(c)(3) educational corporation organized under the laws of the
state of Mississippi and granted tax exempt status by the Internal
Revenue Service. The Foundation’s EIN or federal tax identification
number is 64-6221541. Contributions to the Project Gutenberg
Literary Archive Foundation are tax deductible to the full extent
permitted by U.S. federal laws and your state’s laws.

The Foundation’s business office is located at 809 North 1500 West,


Salt Lake City, UT 84116, (801) 596-1887. Email contact links and up
to date contact information can be found at the Foundation’s website
and official page at www.gutenberg.org/contact

Section 4. Information about Donations to


the Project Gutenberg Literary Archive
Foundation
Project Gutenberg™ depends upon and cannot survive without
widespread public support and donations to carry out its mission of
increasing the number of public domain and licensed works that can
be freely distributed in machine-readable form accessible by the
widest array of equipment including outdated equipment. Many
small donations ($1 to $5,000) are particularly important to
maintaining tax exempt status with the IRS.

The Foundation is committed to complying with the laws regulating


charities and charitable donations in all 50 states of the United
States. Compliance requirements are not uniform and it takes a
considerable effort, much paperwork and many fees to meet and
keep up with these requirements. We do not solicit donations in
locations where we have not received written confirmation of
compliance. To SEND DONATIONS or determine the status of
compliance for any particular state visit www.gutenberg.org/donate.

While we cannot and do not solicit contributions from states where


we have not met the solicitation requirements, we know of no
prohibition against accepting unsolicited donations from donors in
such states who approach us with offers to donate.

International donations are gratefully accepted, but we cannot make


any statements concerning tax treatment of donations received from
outside the United States. U.S. laws alone swamp our small staff.

Please check the Project Gutenberg web pages for current donation
methods and addresses. Donations are accepted in a number of
other ways including checks, online payments and credit card
donations. To donate, please visit: www.gutenberg.org/donate.

Section 5. General Information About


Project Gutenberg™ electronic works
Professor Michael S. Hart was the originator of the Project
Gutenberg™ concept of a library of electronic works that could be
freely shared with anyone. For forty years, he produced and
distributed Project Gutenberg™ eBooks with only a loose network of
volunteer support.
Project Gutenberg™ eBooks are often created from several printed
editions, all of which are confirmed as not protected by copyright in
the U.S. unless a copyright notice is included. Thus, we do not
necessarily keep eBooks in compliance with any particular paper
edition.

Most people start at our website which has the main PG search
facility: www.gutenberg.org.

This website includes information about Project Gutenberg™,


including how to make donations to the Project Gutenberg Literary
Archive Foundation, how to help produce our new eBooks, and how
to subscribe to our email newsletter to hear about new eBooks.

You might also like