UM Nesting Suite - nci_era5grib crashing

Hi Team,
After a bit of a break I’m trying to get the nesting suite working again (it was working in October last year - though I have now copied the most recent revision of by395). I’m using ERA-5 as the driving model, and the issue I am running into is with creating the grib files in the nci_era5grib task (see job.err copied below). It seems like a simple fix but I just can’t see it & would appreciate any help in getting this going again!
Cheers,
Sonya

Traceback (most recent call last):
File “/home/563/slf563/cylc-run/u-cw634/app/nci_era5grib/bin/nci_era5grib.py”, line 43, in
main()
File “/home/563/slf563/cylc-run/u-cw634/app/nci_era5grib/bin/nci_era5grib.py”, line 38, in main
era5grib.era5grib_um(t, output=out, target=args.mask, era5land=args.era5land, polar=args.polar)
File “/g/data/hh5/public/apps/miniconda3/envs/analysis3/lib/python3.9/site-packages/era5grib/era5grib.py”, line 214, in era5grib_um
ds = nci.read_um(time, era5land=era5land)
File “/g/data/hh5/public/apps/miniconda3/envs/analysis3/lib/python3.9/site-packages/era5grib/nci.py”, line 237, in read_um
ds = read_era5(
File “/g/data/hh5/public/apps/miniconda3/envs/analysis3/lib/python3.9/site-packages/era5grib/nci.py”, line 221, in read_era5
read_era5_month(
File “/g/data/hh5/public/apps/miniconda3/envs/analysis3/lib/python3.9/site-packages/era5grib/nci.py”, line 197, in read_era5_month
surf = [read_era5_surface(v, year, month) for v in surface_vars]
File “/g/data/hh5/public/apps/miniconda3/envs/analysis3/lib/python3.9/site-packages/era5grib/nci.py”, line 197, in
surf = [read_era5_surface(v, year, month) for v in surface_vars]
File “/g/data/hh5/public/apps/miniconda3/envs/analysis3/lib/python3.9/site-packages/era5grib/nci.py”, line 98, in read_era5_surface
da = load_var(
File “/g/data/hh5/public/apps/miniconda3/envs/analysis3/lib/python3.9/site-packages/era5grib/nci.py”, line 49, in load_var
if “era5-1” in result.unique().get(“sub_collection”, {“values”: })[“values”]:
TypeError: list indices must be integers or slices, not str
[FAIL] (module use /g/data/hh5/public/modules; module load conda; nci_era5grib.py --mask $MASK --output $OUTDIR --start $START --count $COUNT --freq $FREQ --era5land $ERA5LAND --polar $POLAR) # return-code=1
2023-05-04T03:27:45Z CRITICAL - failed/EXIT
~

1 Like

Hi Sonya,

try changing the shebang line (1st line of your script) so you use the unstable conda env packages

#!/g/data/hh5/public/apps/miniconda3/envs/analysis3/bin/python

#!/g/data/hh5/public/apps/miniconda3/envs/analysis3-unstable/bin/python

and see if this helps, there were a few updates to other packages era5grib depends on that introduced that error. It should work in the unstable environment.

If you have more issues with era5grib please use the helpdesk cws_help@nci.org.au, I only accidentally noticed this post.

Cheers,
Paola

2 Likes