def read_curvature(filepath):
 with open(filepath, 'rb') as fobj:
  magic = _fread3(fobj)
  if (magic == 16777215):
   vnum = np.fromfile(fobj, '>i4', 3)[0]
   curv = np.fromfile(fobj, '>f4', vnum)
  else:
   vnum = magic
   _fread3(fobj)
   curv = (np.fromfile(fobj, '>i2', vnum) / 100)
  bin_curv = (1 - np.array((curv != 0), np.int))
 return bin_curv

def read_curvature ( filepath ) : with open ( filepath , 'rb' ) as fobj : magic = _fread3 ( fobj ) if ( magic == 16777215 ) : vnum = np . fromfile ( fobj , '>i4' , 3 ) [ 0 ] curv = np . fromfile ( fobj , '>f4' , vnum ) else : vnum = magic _fread3 ( fobj ) curv = ( np . fromfile ( fobj , '>i2' , vnum ) / 100 ) bin_curv = ( 1 - np . array ( ( curv != 0 ) , np . int ) ) return bin_curv
load in curavature values from the ?h .