Created
September 8, 2021 23:06
-
-
Save tylere/99e4fce2956e148fd6edf523626a6024 to your computer and use it in GitHub Desktop.
print list example.ipynb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "nbformat": 4, | |
| "nbformat_minor": 0, | |
| "metadata": { | |
| "colab": { | |
| "name": "print list example.ipynb", | |
| "provenance": [], | |
| "authorship_tag": "ABX9TyPw7VElIe1sMY9i64hbdTGW", | |
| "include_colab_link": true | |
| }, | |
| "kernelspec": { | |
| "name": "python3", | |
| "display_name": "Python 3" | |
| }, | |
| "language_info": { | |
| "name": "python" | |
| } | |
| }, | |
| "cells": [ | |
| { | |
| "cell_type": "markdown", | |
| "metadata": { | |
| "id": "view-in-github", | |
| "colab_type": "text" | |
| }, | |
| "source": [ | |
| "<a href=\"https://colab.research.google.com/gist/tylere/99e4fce2956e148fd6edf523626a6024/print-list-example.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "metadata": { | |
| "colab": { | |
| "base_uri": "https://localhost:8080/" | |
| }, | |
| "id": "DXBS_W3opMDL", | |
| "outputId": "cfb80c4f-0ac5-4e24-d550-ad765a65e412" | |
| }, | |
| "source": [ | |
| "import ee\n", | |
| "ee.Authenticate()\n", | |
| "ee.Initialize()" | |
| ], | |
| "execution_count": 1, | |
| "outputs": [ | |
| { | |
| "output_type": "stream", | |
| "name": "stdout", | |
| "text": [ | |
| "To authorize access needed by Earth Engine, open the following URL in a web browser and follow the instructions. If the web browser does not start automatically, please manually browse the URL below.\n", | |
| "\n", | |
| " https://accounts.google.com/o/oauth2/auth?client_id=517222506229-vsmmajv00ul0bs7p89v5m89qs8eb9359.apps.googleusercontent.com&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fearthengine+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdevstorage.full_control&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&code_challenge=4wzyzonKG4FRIy7YwbM6TbvLcx8S6k_XZ_wmLr4KlzQ&code_challenge_method=S256\n", | |
| "\n", | |
| "The authorization workflow will generate a code, which you should paste in the box below. \n", | |
| "Enter verification code: 4/1AX4XfWgaQN3RCLvuDnt5-e2y5DU8pAL8uUbd1YczAJyaKJVb-AvbDc69qCI\n", | |
| "\n", | |
| "Successfully saved authorization token.\n" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "metadata": { | |
| "id": "3KhMDMKUpSH0" | |
| }, | |
| "source": [ | |
| "list1 = ee.List([ee.Number(1),ee.Number(2), ee.Number(9)])" | |
| ], | |
| "execution_count": 2, | |
| "outputs": [] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "metadata": { | |
| "colab": { | |
| "base_uri": "https://localhost:8080/" | |
| }, | |
| "id": "KIT-njx-qBQX", | |
| "outputId": "61f5c46b-3925-46d9-9abe-7e6083866e8c" | |
| }, | |
| "source": [ | |
| "print(list1.getInfo())" | |
| ], | |
| "execution_count": 3, | |
| "outputs": [ | |
| { | |
| "output_type": "stream", | |
| "name": "stdout", | |
| "text": [ | |
| "[1, 2, 9]\n" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "metadata": { | |
| "id": "xmLXTeOKqGf-" | |
| }, | |
| "source": [ | |
| "" | |
| ], | |
| "execution_count": null, | |
| "outputs": [] | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment