A method for automatic scaling of F1 critical frequencies from ionograms