bnlawrence / cfs

Rebooting cfstore, leaner and meaner
0 stars 1 forks source link

CANARI cfa files hang strangely #7

Open bnlawrence opened 2 months ago

bnlawrence commented 2 months ago

This code gets stuck after the first h.dump()

import cf 
from pathlib import Path

# this file also online at
#/gws/nopw/j04/canari/users/gobnccas/generatedncfiles/atmos
#
here = Path(__file__).parent.resolve()
file = 'CANARI_1_cs125_atmos.cfa'
egfile = here/file

fields = cf.read(egfile)

hfields = [f for f in fields if getattr(f,'standard_name',None) == 'specific_humidity']

for h in hfields:
    print(h)

for h in hfields:
    h.dump()
bnlawrence commented 1 month ago

We think this is probably fixed in thecnewer versions. Leave open until we are sure