Getting Started with Google Earth Engine.

First thing first, you need to have a Google Earth Engine account. In order to sign up, go to the GEE Website. Once you are signed up, it might require few hours to days to get your account activated. Once your account is activated, you have the access to Code Editor, where you can write code and do all these cool stuffs. A code editor is the place where you write all the codes:

Code Editor

Opening and running code in the Code Editor

The steps below demonstrate how to open Earth Engine and execute a custom script that displays an image. For best results, you may want to install the latest version of Chrome, Google’s web browser, available here.

  1. Open the Earth Engine Code Editor here: If you have not already, you will need to enable access by logging in using a registered Google account.
  2. Navigate to the Scripts tab located on the far left of the Code Editor. There you will find a collection of example scripts that access, display, and analyze Earth Engine data.
  3. Under “Image Collection,” select the “Filtered Composite” example. You will see a script appear in the center console. Press the Run button to execute the script. The Filtered Composite example selects Landsat 7 images that intersect or are within the boundaries of Colorado and Utah. It then displays a true color composite of the selected images. The samples introduce you to commonly used methods, such as filter()clip(), and Map.addLayer().
Diagram of components of the Earth Engine Code Editor at . Picture obtained from GEE Website.

Once you are in code editor, follow these steps:

  1. Click the  button to create a new repository in the Owner folder or to create folders and files within a repository.
    • You can rename scripts with the edit icon and delete them with the delete icon.
    • You can move scripts and organize them into folders using drag and drop.
    • If you drag a script to another repository, it gets copied.
  2. All scripts and repositories maintain full version history. Click on the history icon next to a script or repository to compare or revert it to an older version.
  3. To delete a repository, click the delete icon.
  4. To configure access to a repository, click the settings icon next to the repository name.
    • Note that if you share a repository, the person with whom you’re sharing will need to accept the repository by clicking the link shown in the settings dialog.
    • Previously accepted repositories can be hidden by clicking the block icon following the repo name in the Scripts manager.
  5. Repositories can be accessed using Git, so you can manage and edit your scripts outside the Code Editor, or sync them with an external system like GitHub. (Learn more about Git from this tutorial).
  6. Click on the settings icon next to the repository name for instructions on cloning the repository.
    • Note that you can browse the repositories to which you have access by going to
    • For some Git operations, you may need to create authentication credentials by going to the Generate Password link at the top of the page.

2 thoughts on “Getting Started with Google Earth Engine.”

  1. hi can you help me out .

    i am unable to clip the imagery according to my ROI.
    heres the code

    var dataset = ee.ImageCollection(‘ASTER/AST_L1T_003’)
    .filter(‘2018-04-01’, ‘2020-05-15’));
    var falseColor =[‘B3N’, ‘B02’, ‘B01’]);
    var falseColorVis = {
    min: 0.0,
    max: 255.0,
    var geometry = ee.Geometry.Polygon([[74.15000000,25.05000000], [74.21666667,25.11666667], [74.25000000,25.11666667], [74.25,25.05000000], [74.30000000,25.05000000],[74.30000000,25.11666667],[74.39166667,25.25000000],[74.15000000,25.25000000]]);
    //Map.setCenter(geometry, 11);
    Map.addLayer(falseColor.median(), falseColorVis, ‘False Color’);
    var FS2021 = geometry;



    1. Hi,

      from the error (Cannot read property ‘clip’ of undefined) you can see, that the problem is that you use ee.image.clip not the right way.

      You have to use ee.Image.clip method within the object. Your object is falseColor.median(). It is of ee.Image class, co you can use ee.Image.clip method on it. So -> falseColor.median().clip(geometry).

      After you define the geometry variable, type just this:

      Map.addLayer(falseColor.median().clip(geometry), falseColorVis, ‘False Color’);

      or you can check it here –

      Have a nice day 🙂

Leave a Reply

%d bloggers like this: