A controller for a disk drive measures track misregistration, extracts
non-repeatable runout from measured track misregistration, determines one
or more components of non-repeatable runout at various radial locations
of a disk, and compares the determined components to known values at
different altitudes to determine an operating altitude of a disk drive.