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:
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.
- Open the Earth Engine Code Editor here: code.earthengine.google.com. If you have not already, you will need to enable access by logging in using a registered Google account.
- 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.
- 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
Once you are in code editor, follow these steps:
- 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.
- 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.
- To delete a repository, click the delete icon.
- 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.
- 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).
- Click on the settings icon next to the repository name for instructions on cloning the repository.