Many of the most basic FITS values are retrieved in when a fits file is scanned in memory or read from disk.
These data structures are transfered to and from the FITS header with these routines.