Skip to content

Commit

Permalink
Remove execution output
Browse files Browse the repository at this point in the history
  • Loading branch information
AMA-AC committed May 25, 2022
1 parent 441b83f commit bde7e72
Showing 1 changed file with 24 additions and 65 deletions.
89 changes: 24 additions & 65 deletions notebooks/02.06.Colab_Vegetation_Change_L8.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"nbformat_minor": 0,
"metadata": {
"colab": {
"name": "02_06_Colab_Vegetation_Change_L8-AC22.ipynb",
"name": "02.06.Colab_Vegetation_Change_L8.ipynb",
"provenance": [],
"collapsed_sections": []
},
Expand Down Expand Up @@ -47,28 +47,15 @@
{
"cell_type": "code",
"metadata": {
"id": "SEQWQPfl8B_t",
"colab": {
"base_uri": "https://localhost:8080/"
},
"outputId": "f40517e4-1857-4694-af62-bacc4b7f2608"
"id": "SEQWQPfl8B_t"
},
"source": [
"!wget -nc https://raw.githubusercontent.com/ceos-seo/odc-colab/master/odc_colab.py\n",
"from odc_colab import odc_colab_init\n",
"odc_colab_init(install_odc_gee=True)"
],
"execution_count": 1,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"File ‘odc_colab.py’ already there; not retrieving.\n",
"\n"
]
}
]
"execution_count": null,
"outputs": []
},
{
"cell_type": "markdown",
Expand All @@ -82,27 +69,14 @@
{
"cell_type": "code",
"metadata": {
"id": "PbNfSeSL8B_u",
"colab": {
"base_uri": "https://localhost:8080/"
},
"outputId": "1b17f1ff-1950-48d4-a3fc-619750d63f89"
"id": "PbNfSeSL8B_u"
},
"source": [
"from odc_colab import populate_db\n",
"populate_db()"
],
"execution_count": 2,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"No database file supplied. Downloading default index.\n",
"Lockfile exists, skipping population.\n"
]
}
]
"execution_count": null,
"outputs": []
},
{
"cell_type": "markdown",
Expand All @@ -123,11 +97,7 @@
{
"cell_type": "code",
"metadata": {
"id": "nj9TOAu48B_v",
"colab": {
"base_uri": "https://localhost:8080/"
},
"outputId": "268878fb-824a-4986-e79f-7f5c216e46c3"
"id": "nj9TOAu48B_v"
},
"source": [
"# Suppress Warning Messages\n",
Expand All @@ -147,19 +117,8 @@
"import numpy as np\n",
"import matplotlib.pyplot as plt"
],
"execution_count": 3,
"outputs": [
{
"output_type": "stream",
"name": "stderr",
"text": [
"/usr/local/lib/python3.7/dist-packages/datacube/drivers/postgres/_connections.py:84: SADeprecationWarning: Calling URL() directly is deprecated and will be disabled in a future release. The public constructor for URL is now the URL.create() method.\n",
" username=username, password=password,\n",
"/usr/local/lib/python3.7/dist-packages/datacube/drivers/postgres/_connections.py:84: SADeprecationWarning: Calling URL() directly is deprecated and will be disabled in a future release. The public constructor for URL is now the URL.create() method.\n",
" username=username, password=password,\n"
]
}
]
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
Expand All @@ -173,7 +132,7 @@
"product = \"ls8_c2_google\"\n",
"platform = \"LANDSAT_8\""
],
"execution_count": 4,
"execution_count": null,
"outputs": []
},
{
Expand Down Expand Up @@ -204,7 +163,7 @@
"latitude = (lat_long[0]-box_size_deg/2, lat_long[0]+box_size_deg/2)\n",
"longitude = (lat_long[1]-box_size_deg/2, lat_long[1]+box_size_deg/2)"
],
"execution_count": 5,
"execution_count": null,
"outputs": []
},
{
Expand All @@ -222,7 +181,7 @@
"from utils.data_cube_utilities.dc_display_map import display_map\n",
"display_map(latitude = latitude, longitude = longitude)"
],
"execution_count": 6,
"execution_count": null,
"outputs": [
{
"output_type": "execute_result",
Expand Down Expand Up @@ -398,7 +357,7 @@
"#analysis_time_period = ('2020-01-01', '2020-12-31')\n",
"analysis_time_period = ('2021-05-01', '2022-05-01')"
],
"execution_count": 7,
"execution_count": null,
"outputs": []
},
{
Expand All @@ -420,7 +379,7 @@
"metadata": {
"id": "cRDZih4pOQ-m"
},
"execution_count": 8,
"execution_count": null,
"outputs": []
},
{
Expand All @@ -442,7 +401,7 @@
" measurements = ['red', 'green', 'blue', 'nir', 'pixel_qa'],\n",
" time=baseline_time_period)"
],
"execution_count": 9,
"execution_count": null,
"outputs": []
},
{
Expand All @@ -455,7 +414,7 @@
" measurements = ['red', 'green', 'blue', 'nir', 'pixel_qa'],\n",
" time=analysis_time_period)"
],
"execution_count": 10,
"execution_count": null,
"outputs": []
},
{
Expand All @@ -468,7 +427,7 @@
"metadata": {
"id": "yFgmLF9wOtWh"
},
"execution_count": 11,
"execution_count": null,
"outputs": []
},
{
Expand All @@ -485,7 +444,7 @@
"cloud_mask_analysis = landsat_qa_clean_mask(analysis_ds, platform=platform, collection='c2')\n",
"analysis_ds = analysis_ds.where(cloud_mask_analysis)"
],
"execution_count": 12,
"execution_count": null,
"outputs": []
},
{
Expand All @@ -507,7 +466,7 @@
"baseline_composite = create_median_mosaic(baseline_ds, cloud_mask_baseline)\n",
"analysis_composite = create_median_mosaic(analysis_ds, cloud_mask_analysis)"
],
"execution_count": 13,
"execution_count": null,
"outputs": []
},
{
Expand All @@ -528,7 +487,7 @@
"def NDVI(dataset):\n",
" return (dataset.nir - dataset.red)/(dataset.nir + dataset.red)"
],
"execution_count": 14,
"execution_count": null,
"outputs": []
},
{
Expand All @@ -541,7 +500,7 @@
"parameter_analysis_composite = NDVI(analysis_composite)\n",
"NDVI_change = parameter_analysis_composite - parameter_baseline_composite"
],
"execution_count": 15,
"execution_count": null,
"outputs": []
},
{
Expand All @@ -568,7 +527,7 @@
"from matplotlib.cm import RdYlGn, Greens, Reds\n",
"RdYlGn.set_bad('black',1.)"
],
"execution_count": 16,
"execution_count": null,
"outputs": []
},
{
Expand Down Expand Up @@ -635,7 +594,7 @@
"plt.tight_layout()\n",
"plt.show()"
],
"execution_count": 17,
"execution_count": null,
"outputs": [
{
"output_type": "display_data",
Expand Down

0 comments on commit bde7e72

Please sign in to comment.