added routine for scaling magnetograms for display