I have imported a netcdf file into Python and am now trying to access specific variables in the file (of over 100 variables). This is the code i'm using in order to just print and read each variables:
ds = Dataset(fn, 'r')
yr = ds.variables['Year']
print(yr[:])
This returns me with the error:
ValueError: invalid literal for int() with base 10: '-1e+35,1e+35'
Any idea on how to overcome this error? This is the only way I can find that is used to print each variable.