# UM Nesting Suite - nci\_era5grib crashing

**URL:** <https://forum.access-hive.org.au/t/um-nesting-suite-nci-era5grib-crashing/736>\
**Category:** rAM3/Regional Nesting Suite\
**Created:** [4 May 2023 03:58 UTC](https://forum.access-hive.org.au/t/um-nesting-suite-nci-era5grib-crashing/736 "2023-05-04T03:58:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonyafiddes](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/sonyafiddes/32/603_2.png) [@sonyafiddes](https://forum.access-hive.org.au/u/sonyafiddes)\
**Post date:** [4 May 2023 03:58 UTC](https://forum.access-hive.org.au/t/um-nesting-suite-nci-era5grib-crashing/736/1 "2023-05-04T03:58:31Z")

</div>

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  
~

---

<div class="post-metadata">

**Author:** ![Paola-CMS](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/paola-cms/32/57_2.png) [@Paola-CMS](https://forum.access-hive.org.au/u/Paola-CMS)\
**Post date:** [4 May 2023 05:39 UTC](https://forum.access-hive.org.au/t/um-nesting-suite-nci-era5grib-crashing/736/2 "2023-05-04T05:39:20Z")

</div>

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
