I'm trying to read a global attribute within python using xarray from a netcdf4 file. I can see the global attribute in nc_dump from the linux command line. I've tried:
print(ds['global_attribute'])
print(ds.attrs['global_attribute'])
Within python, I note that when I use print(ds.variables.keys())
, the global attributes don't show up.
Appreciate the help.