Google Colab

Google Colab Open Access Trial

Run the Gamma Earth S2DR3 or S2DR4 open access trial in Google Colab.

Use the Google Colab open access trial to run a Gamma Earth S2DR3 or S2DR4 demo without setting up a local machine.

Available Notebooks

NotebookPurpose
S2DR3 Colab trialRun the S2DR3 demo workflow.
S2DR4 Colab trialRun the S2DR4 demo workflow.

Before You Start

  • Select a T4 GPU instance from Colab's runtime settings.
  • Optionally link Google Drive if you want output files stored there.
  • Use coordinates in (longitude, latitude) order.
  • Check Sentinel-2 scene availability before choosing a date.

Archive images are available from January 1, 2018 onward.

What the Trial Runs

The trial helper processes a 4x4 km bounding box around the target location. It selects the Sentinel-2 catalogue date closest to your requested date. The selected image may be occluded by clouds, so check scene availability before running the notebook.

S2DR3 Example

import s2dr3.inferutils

lonlat = (-83.74, 43.44)
date = "2025-07-20"

s2dr3.inferutils.test(lonlat, date)

S2DR4 Example

import s2dr4.inferutils

lonlat = (121.9058, 17.2165)
date = "2022-03-18"

s2dr4.inferutils.test(lonlat=lonlat, date=date)

Outputs

The notebook writes generated products to:

/content/output

The output products include:

ProductDescription
MS10-band multispectral image.
TCITrue color RGB image.
NDVIPseudo-color NDVI image.
IRPInfrared pseudo-color image.

The multispectral band order is B02, B03, B04, B05, B06, B07, B08, B8A, B11, and B12.

Downloading Outputs

One Colab example shows converting a Google Cloud Storage path to an HTTPS URL:

save_url_MS = save_path_MS.replace("gs://", "https://storage.googleapis.com/")

The examples also show direct downloads of TCI and IRP products with wget. Use generated output paths from your own run rather than copying example paths.

Trial License

The Colab sources say the software is provided for testing, performance evaluation, and validation. For extended functionality, commercial use, or other enquiries, contact Gamma Earth.

Related