diff --git a/main.py b/main.py index 12d2ac05b01db81ab4b0f58ca776da8e1520c8c0..02e55b0be7ff3a85fc09e04dfac22d762688c973 100644 --- a/main.py +++ b/main.py @@ -112,8 +112,9 @@ if __name__ == '__main__': # get level 1 and level 2 data print(l1b_basename) print(l2a_basename) - l1b_ds = h5py.File(f"./{l1b_basename}") - l2a_ds = h5py.File(f"./{l2a_basename}") + CWD = os.path.dirname(os.path.abspath(__file__)) + l1b_ds = h5py.File(os.path.join(CWD, f"{l1b_basename}")) + l2a_ds = h5py.File(os.path.join(CWD, f"{l2a_basename}")) except Exception as e: # Some raw L1B files are corrupt? print("Corrupt file: ", l1b_basename) diff --git a/notebooks/run-gedi-biomass.ipynb b/notebooks/run-gedi-biomass.ipynb index 148ba05ffee251c1c24c26f9e43f4c6edd8955c5..fb472a9b3f46c72ebb6087a51eb259f60f99fc2a 100644 --- a/notebooks/run-gedi-biomass.ipynb +++ b/notebooks/run-gedi-biomass.ipynb @@ -98,7 +98,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "[{'job_id': '9e4d8c3e-c8e2-47df-82cf-e9f0f4357ce8', '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': '8746412d-a0d2-4b97-b004-337b67c3565d', '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" ] } ], @@ -117,7 +117,7 @@ "output_type": "stream", "text": [ "Accepted\n", - "7c2243dc-d90c-4ac0-8d57-6651f98b1b10\n" + "8746412d-a0d2-4b97-b004-337b67c3565d\n" ] } ], @@ -131,7 +131,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 11, "id": "2018077f-9640-4e70-bd01-a9d939b3626a", "metadata": {}, "outputs": [ @@ -140,7 +140,7 @@ "output_type": "stream", "text": [ "Succeeded\n", - "7c2243dc-d90c-4ac0-8d57-6651f98b1b10\n" + "8746412d-a0d2-4b97-b004-337b67c3565d\n" ] } ],