Open sadamov opened 1 month ago
I think gif generation is good to have. Saving the pngs and pdfs as well can be useful, but then there are a lot of files. In my plotting scripts I have the formats to save as options, i.e.
parser.add_argument(
"--save_png",
type=int,
default=1,
help="If image png files should be saved (default: 1)",
)
parser.add_argument(
"--save_pdf",
type=int,
default=0,
help="If pdf files should be saved (default: 0)",
)
parser.add_argument(
"--save_gif",
type=int,
default=1,
help="If gif should be generated and saved (default: 1)",
)
A few considerations here (I don't have answers to these, just things to keep in mind when implementing this):
train_model.py
.
Description: Currently, the code generates individual PNG images for each variable and level combination at different time steps. To enhance visualization and make it easier to observe changes over time, we propose generating GIF animations from these PNG images.
Proposed Changes:
Iterate over each unique combination of variable name and level. (using #18 )
Benefits:
Considerations: