work on flux-gate analysis script.