diff --git a/country_summaries/IPCC_classes_DPS/Boreal/boreal_biomass_in_IPCC.ipynb b/country_summaries/IPCC_classes_DPS/Boreal/boreal_biomass_in_IPCC.ipynb index 4b46b6eb499938fb49ea15f5792e5482874d4b3a..29a4549cc77a66bb09c58bd55e80b3349e5f8004 100644 --- a/country_summaries/IPCC_classes_DPS/Boreal/boreal_biomass_in_IPCC.ipynb +++ b/country_summaries/IPCC_classes_DPS/Boreal/boreal_biomass_in_IPCC.ipynb @@ -5,6 +5,10 @@ "execution_count": 2, "id": "142b1675-bca8-4bb8-b62a-30e6abef26c9", "metadata": { + "collapsed": true, + "jupyter": { + "outputs_hidden": true + }, "tags": [] }, "outputs": [ @@ -435,7 +439,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 7, "id": "a91aad0d-86d8-421f-80a7-5951d3f5b239", "metadata": { "tags": [] diff --git a/country_summaries/IPCC_classes_DPS/IPCC_GEDI_Table4.7.ipynb b/country_summaries/IPCC_classes_DPS/IPCC_GEDI_Table4.7.ipynb index 16f54becbf7e784da19baea9286415604750bff7..a32162a93a04a8cc6ae0b501babefeda8069d710 100644 --- a/country_summaries/IPCC_classes_DPS/IPCC_GEDI_Table4.7.ipynb +++ b/country_summaries/IPCC_classes_DPS/IPCC_GEDI_Table4.7.ipynb @@ -351,7 +351,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 8, "id": "82dba01f-ac52-4ded-a0ae-bbd06d12f241", "metadata": { "tags": [] @@ -360,10 +360,10 @@ { "data": { "text/plain": [ - "'{\"code\": 200, \"message\": {\"id\": \"3d66c817c7beef75efdb509e0b0d5df3ca027693\", \"short_id\": \"3d66c817\", \"created_at\": \"2023-12-07T05:37:03.000+00:00\", \"parent_ids\": [\"86803e6ece77a1aeb60537c885bdd0dca2d60e9f\"], \"title\": \"Registering algorithm: run_IPCC_classes_ADE\", \"message\": \"Registering algorithm: run_IPCC_classes_ADE\", \"author_name\": \"root\", \"author_email\": \"root@e49d5cea4b76\", \"authored_date\": \"2023-12-07T05:37:03.000+00:00\", \"committer_name\": \"root\", \"committer_email\": \"root@e49d5cea4b76\", \"committed_date\": \"2023-12-07T05:37:03.000+00:00\", \"trailers\": {}, \"web_url\": \"https://repo.maap-project.org/root/register-job-hysds-v4/-/commit/3d66c817c7beef75efdb509e0b0d5df3ca027693\", \"stats\": {\"additions\": 0, \"deletions\": 0, \"total\": 0}, \"status\": \"pending\", \"project_id\": 3, \"last_pipeline\": {\"id\": 10354, \"iid\": 621, \"project_id\": 3, \"sha\": \"3d66c817c7beef75efdb509e0b0d5df3ca027693\", \"ref\": \"main\", \"status\": \"pending\", \"source\": \"push\", \"created_at\": \"2023-12-07T05:37:05.149Z\", \"updated_at\": \"2023-12-07T05:37:05.679Z\", \"web_url\": \"https://repo.maap-project.org/root/register-job-hysds-v4/-/pipelines/10354\"}, \"job_web_url\": \"https://repo.maap-project.org/root/register-job-hysds-v4/-/jobs/10606\", \"job_log_url\": \"https://repo.maap-project.org/root/register-job-hysds-v4/-/jobs/10606/raw\"}}\\n'" + "'{\"code\": 200, \"message\": {\"id\": \"d0b94d6f444a26386aa6f156e82470fa7f87f520\", \"short_id\": \"d0b94d6f\", \"created_at\": \"2023-12-07T06:00:08.000+00:00\", \"parent_ids\": [\"3d66c817c7beef75efdb509e0b0d5df3ca027693\"], \"title\": \"Registering algorithm: run_IPCC_classes_ADE\", \"message\": \"Registering algorithm: run_IPCC_classes_ADE\", \"author_name\": \"root\", \"author_email\": \"root@e49d5cea4b76\", \"authored_date\": \"2023-12-07T06:00:08.000+00:00\", \"committer_name\": \"root\", \"committer_email\": \"root@e49d5cea4b76\", \"committed_date\": \"2023-12-07T06:00:08.000+00:00\", \"trailers\": {}, \"web_url\": \"https://repo.maap-project.org/root/register-job-hysds-v4/-/commit/d0b94d6f444a26386aa6f156e82470fa7f87f520\", \"stats\": {\"additions\": 0, \"deletions\": 0, \"total\": 0}, \"status\": \"pending\", \"project_id\": 3, \"last_pipeline\": {\"id\": 10355, \"iid\": 622, \"project_id\": 3, \"sha\": \"d0b94d6f444a26386aa6f156e82470fa7f87f520\", \"ref\": \"main\", \"status\": \"pending\", \"source\": \"push\", \"created_at\": \"2023-12-07T06:00:09.665Z\", \"updated_at\": \"2023-12-07T06:00:10.127Z\", \"web_url\": \"https://repo.maap-project.org/root/register-job-hysds-v4/-/pipelines/10355\"}, \"job_web_url\": \"https://repo.maap-project.org/root/register-job-hysds-v4/-/jobs/10607\", \"job_log_url\": \"https://repo.maap-project.org/root/register-job-hysds-v4/-/jobs/10607/raw\"}}\\n'" ] }, - "execution_count": 6, + "execution_count": 8, "metadata": {}, "output_type": "execute_result" } @@ -383,7 +383,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 11, "id": "f108f96f-3601-4d23-a159-108287110eb2", "metadata": { "tags": [] @@ -394,7 +394,7 @@ "output_type": "stream", "text": [ "submitting 00N_000E\n", - "020b04e1-d333-4207-8955-df0b05c94091\n" + "349b68ff-805d-4e53-8b56-e1b09ab2ac79\n" ] } ], @@ -419,7 +419,7 @@ " algo_id=\"run_IPCC_classes_ADE\",\n", " version=\"IPCC_classes_ADE_v7\",\n", " username=\"nehajo88\",\n", - " queue=\"maap-dps-worker-16gb\",#\"maap-dps-worker-32gb\",\n", + " queue=\"maap-dps-worker-32vcpu-64gb\",#\"maap-dps-worker-32gb\",maap-dps-worker-32vcpu-64gb\n", " FOREST_HEIGHT_2000=\"https://glad.umd.edu/users/Potapov/GLCLUC2020/Forest_height_2000/2000_\" + TILE + \".tif\",\n", " FOREST_HEIGHT_2020=\"https://glad.umd.edu/users/Potapov/GLCLUC2020/Forest_height_2020/2020_\" + TILE + \".tif\",\n", " FOREST_LOSS=\"https://glad.umd.edu/users/Potapov/GLCLUC2020/Forest_height_loss_2000_2020/netloss_\" + TILE + \".tif\",\n", diff --git a/country_summaries/IPCC_classes_DPS/IPCC_GEDI_Table4.7.py b/country_summaries/IPCC_classes_DPS/IPCC_GEDI_Table4.7.py index 35e80c672fbc2c57f4b773036958afd5c04f7dd7..8595f41db3f01051a08cb9cc70cb239ad3314f57 100644 --- a/country_summaries/IPCC_classes_DPS/IPCC_GEDI_Table4.7.py +++ b/country_summaries/IPCC_classes_DPS/IPCC_GEDI_Table4.7.py @@ -238,7 +238,8 @@ def generate_output(): mem, args.output_file, dst_profile, - in_memory=False + in_memory=True, + allow_intermediate_compression=True ) with MemoryFile() as memfile1: @@ -250,7 +251,8 @@ def generate_output(): mem1, args.output_mask, dst_profile, - in_memory=False + in_memory=True, + allow_intermediate_compression=True ) if __name__ == "__main__": diff --git a/country_summaries/IPCC_classes_DPS/NOTES.ipynb b/country_summaries/IPCC_classes_DPS/NOTES.ipynb index f6e3dbe58837712bbb2c201fceabf0ca85dd59c1..9c1f8f2eb2f37d0c053880e432d815dbd373c28f 100644 --- a/country_summaries/IPCC_classes_DPS/NOTES.ipynb +++ b/country_summaries/IPCC_classes_DPS/NOTES.ipynb @@ -18,7 +18,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 2, "id": "925dfbb2-d2a6-4503-8603-70f30acde654", "metadata": { "tags": [] @@ -241,6 +241,10 @@ "execution_count": null, "id": "553757c5-f7d8-4946-8563-56b23e0cc5d0", "metadata": { + "collapsed": true, + "jupyter": { + "outputs_hidden": true + }, "tags": [] }, "outputs": [ @@ -567,6 +571,366 @@ "metadata": {}, "output_type": "display_data" }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/plain": [ + "NULL" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, { "data": { "text/plain": [ @@ -586,7 +950,6 @@ "gdalUtils::gdalwarp('/projects/my-public-bucket/Data/Harris_et_al_PAPER/JRC_TFM/JRC_TMST_00N_040W.tif','/projects/my-public-bucket/Data/Harris_et_al_PAPER/JRC_TFM/00N_040W_JRC_Transition_Map.tif',tr=c(0.00025,0.00025),a_nodata=0.0,te=c(-40,-10,-30,0),r=\"near\",co=c(\"COMPRESS=DEFLATE\",\"PREDICTOR=2\",\"ZLEVEL=9\"))\n", "gdalUtils::gdalwarp('/projects/my-public-bucket/Data/Harris_et_al_PAPER/JRC_TFM/JRC_TMST_00N_050W.tif','/projects/my-public-bucket/Data/Harris_et_al_PAPER/JRC_TFM/00N_050W_JRC_Transition_Map.tif',tr=c(0.00025,0.00025),a_nodata=0.0,te=c(-50,-10,-40,0),r=\"near\",co=c(\"COMPRESS=DEFLATE\",\"PREDICTOR=2\",\"ZLEVEL=9\"))\n", "gdalUtils::gdalwarp('/projects/my-public-bucket/Data/Harris_et_al_PAPER/JRC_TFM/JRC_TMST_00N_060W.tif','/projects/my-public-bucket/Data/Harris_et_al_PAPER/JRC_TFM/00N_060W_JRC_Transition_Map.tif',tr=c(0.00025,0.00025),a_nodata=0.0,te=c(-60,-10,-50,0),r=\"near\",co=c(\"COMPRESS=DEFLATE\",\"PREDICTOR=2\",\"ZLEVEL=9\"))\n", - "gdalUtils::gdalwarp('/projects/my-public-bucket/Data/Harris_et_al_PAPER/JRC_TFM/JRC_TMST_00N_060W.tif','/projects/my-public-bucket/Data/Harris_et_al_PAPER/JRC_TFM/00N_060W_JRC_Transition_Map.tif',tr=c(0.00025,0.00025),a_nodata=0.0,te=c(-60,-10,-50,0),r=\"near\",co=c(\"COMPRESS=DEFLATE\",\"PREDICTOR=2\",\"ZLEVEL=9\"))\n", "gdalUtils::gdalwarp('/projects/my-public-bucket/Data/Harris_et_al_PAPER/JRC_TFM/JRC_TMST_00N_070W.tif','/projects/my-public-bucket/Data/Harris_et_al_PAPER/JRC_TFM/00N_070W_JRC_Transition_Map.tif',tr=c(0.00025,0.00025),a_nodata=0.0,te=c(-70,-10,-60,0),r=\"near\",co=c(\"COMPRESS=DEFLATE\",\"PREDICTOR=2\",\"ZLEVEL=9\"))\n", "gdalUtils::gdalwarp('/projects/my-public-bucket/Data/Harris_et_al_PAPER/JRC_TFM/JRC_TMST_00N_080W.tif','/projects/my-public-bucket/Data/Harris_et_al_PAPER/JRC_TFM/00N_080W_JRC_Transition_Map.tif',tr=c(0.00025,0.00025),a_nodata=0.0,te=c(-80,-10,-70,0),r=\"near\",co=c(\"COMPRESS=DEFLATE\",\"PREDICTOR=2\",\"ZLEVEL=9\"))\n", "gdalUtils::gdalwarp('/projects/my-public-bucket/Data/Harris_et_al_PAPER/JRC_TFM/JRC_TMST_00N_090E.tif','/projects/my-public-bucket/Data/Harris_et_al_PAPER/JRC_TFM/00N_090E_JRC_Transition_Map.tif',tr=c(0.00025,0.00025),a_nodata=0.0,te=c(90,-10,100,0),r=\"near\",co=c(\"COMPRESS=DEFLATE\",\"PREDICTOR=2\",\"ZLEVEL=9\"))\n", @@ -667,6 +1030,27 @@ "gdalUtils::gdalwarp('/projects/my-public-bucket/Data/Harris_et_al_PAPER/JRC_TFM/JRC_TMST_30S_150E.tif','/projects/my-public-bucket/Data/Harris_et_al_PAPER/JRC_TFM/30S_150E_JRC_Transition_Map.tif',tr=c(0.00025,0.00025),a_nodata=0.0,te=c(150,-40,160,-30),r=\"near\",co=c(\"COMPRESS=DEFLATE\",\"PREDICTOR=2\",\"ZLEVEL=9\"))" ] }, + { + "cell_type": "code", + "execution_count": 3, + "id": "545098a3-173d-4e2a-a499-504bf7d1dac3", + "metadata": { + "tags": [] + }, + "outputs": [], + "source": [ + "####### CREATE FAKE JRC LAYERS (only 0 values) FOR MISSING TILES ###########\n", + "Blank = rasterio.open(\"/projects/my-public-bucket/Data/Harris_et_al_PAPER/JRC_TFM/00N_010E_JRC_Transition_Map.tif\").read(1)\n", + "Blank = Blank*0\n", + "kwargs = rasterio.open(\"/projects/my-public-bucket/Data/Harris_et_al_PAPER/JRC_TFM/00N_010E_JRC_Transition_Map.tif\").meta\n", + "kwargs.update(dtype=rasterio.int16,count=1,compress='lzw') \n", + "\n", + "TILES = [\"00N_000E\",\"00N_010E\",\"00N_020E\",\"00N_030E\",\"00N_040E\",\"00N_040W\",\"00N_050E\",\"00N_050W\",\"00N_060W\",\"00N_070E\",\"00N_070W\",\"00N_080W\",\"00N_090E\",\"00N_090W\",\"00N_100E\",\"00N_100W\",\"00N_110E\",\"00N_120E\",\"00N_130E\",\"00N_140E\",\"00N_150E\",\"00N_160E\",\"00N_170E\",\"10N_000E\",\"10N_010E\",\"10N_010W\",\"10N_020E\",\"10N_020W\",\"10N_030E\",\"10N_040E\",\"10N_050E\",\"10N_050W\",\"10N_060W\",\"10N_070E\",\"10N_070W\",\"10N_080E\",\"10N_080W\",\"10N_090E\",\"10N_090W\",\"10N_100E\",\"10N_100W\",\"10N_110E\",\"10N_120E\",\"10N_130E\",\"10N_150E\",\"10N_160E\",\"10N_170E\",\"10S_010E\",\"10S_020E\",\"10S_030E\",\"10S_040E\",\"10S_040W\",\"10S_050E\",\"10S_050W\",\"10S_060W\",\"10S_070W\",\"10S_080W\",\"10S_110E\",\"10S_120E\",\"10S_130E\",\"10S_140E\",\"10S_150E\",\"10S_160E\",\"10S_170E\",\"10S_180W\",\"20N_000E\",\"20N_010E\",\"20N_010W\",\"20N_020E\",\"20N_020W\",\"20N_030E\",\"20N_030W\",\"20N_040E\",\"20N_050E\",\"20N_060W\",\"20N_070E\",\"20N_070W\",\"20N_080E\",\"20N_080W\",\"20N_090E\",\"20N_090W\",\"20N_100E\",\"20N_100W\",\"20N_110E\",\"20N_110W\",\"20N_120E\",\"20N_120W\",\"20N_160W\",\"20S_010E\",\"20S_020E\",\"20S_030E\",\"20S_040E\",\"20S_050E\",\"20S_050W\",\"20S_060W\",\"20S_070W\",\"20S_080W\",\"20S_110E\",\"20S_120E\",\"20S_130E\",\"20S_140E\",\"20S_150E\",\"20S_160E\",\"20S_180W\",\"30N_000E\",\"30N_010E\",\"30N_010W\",\"30N_020E\",\"30N_020W\",\"30N_030E\",\"30N_040E\",\"30N_050E\",\"30N_060E\",\"30N_070E\",\"30N_080E\",\"30N_080W\",\"30N_090E\",\"30N_090W\",\"30N_100E\",\"30N_100W\",\"30N_110E\",\"30N_110W\",\"30N_120E\",\"30N_120W\",\"30N_130E\",\"30N_160W\",\"30N_170W\",\"30S_010E\",\"30S_020E\",\"30S_030E\",\"30S_060W\",\"30S_070W\",\"30S_080W\",\"30S_110E\",\"30S_120E\",\"30S_130E\",\"30S_140E\",\"30S_150E\",\"30S_170E\",\"40N_000E\",\"40N_010E\",\"40N_010W\",\"40N_020E\",\"40N_020W\",\"40N_030E\",\"40N_040E\",\"40N_050E\",\"40N_060E\",\"40N_070E\",\"40N_070W\",\"40N_080E\",\"40N_080W\",\"40N_090E\",\"40N_090W\",\"40N_100E\",\"40N_100W\",\"40N_110E\",\"40N_110W\",\"40N_120E\",\"40N_120W\",\"40N_130E\",\"40N_130W\",\"40N_140E\",\"40S_070W\",\"40S_080W\",\"40S_140E\",\"40S_160E\",\"40S_170E\",\"50N_000E\",\"50N_010E\",\"50N_010W\",\"50N_020E\",\"50N_030E\",\"50N_040E\",\"50N_050E\",\"50N_060E\",\"50N_060W\",\"50N_070E\",\"50N_070W\",\"50N_080E\",\"50N_080W\",\"50N_090E\",\"50N_090W\",\"50N_100E\",\"50N_100W\",\"50N_110E\",\"50N_110W\",\"50N_120E\",\"50N_120W\",\"50N_130E\",\"50N_130W\",\"50N_140E\",\"50N_150E\",\"50S_060W\",\"50S_070W\",\"50S_080W\",\"60N_000E\",\"60N_010E\",\"60N_010W\",\"60N_020E\",\"60N_020W\",\"60N_030E\",\"60N_040E\",\"60N_050E\",\"60N_060E\",\"60N_060W\",\"60N_070E\",\"60N_070W\",\"60N_080E\",\"60N_080W\",\"60N_090E\",\"60N_090W\",\"60N_100E\",\"60N_100W\",\"60N_110E\",\"60N_110W\",\"60N_120E\",\"60N_120W\",\"60N_130E\",\"60N_130W\",\"60N_140E\",\"60N_140W\",\"60N_150E\",\"60N_150W\",\"60N_160E\",\"60N_160W\",\"60N_170E\",\"60N_170W\",\"60N_180W\",\"70N_000E\",\"70N_010E\",\"70N_020E\",\"70N_030E\",\"70N_040E\",\"70N_050E\",\"70N_060E\",\"70N_070E\",\"70N_070W\",\"70N_080E\",\"70N_080W\",\"70N_090E\",\"70N_090W\",\"70N_100E\",\"70N_100W\",\"70N_110E\",\"70N_110W\",\"70N_120E\",\"70N_120W\",\"70N_130E\",\"70N_130W\",\"70N_140E\",\"70N_140W\",\"70N_150E\",\"70N_150W\",\"70N_160E\",\"70N_160W\",\"70N_170E\",\"70N_170W\",\"70N_180W\",\"80N_010E\",\"80N_020E\",\"80N_030E\",\"80N_070E\",\"80N_080E\",\"80N_090E\",\"80N_100E\",\"80N_110E\",\"80N_120E\",\"80N_130E\",\"80N_130W\",\"80N_140E\",\"80N_140W\",\"80N_150E\",\"80N_150W\",\"80N_160E\",\"80N_160W\",\"80N_170E\",\"80N_170W\"]\n", + "for TILE in TILES: \n", + " if not os.path.exists(\"/projects/my-public-bucket/Data/Harris_et_al_PAPER/JRC_TFM/\"+TILE+\"_JRC_Transition_Map.tif\"):\n", + " with rasterio.open(\"/projects/my-public-bucket/Data/Harris_et_al_PAPER/JRC_TFM/\"+TILE+\"_JRC_Transition_Map.tif\", 'w', **kwargs) as dst: dst.write_band(1, Blank.astype(rasterio.int16)) " + ] + }, { "cell_type": "markdown", "id": "6a182133-00a4-4f4a-bd1a-b7d7b7b386e1", @@ -7290,17 +7674,21 @@ ], "metadata": { "kernelspec": { - "display_name": "R", - "language": "R", - "name": "ir" + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" }, "language_info": { - "codemirror_mode": "r", - "file_extension": ".r", - "mimetype": "text/x-r-source", - "name": "R", - "pygments_lexer": "r", - "version": "4.2.3" + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.10.13" } }, "nbformat": 4,