Skip to content
Snippets Groups Projects
Commit 8fda2867 authored by Lene Wasskog's avatar Lene Wasskog
Browse files

feat: Remove tmp file after processing, fix path error

parent 49a00c24
No related branches found
No related tags found
No related merge requests found
Pipeline #5991 passed
...@@ -172,8 +172,8 @@ if __name__ == "__main__": ...@@ -172,8 +172,8 @@ if __name__ == "__main__":
sys.exit() sys.exit()
# Ensure that output year dirs exist # Ensure that output year dirs exist
result_tif_year_dir = f"{result_tif_base_dir}{year}" result_tif_year_dir = f"{result_tif_base_dir}{year}/"
result_mapfile_year_dir = f"{result_mapfile_base_dir}{year}" result_mapfile_year_dir = f"{result_mapfile_base_dir}{year}/"
os.makedirs(result_tif_year_dir, exist_ok=True) os.makedirs(result_tif_year_dir, exist_ok=True)
os.makedirs(result_mapfile_year_dir, exist_ok=True) os.makedirs(result_mapfile_year_dir, exist_ok=True)
...@@ -287,6 +287,7 @@ if __name__ == "__main__": ...@@ -287,6 +287,7 @@ if __name__ == "__main__":
run_command( run_command(
command=f'cdo -s -aexpr,"WARNING_STATUS = 0" {tmp_file} {file}', command=f'cdo -s -aexpr,"WARNING_STATUS = 0" {tmp_file} {file}',
) )
os.remove(tmp_file)
# For warning status: # For warning status:
run_command( run_command(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment