BULK ONLINE Problems with months 01-09

Hi,

I am using the ONLINE option for BULK forcin, ERA5 input, but when it attepts to read the input file it looks for files with two characters for the month, i.e.

T2M_Y2001M01.nc

while the files are named without the leading 0

T2M_Y2001M1.nc

How can this be corrected, just renaming everything with a script?

Hi Andres,
Indeed, you can activate the cppkey named BULK_MONTH_1DIGIT, done for this purpose.
You can see we use it line 323 in the cppdefs.

Other wise you can do a simple relinking.

!    RVTK test (Restartability or Parallel reproducibility)
# if defined RVTK_DEBUG && defined BULK_FLUX && defined ONLINE
#  define BULK_MONTH_1DIGIT
# endif

Cheers,

2 Likes

ok, thanks Gildas.

I’ve modified my cppdefs.h to

#  ifdef ONLINE
#   undef  AROME
#   define  ERA_ECMWF
#   define BULK_MONTH_1DIGIT
#  endif

and now it reads the files fine.