Lab 1 - Getting Started with GEE - Hello World

Objective: Get setup with GEE and learn how to submit future labs.

Introduction

In this course, we will use Earth Engine, and you will need to develop skills in both remote sensing and programming. The language of this course is JavaScript.

Lab Instructions

  1. Step 1 - Sign up for an Earth Engine account

    Go to https://earthengine.google.com/

    You can visit the website and get familiar with the information Google presents about Earth Engine.

    Click the Sign-Up page and fill out the form: https://signup.earthengine.google.com/

    Normally signup is very quick after request.

  2. Step 2 - Access the Earth Engine Code Editor

    Once your account is opened and approved by Google, go to https://code.earthengine.google.com/

    The Code Editor is an integrated Earth Engine JavaScript API development environment. It offers an easy way to type, debug, run, and manage code.

    Screenshot of the GEE Code Editor interface
    The Google Earth Engine Code Editor Interface
  3. Part 3 - Coding

    When first learning a new language and getting used to a new programming environment, it is customary to make a program to display the words "Hello World." This is a fun way to start coding that shows you how to give input to the program and how to execute it. It also shows where the program displays the output. Doing this in JavaScript is quite simple.

    Type the following code into line one of your script:

    print('Hello World');

    The line of code above uses the JavaScript print function to print the text "Hello World" to the screen. Once you enter the code, click the Run button. The output will be displayed on the upper right-hand panel under the Console tab.

    Screenshot showing the Hello World console result
    Hello World output in the Console
  4. Part 4 - Save your Code

    You just wrote your first Earth Engine script and may want to save it. Click the Save button.

    Save Button location in the Code Editor
    The Save button in the Code Editor

    If this is your first time using the Code Editor, you will be prompted to create a home folder. This is a folder in the cloud where all your code will be saved. You can pick a name of your choice, but remember that it cannot be changed and will forever be associated with your account. A good choice for the name would be your Google Account username.

    Once your home folder is created, you will be prompted to enter a new repository. A repository can help you organize and share code. Your account can have multiple repositories and each repository can have multiple scripts inside it. To get started, you can create a repository named "default".

    Finally, you can save your script inside the newly created repository. Enter the name "hello_world" and click OK.

    Save script dialog
    Saving your first script

    Once the script is saved, it will appear in the script manager panel. The scripts are saved in the cloud and will always be available to you when you open the Code Editor.

  5. Part 5 - Share your Code

    Click on the Get link button. This will generate a URL for your code.

    Get link button location
    The Get Link button allows you to share your code

📧 Lab Submission

Submit the URL of your GEE script via email.

Submit lab via email.

Subject: Lab 1 - Getting Started - [Your Name]

Include in your email:

  • The shareable link to your "Hello World" script in Google Earth Engine
  • A screenshot of your Console output showing "Hello World"
  • Any questions or challenges you encountered

Next Steps

Congratulations on completing your first Earth Engine lab! In the next lab, we'll explore how to load and visualize Landsat satellite imagery.

Continue to Lab 2 →