This code package for automated ambiguity resolution of vector magnetic field data is loosely based on the Minimum Energy ambiguity resolution method described by Metcalf (1994, Solar Phys., 155, 235). In this implementation, simulated annealing to find the global minimum to the function E = |div B| + |J_z| where the vertical derivative in the divergence term is approximated by the vertical derivative of the potential field with the observed line of sight component on the boundary.
ME0 Ambiguity Resolution Code (Version 1.1) This version, written in Fortran 77, has been tested extensively. It is only designed to work in planar geometry.
ME0 Ambiguity Resolution Code (Version 2.0) This version, written in Fortran 90, has not been tested extensively. It includes an option for spherical geometry. A variant of this code has been implemented for use in the SDO/HMI pipeline.