NOAA Logo, NOAA Satellites and Information, National Geophysical Data Center (NGDC).


Geomag top navigation banner go to NOAA's Space Weather Now DoD World Magnetic Model Home Links and descriptions of magnetic field models and software go to the Geomagnetic Data Home go to all data and information Answers to Frequently Asked Questions Geomagnetic Data at NCEI

9. Median of Sorted Values

The program SORTVAL is designed to sort a list of unordered data values and place them in ascending size. A median value (or range), for which the number of entries with lower value are equal to the number with higher value, is determined from the ordered list. The presence of outliers in a data set are often first indicated when the median of a data set differs greatly from the mean (average) value of the set. SORTVAL is run from the computer DOS mode; simply enter the program name and touch ENTER on your keyboard. You will be asked to enter the total number of values in your list and then enter the data. For an odd number of data samples, the exact median is computed; for an even number of data samples, the boundary values for the median are found. The results of the program are displayed on your screen. However, you are given the opportunity also to have the results sent to your printer. An example screen is shown below.

Example Screen from SORTVAL

Download this program

Download Linux version with C source code

Download Windows version with C source code

Use your browser back button or the navigation bar at the top to return to the Geomagnetic Utility Programs Home.

NOAA>NESDIS>NCEI>Geomagnetism