Contents 

Mira Pro x64
Contents
New Features
Mira Documentation and Help System
About this Document
Tech Support
Getting Started
Glossary of Terms
Selecting Source Images
Setting Application Properties
Command Dialogs
Screen Capture
Multi Tab Interface
Mira's Special Folders
Changing the GUI Theme
Critical Concepts
Tip of the Day
Tutorials
Overview
Displaying an Image
Displaying an Image Set
Creating Plots from Images
Introduction to Image Registration
Making a Scatter Plot of Measurements
Using FITS Keywords to Analyze Image Data
Introduction to Aperture Photometry
Doing Time Series Photometry
Introduction to File Event Scripting
Cleaning Artifacts from an Image Set
Introduction to Source Extraction
Introduction to Astrometric Calibration
Examples
File Lists
Creating File Lists
Opening Files from File Lists
Images
The Boost Transfer Function Option
Image Rotation
Adding Labels to an Image
Editing the FITS Header
Image Registration
Plots
Plot Windows
Plotting Examples
Column Plot
Row Plot
Line Profile Plot
Plotting an Averaged Line
Changing Plot Series Attributes
Plotting in World Coordinates
Comparison of Histogram Preferences
Contour Plotting Smoothing
3-D Plots
3-D Pixel Representations
3-D Z-Scaling
Measurements
Distance and Angle
Selecting Cells in a Grid Control
Tutorial: Making a Scatter Plot of Measurements
Fixing Header Problems in Photometric Data
Importing a Photometry Catalog
FITS Format
FITS Format Overview
Open FITS File
FITS File Summary
FITS Keywords
FITS Header Pane
Add Metadata
View and Search FITS Header
FITS Header Editor
FITS Image Orientation
World Coordinate System
FITS Image Orientation
Image Sets
Overview
Image Set Options
Image Set Properties
Image Set Toolbar
Image Set Applications
Image Sets Menu
Duplicating an Image Set
File Lists
Overview
Creating file lists
Editing file lists
Opening files from file lists
Opening Images
Overview
File opening and saving commands
Opening image files
Open FITS File
Using Drag & Drop
Creating an image catalog
Duplicating an Image
Duplicating an Image Set
Opening files from file Lists
Using File Opening Plug-ins
Selecting Source Images
Importing a Binary Image
Importing a Text Image
Saving Images
Saving a single image
Saving an image set
Saving all image set members
Saving an image set to a Folder
Saving an image set with a filename Suffix
Saving an image set to a file list
Exporting as a binary image
Exporting as a text image
Image Cursor
Overview
Image Cursor Properties
Setting default and local properties
Image Window Properties
Image Plot Properties
Histogram Properties
Centroid Properties
FWHM Preferences
Radial Profile Properties
Palette Properties
Transfer Function Properties
General Properties
Selecting source images for commands
Overview
Image Types
Mira Pixel Types
Image Display
Displaying Images
Image Windows
Image Bar
Set X-Axis Linear Format
Set Y-Axis Linear Format
Set Pixel Value Format
Animation Bar
Magnifying the Image
Palettes
Overview
Image Palettes
Palette Pane
Palette Properties
Using the Palette Property Trackbars
Rubber Banding the Palette Graph
Importing Palettes
Transfer Functions
Overview
Transfer Function Properties dialog
Choosing Transfer Function Properties
Using the Boost Transfer Function Option
Default Transfer Function Properties
Transfer Function Pane
Transfer Function Popup Menus
Capture Cursor to TF command
User Interface
User Interface Overview
Working with Toolbars
Initializing Toolbars and Docking Panes
Docking Panes
Reset Bars and Menus
Reset Docking Panes
Command Dialogs
Command Toolbars
Main Message Pane
Image Cursor Toolbar
Image Keys Pane
Status Bar
Accelerator Keys
Profile Control
Status Bar
Save Window Position
GUI Theme
Changing the GUI theme
Context Menus
Image Context Menu
Image Context Menu for an image set
Plot Context Menu
3-D Plot Context Menu
Grid Context Menu
Dialog Styles
Command Dialogs
Dialog Buttons
Docking Panes
Overview of Docking Panes
Docking Panes Toolbar
Image Bar
Animation Bar
Image Keys Pane
Measurement Panes
Script Manager Pane
Initializing Toolbars and Docking Panes
Reset Docking Panes
Property Profiles for Commands
Overview
Profile Control
Grid Controls
Overview
Report Windows
Grid Context Menu
Measurement Panes
Table Properties
Overview
Table Appearance Properties
Table Printing Properties
Menus
Tear-off menus
Main Context Menu
Default Menu Bar
Align Images Menu
Reset Bars and Menus
Pictures of Menus
Creating new text documents
Default File Menu
Calibration Menu
Diagnostics menu
Edit Menu
File Menu
Measure Menu
Plug-ins
File Opening Plug-ins
Image Processing Plug-ins
Toolbars
Working with Toolbars
Command Toolbars
Reset Bars and Menus
Image Keys Pane
3-D Animation Toolbar
3-D Rotation Toolbar
Cursor Tools Toolbar
Image Cursor Toolbar
Image Plot Toolbar
Image Set Toolbar
Image Tools Toolbar
Image Bar
Calibration Tools Toolbar
Interactive Repair Toolbar
Main Toolbar
Measurements Toolbar
Mira Windows
Image Windows
Plot Windows
Grid Controls
Image Windows
Overview
Animation Pane
Image Bar
Image Set Toolbar
Image Window Keystroke Commands
Image Keys Pane
Adjusting the Image Cursor
Command Modes
Cursor Command Modes
Roam Mode
Cursor Mode
Plot Windows
Overview
Plotting Images and Data
Creating a Plot from Table Data
Plotting Examples
Plot Bar
Plot Animation Bar
Plot Properties
Plot Series Pane
Plot Marker Properties
Image Plot Properties
Save Window Position
Chart Windows
Chart Windows
Plotting Images and Data
Creating a Chart from Table Data
Chart Command Menu
Chart Axis Limits
Chart Properties Pane
Chart Series Properties
Chart Titles
Chart Legend Properties
Save Window Position
3-D Plot Windows
Overview
3-D Animation Toolbar
3-D Rotation Toolbar
3-D Drawing Attributes
3-D Light Source Dialog
3-D Viewpoint Dialog
3-D Window Dialog
Save Window Position
Report Windows
Overview
Grid Controls
Report Commands
Report Window Menu
Save Window Position
Grid Properties
Overview
Table Appearance Properties
Table Printing Properties
Text Editor Windows
Overview
Creating a new text document
Text Editor Edit Menu
Text Editor View Menu
Save Window Position
Script Editor Window
Script Editor Toolbar
Script Editor Context Menu
Script Editor View Menu
Save Window Position
File Open/Save Dialog
Open Command
Opening & Saving Files
Opening Files from File Lists
Working with FITS Format
Overview
Open FITS File
FITS File Summary
FITS Format Overview
FITS keywords
View and Search FITS Header
FITS Header Editor
Pixel Scale Sensitive FITS Keywords
FITS Header Pane
FITS image orientation
List COMMENT Keywords
List HISTORY Keywords
List Statistics Keywords
List WCS keywords
MIRAPROC keyword
Editing the FITS header
Modifying keywords
Adding metadata at file open or file save
Creating an image list from keywords
Searching images for keyword values
Fixing Header Problems in Photometric Data
Image Information Editor (RGB images)
Coordinate Systems
Overview
Image Coordinate System
Pixel Coordinate Definition
Subpixel Coordinate Definition
World Coordinate System
Image Display Orientation
FITS Image Orientation
Image Coordinate Display
Coordinate Commands
Go to cursor coordinates
Go To Object
Astrometric Calibration
Set an arcsecond scale
Set an equatorial scale
Set a linear scale
Set independent linear scales
Set linear world coordinate units
Calibrate a linear scale
Setting brightness units
Alignment Commands
High precision image registration
Align on Object
Align on Point
Align by WCS
Coordinate Readout
Set X-Axis Linear Format
Set Y-Axis Linear Format
Set Pixel Value Format
Select Image Properties
World Coordinate System
Overview
World Coordinate System Keywords
Deleting the WCS
Astrometric Calibration
Overview
Tutorial
Entering coordinate data
Changing reference point data
Calibration Preferences dialog
Plate Solution Strategy
Other preferences
Calibrating Images
Overview
Selecting Source Images
Creating Synthetic Images
Trimming an image section
Adding metadata at File Open or Save
Modifying header keywords
File Event Scripting
Astrometric Calibration
Express Image Calibration
Express Image Calibration
Bias Correction Properties
Dark Correction Properties
Flat Correction Properties
Cosmetic Correction Properties
Creating a Master Bias
Create Master Bias
Image Combining Properties
Creating a Master Dark
Create Master Dark
Image Combining Properties
Create Master Flat
Create Master Flat
Flat Frame Selection Criteria
Image Combining Properties
Create Illumination Flat
Create Illumination Flat
Flat Correction Properties
Image Combining Properties
Create Pixel Flat
Create Pixel Flat
Flat Correction Properties
Image Combining Properties
Cosmetic Repairs
Creating a Pixel Mask
Applying a Pixel Mask
Clip Pixel Values
Clip High Values
Clip Low Values
Editing and Creating a Blemish Mask
Applying a Blemish Mask
Filtering Images
Overview
Removing Extreme Pixel Values
Cosmic Ray Filter
De-speckle Filter command
Clip High Values
Clip Low Values
Rank Filtering
Rank Filter
Median Filter
Minimum Filter
Maximum Filter
Smoothing Image Details
Rectangle Filter
Elliptical Filter
Binomial Filter
Gaussian Filter
Block Average Filter
Block Sum Filter
Sharpening Image Details
High Pass Filter
Unsharp Mask
Maximum Entropy command
Maximum Entropy example
Enhancing Edges
Gradient Filter
Rotational Gradient Filter
Rotational Gradient example
Laplacian Filter
Miscellaneous Kernel Filters
Custom Filter Kernel
3x3 Custom Filter command
Measuring Images
Overview
Measurement Panes
Image Measurements Toolbar
Image Cursor Toolbar
Image Keys Pane
Moving the image cursor to a coordinate
Setting Application Properties
Testing using synthetic images
Setting statistical estimator properties
Opening a table in Microsoft Excel
Tutorial: Working with Measurements in a Grid
Angle Measurements
Command overview
Marker properties
Aperture Photometry
Overview of aperture photometry
Apphot Pane for photometry results
Tutorial: Introduction to Aperture Photometry
Tutorial: Doing Time Series Photometry
How Magnitude and Errors are calculated
Editing target data and standard star data
Automatic detection of objects
Plotting a light curve
Kwee - van Woerden
Setting marker attributes
Preparing a report for the AAVSO
Setting the aperture size and shape
Setting photometry keywords
Fixing header problems in photometric data
Importing a photometry catalog
Calculate Julian Date
Definitions of measurements
Definitions of errors
Understanding signal to noise ratio
Aperture Photometry Toolbar
Aperture Photometry Properties
Aperture Photometry Properties dialog
Point Markers
Calibration Results
Image Information
Photometry Keywords
AAVSO Reporting
Other Properties
Measurement Output
Astrometric Calibration
Overview
Tutorial
Plate Solution Strategy
Centroid Measurements
Command overview
Centroid properties
Distance & Angle Measurements
Command overview
Measuring Distance and Angle
Example
Angle Measurement Definition
FWHM Measurements
Command overview
FWHM properties
PSF Fit Properties
Labeling Images
Overview
Label Properties
Examples
Line Measurements
Command overview
Marker properties
Plot Line Measurements
Command overview
Marker Properties
Plot Point Measurements
Plot Point Measurements
Marker Properties
Shape Properties
Point Measurements
Command overview
Marker properties
Region Measurements
Command overview
Marker properties
Region properties
Statistics Measurements
Command overview
Statistics Measurements
Statistics properties
List Statistics Keywords
Remove Statistics Keywords
Marker Properties
Overview
Drawing Properties
Centroid Properties
Region Properties
Copying & Pasting Markers
Copy Markers
Paste Markers
Scatter Plots
Scatter Plot command
Tutorial: Making a Scatter Plot of Measurements
Selecting Cells in a Grid Control
Point Sampling
Overview
Pixel Table Pane
Viewing and editing pixel values
Plotting Images and Data
Overview
Plot Bar Pane
Creating a Chart from Table Data
Creating a Plot from Table Data
Examples of plot types
Examples of row plots
Setting Application Properties
Horizontal Slice Plot
Vertical Slice Plot
Stack Plots at Right
Reset Stacked Plot Origin
Plot Windows
Overview
Creating a Plot from Table Data
Plot Bar
Plot Animation Bar
Plot Point Data Pane
Plot Keys Pane
Plot Context Menu
Set Plot X-Axis Format
Set Plot Y-Axis Format
Plot Series Data
Plot Measurements
Go to Source Image
Plot Averaging Modes
Saving a plot as a text file
Save Window Position
Stack Plots at Right
Reset Stacked Plot Origin
Chart Windows
Chart Windows
Creating a Chart from Table Data
Chart Command Menu
Chart Axis Limits
Chart Properties Pane
Chart Series Properties
Chart Titles
Chart Legend Properties
Save Window Position
Working with Plot Series
Plot Series Pane command
Example: Changing Plot Series Properties
Viewing Plot Series Data
Default Plot Series Properties
Overplotting & Animating
Go to Source Image
Copying & pasting plot series
Default Marker Properties
Setting marker attributes before the plot
1-D Curve Fitting
Overview
1-D Fit Toolbar
1-D Fit Properties
1-D Fit Menu Commands
Sigma Clipping the 1-D Fit
Using 1-D Fit Coefficient Forcing
Using 1-D Point Selection Regions
Using Point Deletion in the 1-D Fit
Using Series Selection for the 1-D Fit
1-D Fit Proeprties
Sigma Clipping Page
Set Coefs Page
Drawing Page
Column and Row Profile Plots
Column profile plots
Making a column profile plot
Row profile plots
Making a row profile plot
Plotting an averaged line
Overview
Plot Averaging Modes
Changing the Plot Appearance
Changing Plot Attributes
The Plot Attributes dialog
Using a dialog shortcut
X Axis Properties
Y Axis Properties
Plot Labels
Frame Properties
Selecting a Coordinate System
Plot coordinate systems
Using World Coordinates
Comparison of coordinate systems
Line profile plots
Command
Creating a Line Profile plot
Preferences
Setting Line Profile preferences
Centroid Preferences
Marker Properties
Radial profile plots
Making a radial profile plot
Radial Profile Properties
PSF Fit Properties
Histogram plots
Histogram plot of entire image
Histogram plot at the image cursor
Histogram Properties
Comparison of Histogram Preferences
Making a Bit Histogram plot
Plot Measurements
Overview
Plot Point Measurements
Plot Line Measurements
Calculating Plot Statistics
Statistics Measurements
Statistics Properties
Mark Statistic
Plot Marker Properties
Plot Notes Pane
Scatter plots
Scatter Plot command
Tutorial: Making a Scatter Plot of Measurements
Selecting Cells in a Grid Control
Pixel Series plots
Plotting a value through an image set
3-D plots
3-D Surface Plot command
3-D Plot Type Examples
3-D Z-Scaling Examples
Preferences
3-D Viewpoint
3-D Window Dialog
3-D Drawing Attributes
3-D Light Source
Surface Plot Z Limits
Contour plots
Contour Plot command
Interactive Contour Plotting Toolbar
Contour Plot Properties
Contour Drawing Properties
Interactive Contour Plot command
Interactive Contour Properties
Contour Plot Smoothing
Copy & Paste
Example
Copying plot data to the clipboard
Pasting plots from the clipboard
Copying the window bitmap
Printing Plots
Overview
Properties
Overview
Printing Placement Properties
Printing Overlay Properties
Printing Heading Properties
Printing Text Properties
Window Properties
Plot Properties
Plot Series Pane
Processing Images
Overview
Command Dialogs
Selecting Source Images
Image Types
Image Region Commands
Testing calibration strategies using synthetic images
Image Keys Pane
File Event Scripting
Adding metadata at File Open or Save
Creating an image list from keywords
Searching images for keyword values
Cosmetic Repairs
Interactive Repair
Interactive Repair Properties
Removing cosmic rays from an image set
Blemish Masks
Creating and editing a blemish mask
Applying a blemish mask
Pixel Masks
Creating a pixel mask from an image
Editing a pixel mask
Applying a pixel mask
Clipping extreme pixel values
Clip High Values
Clip Low Values
Clip Pixel Values
Removing Stars from Images
Overview
Changing the aperture properties
Viewing data for template samples
Properties
Overview
Markers
Background
Sample Data
Combining Images
Image Combining Properties
Image Combining Methods
Combine Image Set
Combine Files
Normalize Image
Setting normalization preferences
Region Statistics
Aligning Images
Overview
Aligning on a point
Aligning on an extended object
Aligning using the WCS calibration
High Precision Registration command
Overview
Tutorial: Introduction to Image Registration
Example using Point Tracking
Image Registration Properties
Image Registration Properties Dialog
Resampling
Background
Image Registration Residuals
Marker Properties
Resampling Properties
Tracking Properties
Image Region Statistics
Overview
Estimators
Editing & Copying
Overview
Duplicating to a new window
Emptying the Clipboard
Math Commands
Overview
Arithmetic Operations
Change Pixel Type
Combine Image Set
Fit Background
Image Arithmetic
Normalize Image
Region Statistics
Value Arithmetic
Using Plug-ins
Geometry Commands
Overview
Rotating Images
Rotation Menu
Affine Transformation
Expand Image
Imbed Image
Mirror
Reverse
Rotate
Rotate by angle (from Image Toolbar)
Scale
Shift
Transpose
Cropping to specified bounds
Cropping to the Image Cursor
Cropping by a rectangle
Align Horizontal
Align Vertical
Working with RGB images
Overview
Applying a palette to an RGB image
Merging color channels into an RGB Image
Merging color channels into an LRGB Image
Converting intensity to RGB
Converting intensity to Grayscale
Converting RGB to 16-bit Luminance
Converting to RGB to 8-bit Luminance
Removing color noise
Extracting channels from an RGB image
Commands for Intensity data
Extracting byte planes
Converting the data type
Converting to RGB
Undo
Using undo
Repairing Artefacts and Cosmetic Defects
Overview of Methods
Cleaning artefacts from an image set
Interactively Repairing Defects
Evaluating repair techniques using synthetic images
Blemish Masks
Creating and editing a blemish mask
Applying a Blemish Mask
Pixel Masks
Creating a Pixel Mask
Editing a Pixel Mask
Applying a Pixel Mask
Removing Stars from Images
Overview
Changing the aperture properties
Viewing data for template samples
Properties
Overview
Point Properties
Other Properties
Extracting Sources from Images
Using the MExtract Module
Definitions of Extracted Properties
Running the Pipeline
Tutorial
Preferences
Properties for the Source Extraction Tutorial
Source Extraction dialog
Procedure page
Background page
Detect page
Filter page
Match page
Difference page
Post Process page
Post Processing Options
Centroid Properties (Source Extraction)
FWHM Properties (Source Extraction)
PSF Fit Properties
Aperture Photometry Properties
Variability Properties
Image Diagnostics and Calculations
Overview
Create Synthetic Image
Bit Histogram Plot
Calculate Airmass
Calculate Gain
Calculate Image Scale
Calculate Julian Date
Calculate Readout Noise
Mira Project Interface
Overview
Mira Project Manager
Mira Project Selector
Mira Project Interface Commands
Mira Scripting Interface
Overview
Script Editor Window
Script Manager Pane
Top-level Script Manager
Editing script keywords
Related Topics
Script Editor Toolbar
Script Editor View Menu
Script Editor Context Menu
Mira Project Interface
File Event Scripting
File Event Scripting
Tutorial: Introduction to File Event Scripting

