next up previous contents index
Next: Image Data: Up: Accessing FITS Files: IDL Previous: Accessing FITS Files: IDL   Contents   Index

Primary FITS Headers:

The primary FITS header can be accessed with the function. Individual keywords can be accessed with as below:

IDL> hdr=headfits('')

IDL> print,hdr

SIMPLE  =                      T / file does conform to FITS standard


IDL> focus = sxpar(hdr,'FOCUS',count=count)     ;count returns 0 if the keyword is not found


Rotse Pager 2003-05-20