NOAA-GFDL / fre-workflows

Code to generate, describe, validate, and configure scientific workflows within the FRE software framework
2 stars 4 forks source link

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

Open uwagura opened 3 months ago

uwagura commented 3 months ago

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:

https://github.com/NOAA-GFDL/fre-workflows/blob/c18dedd918a09fef11a24ffcab692ab8d86a3e7b/app/make-timeavgs/bin/make-timeavgs#L57-L59

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

https://github.com/NOAA-GFDL/fre-workflows/blob/c18dedd918a09fef11a24ffcab692ab8d86a3e7b/app/make-timeavgs/bin/make-timeavgs#L69