diff --git a/country_summaries/IPCC_classes_DPS/Boreal/.ipynb_checkpoints/boreal_biomass_in_IPCC-checkpoint.R b/country_summaries/IPCC_classes_DPS/Boreal/.ipynb_checkpoints/boreal_biomass_in_IPCC-checkpoint.R index 1889344a617112f653eba1874b107ee6ed7a7afb..6f8df3fe3e8724172ef183da7ef95a19598f9479 100644 --- a/country_summaries/IPCC_classes_DPS/Boreal/.ipynb_checkpoints/boreal_biomass_in_IPCC-checkpoint.R +++ b/country_summaries/IPCC_classes_DPS/Boreal/.ipynb_checkpoints/boreal_biomass_in_IPCC-checkpoint.R @@ -35,7 +35,6 @@ if (nrow(intersecting) > 0) { } else {stop('no intersecting CCI Biomass tiles found')} tilelist = as.list(ICESat_tiles$tile_num) -# AGB_tindex <- read.csv("https://maap-ops-workspace.s3.amazonaws.com/shared/lduncanson/DPS_tile_lists/2023/AGB_tindex_master.csv") AGB_tindex <- read.csv(args[7]) print(AGB_tindex) AGB_tindex_out <- c() @@ -45,6 +44,7 @@ for (i in 1:length(tilelist)){ } PATHS <- AGB_tindex_out$s3_path +remove(AGB_tindex_out,AGB_tindex,intersecting,adm,adm_poly,tilelist) print(paste0("NUMBER OF FILES TO BE DOWNLAODED IS ...",lenght(PATHS))) ##################################################################################################### @@ -102,6 +102,7 @@ for (i in 1:length(PATHS)){ if (file.exists(file.path(Out_folder,ISB_tile_AGBrooted))){file.remove(file.path(Out_folder,ISB_tile_AGBrooted))} if (file.exists(file.path(Out_folder,ISB_tile_VAR30m))){file.remove(file.path(Out_folder,ISB_tile_VAR30m))} } + gc() } print(paste0("ALL NEEDED FILES HAVE BEEN DONWLOADED")) diff --git a/country_summaries/IPCC_classes_DPS/Boreal/boreal_biomass_in_IPCC.R b/country_summaries/IPCC_classes_DPS/Boreal/boreal_biomass_in_IPCC.R index 1889344a617112f653eba1874b107ee6ed7a7afb..6f8df3fe3e8724172ef183da7ef95a19598f9479 100644 --- a/country_summaries/IPCC_classes_DPS/Boreal/boreal_biomass_in_IPCC.R +++ b/country_summaries/IPCC_classes_DPS/Boreal/boreal_biomass_in_IPCC.R @@ -35,7 +35,6 @@ if (nrow(intersecting) > 0) { } else {stop('no intersecting CCI Biomass tiles found')} tilelist = as.list(ICESat_tiles$tile_num) -# AGB_tindex <- read.csv("https://maap-ops-workspace.s3.amazonaws.com/shared/lduncanson/DPS_tile_lists/2023/AGB_tindex_master.csv") AGB_tindex <- read.csv(args[7]) print(AGB_tindex) AGB_tindex_out <- c() @@ -45,6 +44,7 @@ for (i in 1:length(tilelist)){ } PATHS <- AGB_tindex_out$s3_path +remove(AGB_tindex_out,AGB_tindex,intersecting,adm,adm_poly,tilelist) print(paste0("NUMBER OF FILES TO BE DOWNLAODED IS ...",lenght(PATHS))) ##################################################################################################### @@ -102,6 +102,7 @@ for (i in 1:length(PATHS)){ if (file.exists(file.path(Out_folder,ISB_tile_AGBrooted))){file.remove(file.path(Out_folder,ISB_tile_AGBrooted))} if (file.exists(file.path(Out_folder,ISB_tile_VAR30m))){file.remove(file.path(Out_folder,ISB_tile_VAR30m))} } + gc() } print(paste0("ALL NEEDED FILES HAVE BEEN DONWLOADED")) 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 d66af000649afc8e1c399c48eeeed92b8b528e15..841638f3c7a1fa053767c619cb96f94ed2d94fa3 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": 1, "id": "142b1675-bca8-4bb8-b62a-30e6abef26c9", "metadata": { + "collapsed": true, + "jupyter": { + "outputs_hidden": true + }, "tags": [] }, "outputs": [ @@ -250,17 +254,17 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 18, "id": "3a2b480f-a23e-49fa-b26b-392f27bd9cef", "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "'{\"code\": 200, \"message\": {\"id\": \"c0933b08b37e28a7c0f6313f48ce9886d6994cf4\", \"short_id\": \"c0933b08\", \"created_at\": \"2023-12-10T05:18:23.000+00:00\", \"parent_ids\": [\"115c23a03990bc594e15d938e4a10cdef6017684\"], \"title\": \"Registering algorithm: run_Boreal_IPCC_classes_ADE\", \"message\": \"Registering algorithm: run_Boreal_IPCC_classes_ADE\", \"author_name\": \"root\", \"author_email\": \"root@e49d5cea4b76\", \"authored_date\": \"2023-12-10T05:18:23.000+00:00\", \"committer_name\": \"root\", \"committer_email\": \"root@e49d5cea4b76\", \"committed_date\": \"2023-12-10T05:18:23.000+00:00\", \"trailers\": {}, \"web_url\": \"https://repo.maap-project.org/root/register-job-hysds-v4/-/commit/c0933b08b37e28a7c0f6313f48ce9886d6994cf4\", \"stats\": {\"additions\": 4, \"deletions\": 4, \"total\": 8}, \"status\": \"pending\", \"project_id\": 3, \"last_pipeline\": {\"id\": 10447, \"iid\": 642, \"project_id\": 3, \"sha\": \"c0933b08b37e28a7c0f6313f48ce9886d6994cf4\", \"ref\": \"main\", \"status\": \"pending\", \"source\": \"push\", \"created_at\": \"2023-12-10T05:18:24.594Z\", \"updated_at\": \"2023-12-10T05:18:25.241Z\", \"web_url\": \"https://repo.maap-project.org/root/register-job-hysds-v4/-/pipelines/10447\"}, \"job_web_url\": \"https://repo.maap-project.org/root/register-job-hysds-v4/-/jobs/10699\", \"job_log_url\": \"https://repo.maap-project.org/root/register-job-hysds-v4/-/jobs/10699/raw\"}}\\n'" + "'{\"code\": 200, \"message\": {\"id\": \"771f8a20267a27e036950320b7160be1fedeab99\", \"short_id\": \"771f8a20\", \"created_at\": \"2023-12-10T17:00:03.000+00:00\", \"parent_ids\": [\"910b02cc953022962027ac9c6979337681979668\"], \"title\": \"Registering algorithm: run_Boreal_IPCC_classes_ADE\", \"message\": \"Registering algorithm: run_Boreal_IPCC_classes_ADE\", \"author_name\": \"root\", \"author_email\": \"root@e49d5cea4b76\", \"authored_date\": \"2023-12-10T17:00:03.000+00:00\", \"committer_name\": \"root\", \"committer_email\": \"root@e49d5cea4b76\", \"committed_date\": \"2023-12-10T17:00:03.000+00:00\", \"trailers\": {}, \"web_url\": \"https://repo.maap-project.org/root/register-job-hysds-v4/-/commit/771f8a20267a27e036950320b7160be1fedeab99\", \"stats\": {\"additions\": 0, \"deletions\": 0, \"total\": 0}, \"status\": \"pending\", \"project_id\": 3, \"last_pipeline\": {\"id\": 10460, \"iid\": 644, \"project_id\": 3, \"sha\": \"771f8a20267a27e036950320b7160be1fedeab99\", \"ref\": \"main\", \"status\": \"pending\", \"source\": \"push\", \"created_at\": \"2023-12-10T17:00:04.703Z\", \"updated_at\": \"2023-12-10T17:00:05.210Z\", \"web_url\": \"https://repo.maap-project.org/root/register-job-hysds-v4/-/pipelines/10460\"}, \"job_web_url\": \"https://repo.maap-project.org/root/register-job-hysds-v4/-/jobs/10712\", \"job_log_url\": \"https://repo.maap-project.org/root/register-job-hysds-v4/-/jobs/10712/raw\"}}\\n'" ] }, - "execution_count": 4, + "execution_count": 18, "metadata": {}, "output_type": "execute_result" } @@ -281,7 +285,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 19, "id": "63d7cc00-e8bd-47c6-8394-db3c8ef6bfec", "metadata": { "collapsed": true, @@ -295,52 +299,50 @@ "name": "stdout", "output_type": "stream", "text": [ - "submitting 2133\n", - "81dd35d7-3f53-43bc-9851-a9e04e656f84\n", "submitting 7132\n", - "b905bda6-ff41-40ee-b1ee-5ef98dbd5083\n", + "18b01c34-e60e-48d0-9b4b-2dbb9663d5d0\n", "submitting 7332\n", - "0c8ed19f-86b4-466f-83e2-60598cc719d8\n", + "f6e7ebd2-260f-4d2d-8e9a-aa1ae770cb1c\n", "submitting 2141\n", - "7121e3cc-de0d-47e7-a431-f3c215dbacf8\n", + "209a9496-cbb9-4e3c-b406-2b20e0fde931\n", "submitting 2241\n", - "5f9a1e99-25e4-407b-8dfa-bac6881e0e34\n", + "e214903a-e5ba-43ae-8350-b71f2c2a6abd\n", "submitting 2341\n", - "190c2d90-8ace-487f-a6a4-e762f3c1bc53\n", + "8203a3cd-70e3-4509-a29d-eb95c601e957\n", "submitting 4343\n", - "5fc77ec5-7345-4aba-bfd7-fcf13ac7b58e\n", + "eeab8c0d-78e7-453f-85cb-523b121a7a28\n", "submitting 4243\n", - "2c1e13bc-1401-4db5-9e1d-4e0a00b050ab\n", + "0546a8e3-5f35-486f-9e44-e2b1affb47d4\n", "submitting 4141\n", - "31215555-f61d-491d-90ce-0c9392ab983e\n", + "03af9867-710d-42d8-9620-bc03c9f4f267\n", "submitting 4241\n", - "38bd3082-b899-4284-a3c0-a3c762c459cd\n", + "961ca53b-9743-4901-878e-a3362d8d78c8\n", "submitting 4341\n", - "4cb0399b-40a5-42b3-9fce-b5b693e3f8ee\n", + "112d421b-3b08-4875-9b01-721659eb233b\n", "submitting 7141\n", - "a5b88448-eb14-45e3-8956-b324c584e418\n", + "470e53b8-c871-43a9-acd3-efabe9521d9d\n", "submitting 7241\n", - "15a52980-0b75-4ed4-b463-918b8f0e6b4a\n", + "97080287-d299-4279-bee9-402ee6cfb53f\n", "submitting 7341\n", - "e1f6b437-e9d7-4d18-89ed-62e138d38667\n", + "d6179c68-eebe-442f-b1f9-173291fc57b7\n", "submitting 2142\n", - "6f80f6c8-4b79-4b93-aa2a-955509c136c2\n", + "e06bb367-c5bb-4f88-9d49-149a94a1d25a\n", "submitting 2242\n", - "b96c5ebe-3ec3-4001-8b6d-a376df990877\n", + "e78fcab3-498c-4441-87d5-86fb2f45f011\n", "submitting 2342\n", - "b6695e98-e0b7-4cc9-8b23-dcc99ecfaa26\n", + "43a20e69-061c-4fa2-92fd-c7558fada9a3\n", "submitting 2143\n", - "c9c8b2dc-dc3b-4230-b22e-47ff9e93a416\n", + "6e4ce1c7-4b5b-4b77-a5e4-7b1883856873\n", "submitting 2243\n", - "667e7137-757e-436d-9bb8-1cd9f59afbcb\n", + "3a34b295-f628-43da-a41e-5e649a9954f7\n", "submitting 2343\n", - "cf99d553-56ce-4097-b926-03313b1c0137\n", + "5c915f26-cd90-4230-963d-ce067937dc14\n", "submitting 4142\n", - "4d6b0b22-862d-4238-a9ba-38cdc5e7e8f8\n", + "815031d5-c1e3-4eff-bb32-2812150d7d01\n", "submitting 4242\n", - "6e84d341-8f0e-401f-867d-420305d29f68\n", + "a701113a-6ab7-4514-899d-f3b2629499cd\n", "submitting 4342\n", - "309fb32f-3d11-4cb7-a963-7b057dfcf8e7\n" + "c341404d-77c9-4424-a3a1-859f42a77d71\n" ] } ], @@ -426,7 +428,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 23, "id": "a91aad0d-86d8-421f-80a7-5951d3f5b239", "metadata": { "tags": []