---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-4-c5a68d144b4e> in <module>()
2 #url='http://geoport.whoi.edu/thredds/dodsC/bathy/gom15'
3 url='http://stellwagen.er.usgs.gov/thredds/dodsC/TSdata/WFAL/8591wh-a.nc'
----> 4 f = cf.read(url)
/home/rsignell/epd-7.2-1/lib/python2.7/site-packages/cf/read.pyc in read(files, verbose, index, ignore_ioerror, close, aggregate, squeeze, prop, attr, coord, cellsize)
291 attr=attr,
292 coord=coord,
--> 293 cellsize=cellsize)
294
295 # --------------------------------------------------------
/home/rsignell/epd-7.2-1/lib/python2.7/site-packages/cf/read.pyc in _read_a_file(filename, aggregate_options, ignore_ioerror, verbose, close, squeeze, prop, attr, coord, cellsize)
81 # ----------------------------------------------------------------
82 if format == 'nc':
---> 83 fields = netcdf_read(openfile, close=close)
84
85 elif format == 'pp':
/home/rsignell/epd-7.2-1/lib/python2.7/site-packages/cf/netcdf.pyc in read(filename, close)
126 # Check for bad units
127 try:
--> 128 Units(units=attributes[ncvar]['units'])
129 except ValueError:
130 # Units have been set to unknown units so 1) give a
/home/rsignell/epd-7.2-1/lib/python2.7/site-packages/cf/__init__.pyc in __init__(self, units, calendar, format, names, definition, _ut_unit)
603
604 if units is not None:
--> 605 self.units = units
606 if format or names is not None or definition is not None:
607 self.units = self.format(names=names, definition=definition)
/home/rsignell/epd-7.2-1/lib/python2.7/site-packages/cf/__init__.pyc in units(self, value)
1226 # error, this time untrapped.
1227 tmp_value = 'day since '+value_split[1].strip()
-> 1228 self._rtime = _utime(tmp_value, calendar=calendar)
1229 self._rtime.units = units
1230 #--- End: try
/home/rsignell/epd-7.2-1/lib/python2.7/site-packages/netcdftime.pyc in __init__(self, unit_string, calendar)
607 else:
608 raise ValueError("calendar must be one of %s, got '%s'" % (str(_calendars),calendar))
--> 609 units, tzoffset, self.origin = _dateparse(unit_string)
610 self.tzoffset = tzoffset # time zone offset in minutes
611 self.units = units
/home/rsignell/epd-7.2-1/lib/python2.7/site-packages/netcdftime.pyc in _dateparse(timestr)
466 # parse the date string.
467 n = timestr.find('since')+6
--> 468 year,month,day,hour,minute,second,utc_offset = _parse_date(timestr[n:])
469 return units, utc_offset, datetime(year, month, day, hour, minute, second)
470
/home/rsignell/epd-7.2-1/lib/python2.7/site-packages/netcdftime.pyc in _parse_date(datestring)
823 #else:
824 # groups["fraction"] = int(float("0.%s" % groups["fraction"]) * 1e6)
--> 825 return int(groups["year"]), int(groups["month"]), int(groups["day"]),\
826 int(groups["hour"]), int(groups["minute"]), int(groups["second"]),\
827 tzoffset_mins
TypeError: int() argument must be a string or a number, not 'NoneType'