RachaelDMueller / SalishSeaModel-analysis

A repository for my work at the Puget Sound Institute
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

graphics naming for movies #11

Open RachaelDMueller opened 1 year ago

RachaelDMueller commented 1 year ago

Changes in the code were made to accommodate a re-naming of scenarios. In this process, it appears that a discrepancy was introduced between how the movie graphics for wqm_baseline and wqm_reference were named v.s. those for the other scenarios. What this means for the Main region results is that the baseline and reference graphics are named according to:

${case}_${run_tags[${SLURM_ARRAY_TASK_ID}]}_percentDO_lt_${DOthresh}_wc_%d.png

vs.

${case}_${run_folders[${SLURM_ARRAY_TASK_ID}]}_percentDO_lt_${DOthresh}_wc_%d.png

for the scenarios.

The "fix" for now is a clunky one. I run create_percentHypoxic_movie.sh once for the scenarios using run_folders and once using run_tags (in the file name following -I). For ease of application in future regions, the naming convention used for creating graphics and folders needs to be revised so there is consistency across the scenarios as well as the "wqm" baseline and reference runs.

RachaelDMueller commented 1 year ago

Clarification: This code will work for creating regional graphics for all scenarios, it just won't re-name the movie files to reflect the desired naming convention:

apptainer exec --bind ${graphics_dir} --bind ${output_dir} ~/ffmpeg.sif ffmpeg -start_number 6 -framerate 6 -i ${graphics_dir}${case}_${run_tags[${SLURM_ARRAY_TASK_ID}]}_percentDO_lt_${DOthresh}_wc_%d.png -c:v libx264 -pix_fmt yuv420p -vcodec mpeg4 ${output_dir}${case}_${run_tags[${SLURM_ARRAY_TASK_ID}]}_percentDO_lt_${DOthresh}_${frame}.mp4