in progress
not working.  but changes made there may be useful.  when mag_spectrum_fitting.py is completed, can delete this program.
in progress.  It probably still works.
in progress.  probably still works.
in progress.  probably still works.