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

Can't generate time averages for non-january first initialized runs #14

Open
uwagura opened this issue Aug 21, 2024 · 0 comments
Open

Comments

@uwagura
Copy link

uwagura commented Aug 21, 2024

The make time averages script assumes that all runs in end in December, but for non-january 1st initialized runs, this may not be the case:

#now need to pick the right date-time format for the cycle-point
if [[ $file_freq == P1M ]]; then
cyclepoint=$(cylc cycle-point --template CCYY12)

As a result, when you try to ls the file names a couple of lines later, it will fail because it won't fine files ending in YYYY12

files=($(ls $dir/$interval/$component.*-$cyclepoint.*.nc))

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

No branches or pull requests

1 participant