CCD Photometry with Mathematica

Introduction Reduction Conversions Dates Display Image Headers Image Load Image Save Photometry

Table of Contents

CCDPhotometry`Headers`

This package contains functions for extracting information from FITS image headers.

FormBox[RowBox[{{, {, Header[imobj], ,, Cell[Returns the full contents of the header data fr ... [hours]], , , Cell[BoxData[minutes]], , , Cell[BoxData[seconds]], }.}], Text], }, }}], TextForm]

FormBox[RowBox[{{, {, ImageDEC[imobj], ,, Cell[TextData[{Returns the declination value conta ... egrees]], , , Cell[BoxData[minutes]], , , Cell[BoxData[seconds]], }.}], Text], }, }}], TextForm]

Extracting header information

This loads the package

In[1]:=

Needs["CCDPhotometry`Headers`"]

A FITS image is needed

In[2]:=

Needs["CCDPhotometry`ImageLoad`"]

In[3]:=

data = ImageLoad[ToFileName["CCDPhotometry", "11080154.fit"]]

Out[3]=

⁃FITSObject⁃

Here are the entire contents of the above specified FITS image.

In[4]:=

Header[data]

Out[4]=

{SIMPLE {ValueTrue, CommentFITS STANDARD}, BITPIX {Value> ... ;             , END {}}

All of the contents of a FITS header, field names and values, are stored as strings.

Here is the value of a specific filed in the above header.

In[5]:=

HeaderField[data, "FILTER"]

Out[5]=

{Value'V                 ', Commentfilter position}

A few functions are available that attempt to process the string contents and return numerical results.

option name default value
DateTimeParsingFunctions {dateparser, timeparser} a list containing pure functions for parsing the date and time fields, respectively.

Options for parsing dates and times

Here is start time of the image acquisition.

In[6]:=

ImageTime[data]

Out[6]=

{1997, 11, 8, 5, 23, 6.}

option name default values
ParsingFunction RAParsingFunction a function that parses the RA field of the FITS image object.
DECParsingFunction a function that parses the DEC field of the FITS image object.

Option for parsing right ascension and declination

Here is right ascension parameter of the telescope for the above image.

In[7]:=

ImageRA[data]

Out[7]=

{23, 23, 8.8}

Here is declination parameter of the telescope for the above image.

In[8]:=

ImageDEC[data]

Out[8]=

{18, 24, 59.}

HOME


Created by Mathematica  (October 24, 2004) Valid XHTML 1.1!