Skip to content
Snippets Groups Projects
Commit 5ba52af8 authored by Oriol Tintó's avatar Oriol Tintó
Browse files

Update prepare_namelist.py

parent f57d6382
No related branches found
No related tags found
No related merge requests found
......@@ -17,10 +17,16 @@ CHUNK = "%CHUNK%"
RUNDIR = Path(f"{WORKDIR}/{STARTDATE}/{MEMBER}")
ATMOSPHERE_NAMELIST_PATH = Path("%simulation.namelist_paths.atmosphere%")
MASTER_NAMELIST_PATH = Path("%simulation.namelist_paths.master%")
# TODO: This is a bit ugly
# Read first-guess and analysis filenames from files:
first_guess_filename = (RUNDIR / "fg_file.txt").read_text().strip()
analysis_filename = (RUNDIR / "an_file.txt").read_text().strip()
# Get first-guess and analysis names:
analysis_filename = (RUNDIR / "igaf*.m*.grb")
analysis_filename = analysis_filename.parent.glob(analysis_filename.name).__next__()
analysis_filename = analysis_filename.name
first_guess_filename = (RUNDIR / "igfff00030000.m*.grb").resolve()
first_guess_filename = first_guess_filename.parent.glob(first_guess_filename.name).__next__()
first_guess_filename = first_guess_filename.name
# Example of date format "2018-06-01T00:00:00Z"
date_format = "%simulation.date_format%"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment