diff --git a/main.py b/main.py index 5791b23b3f149d567fed60152fce296134dda056..4e773a327b8273cd58c9229a06417e8d693ea1cc 100644 --- a/main.py +++ b/main.py @@ -124,7 +124,9 @@ if __name__ == '__main__': orbit_num = re.findall("O[0-9]{5}", l1b_basename)[0] track_num = re.findall("T[0-9]{5}", l1b_basename)[0] date_str = re.findall("[0-9]{13}", l1b_basename)[0] - outfp = os.path.join(outdir, "output", f"GEDI_bioindex_{date_str}_{orbit_num}_{track_num}.csv") + # outfp = os.path.join(outdir, "output",f"GEDI_bioindex_{date_str}_{orbit_num}_{track_num}.csv") # already saves to output + outfp = os.path.join(outdir, f"GEDI_bioindex_{date_str}_{orbit_num}_{track_num}.csv") + # init df_list to concat afterwards df_list = [] diff --git a/notebooks/run-gedi-biomass.ipynb b/notebooks/run-gedi-biomass.ipynb index 6dea7c5731c96b6938b8537e6d6d0717ff501254..ee11fe821650a49ddb987dcb5381c7545aa56a7a 100644 --- a/notebooks/run-gedi-biomass.ipynb +++ b/notebooks/run-gedi-biomass.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": 3, "id": "25172537-794b-4135-bb28-63c0fcefbb68", "metadata": {}, "outputs": [ @@ -10,9 +10,9 @@ "name": "stderr", "output_type": "stream", "text": [ - "Unable to load config file from source maap.cfg \n", - "Unable to load config file from source ./maap.cfg \n", - "Unable to load config file from source /projects/maap.cfg \n" + "WARNING:maap.maap:Unable to load config file from source maap.cfg \n", + "WARNING:maap.maap:Unable to load config file from source ./maap.cfg \n", + "WARNING:maap.maap:Unable to load config file from source /projects/maap.cfg \n" ] } ], @@ -90,7 +90,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 4, "id": "8f0b9f73-ffb1-40b7-be0e-b31480571a4a", "metadata": {}, "outputs": [ @@ -98,7 +98,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "[{'job_id': 'edaa25c9-99e8-4b0f-aa52-bf843a6f9ada', 'status': 'Accepted', 'machine_type': None, 'architecture': None, 'machine_memory_size': None, 'directory_size': None, 'operating_system': None, 'job_start_time': None, 'job_end_time': None, 'job_duration_seconds': None, 'cpu_usage': None, 'cache_usage': None, 'mem_usage': None, 'max_mem_usage': None, 'swap_usage': None, 'read_io_stats': None, 'write_io_stats': None, 'sync_io_stats': None, 'async_io_stats': None, 'total_io_stats': None, 'error_details': None, 'response_code': 200, 'outputs': []}]\n" + "[{'job_id': 'ec2bbed4-214e-4c0b-b537-736614d43306', 'status': 'Accepted', 'machine_type': None, 'architecture': None, 'machine_memory_size': None, 'directory_size': None, 'operating_system': None, 'job_start_time': None, 'job_end_time': None, 'job_duration_seconds': None, 'cpu_usage': None, 'cache_usage': None, 'mem_usage': None, 'max_mem_usage': None, 'swap_usage': None, 'read_io_stats': None, 'write_io_stats': None, 'sync_io_stats': None, 'async_io_stats': None, 'total_io_stats': None, 'error_details': None, 'response_code': 200, 'outputs': []}]\n" ] } ], @@ -108,7 +108,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 5, "id": "7fe1c6f4-37c5-4fe7-b9ff-51e17b7a5cf0", "metadata": {}, "outputs": [ @@ -117,7 +117,7 @@ "output_type": "stream", "text": [ "Accepted\n", - "edaa25c9-99e8-4b0f-aa52-bf843a6f9ada\n" + "ec2bbed4-214e-4c0b-b537-736614d43306\n" ] } ], @@ -131,19 +131,10 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": null, "id": "2018077f-9640-4e70-bd01-a9d939b3626a", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Failed\n", - "edaa25c9-99e8-4b0f-aa52-bf843a6f9ada\n" - ] - } - ], + "outputs": [], "source": [ "# View job status\n", "for job in jobs_list:\n",