This class describes methods to access and manipulate the header for a FITS HDU. This class does not include code specific to particular types of HDU.
The following tables list the members exposed by Header.
Public Constructors
Public Properties
| Name | Description | |
|---|---|---|
|
Bitpix | Set the BITPIX value for the header. |
|
DataSize | Return the size of the data including any needed padding. |
|
FileOffset | Get the offset of this header |
|
Naxes | Set the value of the NAXIS keyword (The dimensionality of the data) |
|
NumberOfCards | Find the number of cards in the header |
|
Rewriteable | Can the header be rewritten without rewriting the entire file? |
|
Simple | Set the SIMPLE keyword to the given value. |
|
Size | Get the size of the header in bytes |
|
Xtension | Set the XTENSION keyword to the given value. "IMAGE" and "BINTABLE" are supported. |
Public Methods
| Name | Description | |
|---|---|---|
|
AddCard | Adds card to the end of the HeaderCard list |
|
AddComment | Creates a new HeaderCard to accommodate comment, and adds the new card to the end of the HeaderCard list |
|
AddHistory | Creates a new HeaderCard to accommodate history, and adds the new card to the end of the HeaderCard list |
|
AddLine | Overloaded. Add a card image to the header. |
|
AddValue | Overloaded. Creates a new HeaderCard to accommodate key, val, and comment, and adds the new card to the end of the HeaderCard list |
|
ContainsKey | |
|
DeleteKey | Delete the card associated with the given key. Nothing occurs if the key is not found. |
|
DumpHeader | Print the header to a given stream. |
|
Equals | Determines whether the specified |
|
FindCard | Find the card associated with a given key. If found this sets the mark to the card, otherwise it unsets the mark. |
|
GetBooleanValue | Overloaded. Get the boolean value associated with the given key. |
|
GetCard | Get the n'th card image in the header |
|
GetCursor | Get a cursor over the header cards |
|
GetDoubleValue | Overloaded. Get the double value associated with the given key. |
|
GetEnumerator | Gets cursor |
|
GetFloatValue | Overloaded. Get the float value associated with the given key. |
|
GetHashCode | Serves as a hash function for a particular type. |
|
GetIntValue | Overloaded. Get the int value associated with the given key. |
|
GetLongValue | Overloaded. Get the long value associated with the given key. |
|
GetStringValue | Get the String value associated with the given key. |
|
GetType | Gets the |
|
InsertCard | Overloaded. Inserts card in front of posCard in the HeaderCard list. If posCard is null, card is added to the end of the list. |
|
InsertComment | Overloaded. Creates a new HeaderCard to accommodate comment, and inserts the new HeaderCard in front of posCard in the HeaderCard list. If posCard is null, the new HeaderCard is added to the end of the list. |
|
InsertCommentStyle | Add a line to the header using the COMMENT style, i.e., no '=' in column 9. |
|
InsertHistory | Overloaded. Creates a new HeaderCard to accommodate comment, and inserts the new HeaderCard in front of posCard in the HeaderCard list. If posCard is null, the new HeaderCard is added to the end of the list. |
|
InsertValue | Overloaded. Creates a new HeaderCard to accommodate key, val, and comment, and inserts the new HeaderCard in front of posCard in the HeaderCard list. If posCard is null, the new HeaderCard is added to the end of the list. |
|
MakeData | Create the data element corresponding to the current header |
|
NextCard | Get the next card in the Header using the current cursor |
|
Read | Read a stream for header data. |
|
ReadHeader | Create a header by reading the information from the input stream. |
|
RemoveCard | Overloaded. Removes card from the HeaderCard list |
|
Rewrite | Rewrite the header. |
|
SetNaxis | Set the dimension for a given axis. |
|
ToString | Returns a |
|
UpdateLine | Update a line in the header. |
|
UpdateLines | Overwrite the lines in the header. Add the new PHDU header to the current one. If keywords appear twice, the new value and comment overwrite the current contents. |
|
Write | Write the current header (including any needed padding) to the output stream. |
Protected Methods
| Name | Description | |
|---|---|---|
|
Finalize | Allows an |
|
MemberwiseClone | Creates a shallow copy of the current |