-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
generalise support for cice filenames #22
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @anton-seaice. I've left some comments regarding the assumption that the 28th day is considered complete.
#if the 1st and the 28th of that month exists, then assume its a whole month and concatenate | ||
if [ -f $f ] && [ -f ${f/-01.nc/-28.nc} ]; then | ||
elif [ -f $f ] && [ -f ${f/-01.nc/-28.nc} ] ; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if the month is, e.g., March, which has 31 days, but the available files only go up to the 29th day? This would still be considered incomplete.
Co-authored-by: minghang.li <[email protected]>
Co-authored-by: minghang.li <[email protected]>
The tests pass on gadi and fail on the github runner ! |
I think this is ready to go @minghangli-uni . Thanks for your suggestion, it works good! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me! Thanks @anton-seaice
Per COSIMA/access-om3#190 (comment) allow for support of more variety in filenames and don't overwrite existing files
Closes #21