Skip to main content

Preface

Cover of the textbook Google Earth Engine, built for GEOG 567, by David Parr. A smiling green dragon in a starry wizard hat and tool belt waves a wand at a glowing globe, surrounded by a swirl of satellite image tiles, orbiting satellites, and computer screens showing maps and charts.

This book is an open educational resource textbook designed for my course, GEOG 567, Geospatial Data Analysis with Google Earth Engine, built from the course lectures.

You can also download the whole book as a PDF: Google Earth Engine (PDF). The PDF leaves out the interactive parts, such as self-check questions and quizzes, and is updated whenever the online book is.

About this book

This is an interactive textbook written for GEOG 567, a course in geospatial data analysis with Google Earth Engine. It’s designed for students who have taken an introductory GIS course (GEOG 370 at UNC) and are ready to move from point-and-click GIS to writing code that runs in the cloud. Chapters explain the remote sensing and geospatial ideas behind each analysis and show how to carry it out in the Earth Engine Code Editor. The book is a companion to the course’s other text, the open access Cloud-Based Remote Sensing with Google Earth Engine (Cardille et al. 2023).

How to use this book

Read the book in order if you can. Each chapter builds on the ones before it, and later chapters assume you have met the ideas and terms introduced earlier. Each unit opens with a short page that says what its chapters cover, so you can see where you are going before you start.

What’s in each chapter

Most chapters follow the same pattern, so you know where to look:

  • Learning objectives at the top list what you should be able to do by the end of the chapter. They are a good checklist when you review for an exam.
  • Numbered sections teach the material, with maps, figures, and tables. Cross-references such as “Section 1.2” or “Figure 2.1” are links you can follow.
  • Think about it boxes pose a question to stop and consider before reading on. There is no grade attached: they are there to help the idea stick.
  • Did you know..? boxes and Trivia time questions add a fact or a quick puzzle that connects the idea to the world around you.
  • Check your understanding questions near the end let you test yourself. You can answer them as many times as you like, and they are not graded.
  • A Summary recaps the chapter’s main points, Exercises give you practice, and Further reading and online resources points you to books, websites, data, and tutorials that go deeper.

Google Earth Engine

This book uses Google Earth Engine, Google’s cloud platform for planetary-scale geospatial analysis (Gorelick et al. 2017). You write JavaScript in the Earth Engine Code Editor, a web page that runs best in Google Chrome, and Google’s servers do the work. You will need a Google account registered for Earth Engine (it is free for noncommercial and academic use). No prior programming experience is assumed.

Code you would type into the Code Editor, and names of objects, functions, and data sets such as ee.ImageCollection or LANDSAT/LC09/C02/T1_L2, are printed in a monospaced font.

Key terms and the glossary

Important terms are printed in bold where they are first explained.

In the chapters, a key term has a dotted underline the first time it appears in a section. Hover over it, tap it, or reach it with the Tab key to see a short definition. All of the terms and their definitions are collected in the Glossary at the end of the book.

The books, articles, and documentation the chapters cite are listed together on the References page at the end of the book.

Finding your way around

The sidebar on the left lists every unit and chapter, and the outline on the right lists the sections of the page you are reading. Use the search box at the top to find any word in the book. The Aa button beside the search box changes the font and text size (see Fonts and reading settings).

Quizzes

The chapter quizzes and unit quizzes are practice. Take one after you finish a chapter or a unit, and take it again later to see what has stuck.

Asking questions

If something in a chapter doesn’t make sense, highlight the text and choose Ask a question. Your question goes to the course staff, and you can see your questions and their answers under My questions. You can also add this site to your phone’s home screen (see the Welcome page), so pages you’ve already read work without internet.

How this book is organized

The chapters are grouped into units, one for each unit of the course. Each unit opens with a page that summarizes its chapters.

Unit 1: Earth Engine Basics (Chapter 1) introduces the Code Editor, JavaScript, and Earth Engine’s core objects: images, image collections, features, and feature collections.

Unit 2: Image Processing (Chapter 2) covers spectral bands and indices, cloud masking, composites, and reducing images over regions and through time.

Unit 3: Supervised Classification (Chapter 3) uses machine learning to map land cover from training data, and measures how accurate the map is.

Unit 4: Change Detection (Chapter 4) uses decades of imagery to find where and when places change.

Unit 5: Earth Engine Applications (Chapter 5) brings vector data and imagery together on real problems and shares the results as interactive Earth Engine apps.

Each chapter is followed by a chapter quiz you can take as many times as you like.

More chapters are being written now and will appear here as they are added.

Fonts and reading settings

The online version of this book sets its text in Atkinson Hyperlegible Next, and code in Atkinson Hyperlegible Mono. Both were designed by the Braille Institute of America for readers with low vision, and both are free to use. Many common letters and numbers look alike in ordinary fonts: a capital I, a lowercase l, and the number 1, or a capital O and a zero. Atkinson Hyperlegible gives each of these characters its own distinct shape, so they are hard to mistake for one another. That matters in a book full of code, coordinates, and data set names, where one misread character breaks a script or points it at a data set that doesn’t exist. The zero in the monospaced font has a slash through it, so you can always tell 0 from O.

A font that is easy for one reader can be hard for another, so you can change it. Press the Aa button beside the search box at the top of any page to choose a font and a text size. The fonts are:

  • Atkinson Hyperlegible (the default), described above.
  • Lexend, a font designed to reduce visual stress and make reading easier and faster.
  • Cardo, a traditional book serif.
  • Standard sans-serif and Serif, which use the fonts already on your device.
  • OpenDyslexic, which gives each letter a heavier bottom so letters are harder to flip or rotate. Some readers with dyslexia find it easier to read.

Text size goes from one step smaller than normal to three steps larger. Your choices are saved in your web browser, so the book keeps your settings from page to page and the next time you visit. Monospaced text keeps Atkinson Hyperlegible Mono whichever font you choose, so it always lines up.

Acknowledgments

I’d like to acknowledge the hard work of my students, without whom this would not be possible.