Mira Pro x64 User's Guide

Prev Page Next Page

FITS Format Overview


FITS is a digital data format developed for storing and transporting astronomical data in form of images and tables. The acronym FITS stands for "Flexible Image Transport System", which was developed in the 1970's at Kitt Peak National Observatory and was standardized in 1981. It has been maintained by NASA for more than 2 decades. A FITS format file consists of one of more Header-Data Units, with each "HDU" consisting of an ASCII text "header" containing metadata, followed by a multi-dimensional array that may contain pixel data for an image, or table data in the form of ASCII text or binary data. The FITS header and data array adhere to a rigid structure defined in the standard. It is critical to note that FITS is a data format, not an image format, as it was originally designed to hold one HDU of image data. It was later extended to hold multiple HDUs which may also hold table data.

The components of the Header-Data Unit ("HDU") depend on the type of data it contains. For images, the data array contains the image pixels. For an image, the header contains image metadata that describe the array, such as the number of rows and columns, and descriptive information such as the exposure time, date and time the image was acquired, user comments, etc. The HDU length is an integral multiple of 2880 bytes, and the header and data array must each be padded to a total length that is an integral multiple of 2880 bytes. Within the header, each 2880 byte "record" consists of 36 "card images" of 80 bytes each (originally based on 80-column Hollerith punch cards when FITS was developed). Each card image contains one item of metadata as an 8-character keyword, like NAXIS1, followed by a 72 character field that may contain a value, such as "512", and an optional comment, such as "number of image columns". The final keyword of the header is the END keyword, which is blank padded to the end of the 2880-byte record.

