Skip to content

Fix combining of partitioned netcdf files for overriden history files#6

Merged
alperaltuntas merged 1 commit into
ESCOMP:dev/ncarfrom
alperaltuntas:fix_file_override
Apr 23, 2025
Merged

Fix combining of partitioned netcdf files for overriden history files#6
alperaltuntas merged 1 commit into
ESCOMP:dev/ncarfrom
alperaltuntas:fix_file_override

Conversation

@alperaltuntas
Copy link
Copy Markdown
Member

If the new_file_freq of a history stream is more frequent than the most frequent datestamp suffix in filename (e.g., 'daily' and '%2mo'), that files gets overriden (~30 times over a month), meaning that it gets closed multiple times. With this PR, a file gets appended to filepath_list (the linked list of files to combine) only once even if it gets closed (overriden) multipe times.

Note for @mnlevy1981 : This edge case was caught in aux_mom MARBL tests because the daily bgc files do not have the day stamp in the file name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants