def latlon_to_grid(latlon):
 from MAVProxy.modules.lib.ANUGA import redfearn
 (zone, easting, northing) = redfearn.redfearn(latlon[0], latlon[1])
 if (latlon[0] < 0):
  hemisphere = 'S'
 else:
  hemisphere = 'N'
 return UTMGrid(zone, easting, northing, hemisphere=hemisphere)

def latlon_to_grid ( latlon ) : from MAVProxy . modules . lib . ANUGA import redfearn ( zone , easting , northing ) = redfearn . redfearn ( latlon [ 0 ] , latlon [ 1 ] ) if ( latlon [ 0 ] < 0 ) : hemisphere = 'S' else : hemisphere = 'N' return UTMGrid ( zone , easting , northing , hemisphere = hemisphere )
convert to grid reference .