All characters in the FITS header must be in the range of ASCII codes 32 through 126 (hex 0x20 through 0x7e). Mira automatically scans the header and replaces characters outside this range.

Header Contents

The FITS standard refers to each 80-character line of the header as a card image. In this Use's Guide, a card image is termed a keyword line. Each header line consists of the following components:

  • A uppercase keyword up to 8 characters long, starting in column 1, that identifies the information contained in the card image.

  • A value, sometimes called the keyword value, beginning in column 10.

  • An optional slash in column 32 that separates the value from an optional comment.

  • An optional comment, in columns 33 though 80, that describes the keyword.

There are other details relating to issues such as the range of columns used for specific types of keyword values, but these will not be addressed here. A typical keyword line looks similar to the following one:

NAXIS1  =                 512 / number of image columns

Beyond the last non-blank character, the remainder of the 80-byte line is padded with blanks (ASCII code 32, or hex 20). The format of the NAXIS keyword is typical of all keyword lines.

The keyword name, including spaces, is exactly 8 bytes long and is left justified with the 80-character keyword line. Except for HISTORY, COMMENT, and <blank> keywords, an equals sign, =, follows in column 9. An optional slash may be placed in column 32. Between columns 10 and 32 is placed the value of the keyword, in this example, the number 512. Notice that the value 512 is right justified with one blank space after. Right justification to column 30 is required for integer, real, and character values, although this detail is sometimes missed by some software authors. Keywords with a character string value, must be left justified and enclosed within single quotation marks (') beginning in column 10. Character value keywords such as SIMPLE do not use quotation marks, but instead use a single character as T (true) or F (false).

Examples of Proper Format

The Basic FITS Header

The 4 mandatory keywords at the beginning of every FITS file are, in order, SIMPLE,BITPIX, NAXIS, and END. The first four keywords define a basic image and the END keyword signifies the end of the header. Note that a FITS file may contain more than one HDU and that the second and higher HDUs use theXTENSION keyword in place of the SIMPLE keyword.

A classic FITS file has one HDU and contains a 2-dimensional image. It has a header like the following:

SIMPLE  =                   T

BITPIX  =                 -32

NAXIS   =                   2

NAXIS1  =                 512

NAXIS2  =                 512

BSCALE  =            1.512E02 /

DATE-OBS= '1999-21-05T05:20:45.005'

TIME-OBS= '05:20:45.005'      /

EXPTIME =               500.0

MIRATYPE= '16 bit unsigned'   /

OBJECT  = 'This string requires quotes'

HISTORY   This string uses no quotes

COMMENT   This string uses no quotes

END

The NAXIS1 keyword used in the example is an essential FITS keyword because it specifies the image dimension in the direction of the most rapidly varying subscript. The term most rapidly varying subscript is intended for those who write computer programs to read and write FITS format. For a 2-D image, the value of NAXIS1 corresponds to the number of columns in the image, which is 512 columns in the example. The number of image dimensions is specified using the NAXIS keyword, and this would have a value of either 1 or 2 for classic FITS files. If the image has 2 dimensions, an NAXIS2 keyword must exist in the header. Note that FITS images may have an NAXIS value between 0 and 999.

FITS File Types

Classic FITS Files

The classic FITS file contains a 2-dimensional image array. Such a file contains the keywordSIMPLE = T at its beginning and has NAXIS = 2. This type of file contains one Header-Data Unit, (HDU) consisting of a FITS header followed by a two-dimensional pixel array.

FITS Extension Files

Mira Pro x64 can also open 2-dimensional image arrays from images containing more than one Header-Data Unit (HDU). In this type of FITS file, the data portion of the HDU is optional, so the HDU may haveNAXIS = 0. A FITS file may have a PRIMARY HDU that contains only a header but no data array; this is identified by NAXIS= 0.

The first HDU of a FITS file always has SIMPLE = T. The additional keyword EXTEND may also be present in the first HDU to indicate that the file contains additional HDU's. Additional HDU's must use the keyword XTENSION to describe the type of information the HDU contains, with one of the values 'IMAGE','TABLE', or 'BINTABLE'. Mira Pro x64 version 8 supports only'IMAGE' type extensions. See the EXTEND and XTENSION keywords in the FITS Keywords topic. Mira handles FITS files and FITS images in the following ways:

  • Classic FITS images (images with NAXIS = 2 and no extensions) and File Lists containing them may be opened using the standard Open command.

  • FITS Extension files, classic FITS files, and File Lists containing them may be opened using the Open FITS File command.

  • Files with a PRIMARY HDU (NAXIS= 0), IMAGE type extensions, and NAXIS> 2 are opened into an Image Window by separating the components into an Image Set containing images with NAXIS = 2.

  • A dimensionless PRIMARY header havingNAXIS = 0 is opened into the FITS Header Viewer.

  • After a FITS Extension image is opened into an Image Set using Open FITS file, you may save individual HDUs using the Save,Save As, and Save Image Set commands.

  • An Image Set may be saved to a FITS Extension file using the Save FITS Extension File command.

  • If the second or higher HDU includes the keyword INHERIT = T, then the header of the extension integrates the header of the first, orPRIMARY HDU having NAXIS = 0.

FITS Headers for XTENSION HDUs

A FITS file with more than one HDU is known as an Extension file. The first HDU is identified by the SIMPLE keyword in the first card image. Each additional HDU is a FITS XTENSION HDU and has some differences with the first HDU. Whereas the first (or only) HDU begins with theSIMPLE keyword, the second and higher HDUs begin with the XTENSION keyword. There may also be other keywords present that describe the extension, such asEXTNAME and EXTTYPE, but these are not required. TheEXTNAME keyword is used for the Name column entry in theFITS File Summary window shown below.

An XTENSION Header looks like the following:

XTENSION= 'IMAGE'                   

BITPIX  =                 -32

NAXIS   =                   2

NAXIS1  =                 512

NAXIS2  =                 512

BSCALE  =            1.512E02 /

DATE-OBS= '1999-21-05T05:20:45.005'

TIME-OBS= '05:20:45.005'      /

EXPTIME =               500.0

MIRATYPE= '16 bit unsigned'   /

OBJECT  = 'This string requires quotes'

HISTORY   This string uses no quotes

COMMENT   This string uses no quotes

END

Selecting Multiple HDU's and Image Planes

When a FITS Extension file is selected for opening, Mira opens a secondary window listing a summary of extension details. This window also opens when any HDU has NAXIS > 2 to permit 2-axis planes to be selected for opening. For details, see the FITS File Summary topic.

Related Topics

Contents

Image Windows

Working with FITS Format

FITS File Summary

Open FITS File

View and Search FITS Header

Save and Save as Commands

FITS Keywords

Pixel Scale Sensitive FITS Keywords

FITS Header Editor

FITS Header Pane

Modify Keywords

Add Metadata


Mira Pro x64 8.83 User's Guide, Copyright Ⓒ 2026 Mirametrics, Inc. All Rights Reserved.