Skip to content
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

Merged
merged 23 commits into from
Aug 21, 2024
Merged

generalise support for cice filenames #22

merged 23 commits into from
Aug 21, 2024

Conversation

anton-seaice
Copy link
Contributor

@anton-seaice anton-seaice commented Aug 14, 2024

Per COSIMA/access-om3#190 (comment) allow for support of more variety in filenames and don't overwrite existing files

Closes #21

@anton-seaice anton-seaice marked this pull request as ready for review August 15, 2024 01:28
Copy link
Contributor

@minghangli-uni minghangli-uni left a 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.

payu_config/archive_scripts/concat_ice_daily.sh Outdated Show resolved Hide resolved
#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
Copy link
Contributor

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.

payu_config/archive_scripts/concat_ice_daily.sh Outdated Show resolved Hide resolved
payu_config/archive_scripts/concat_ice_daily.sh Outdated Show resolved Hide resolved
@anton-seaice
Copy link
Contributor Author

The tests pass on gadi and fail on the github runner !

@anton-seaice
Copy link
Contributor Author

anton-seaice commented Aug 21, 2024

I think this is ready to go @minghangli-uni . Thanks for your suggestion, it works good!

Copy link
Contributor

@minghangli-uni minghangli-uni left a 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

@anton-seaice anton-seaice merged commit 5277a17 into main Aug 21, 2024
4 checks passed
@anton-seaice anton-seaice deleted the om3_user_scripts branch August 21, 2024 04:27
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.

Update concat_ice_daily to support more cice variable filenames
2 participants