summaryrefslogtreecommitdiffstats
path: root/funtools/fitsy/doc/basicval.html
diff options
context:
space:
mode:
Diffstat (limited to 'funtools/fitsy/doc/basicval.html')
-rw-r--r--funtools/fitsy/doc/basicval.html77
1 files changed, 77 insertions, 0 deletions
diff --git a/funtools/fitsy/doc/basicval.html b/funtools/fitsy/doc/basicval.html
new file mode 100644
index 0000000..d849b10
--- /dev/null
+++ b/funtools/fitsy/doc/basicval.html
@@ -0,0 +1,77 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.2//EN">
+<HTML>
+<HEAD>
+<p>
+<!-- pnuts --> <a href="headfile.html">[Previous]</a> <a href="imageval.html">[Next]</a> <a href="fitsy.html">[Up]</a> <a href="../mmtilib.html">[Top]</a>
+<META NAME="generator" CONTENT="txt2html v1.3">
+</HEAD>
+<BODY>
+
+<A NAME="section-1.1.1"><H3>Basic FITS Values</H3></A>
+
+
+<P>
+ When a FITS header is scanned in memory or read from a file several
+ basic values are retrieved from the header and stored in the <B>FITSHead</B>
+ or <B>FITSBasic</B> structures. This structure may be accesed with the following
+ macros:
+
+<PRE>
+ #define <B>ft_ncards</B>(fits) ( fits-&gt;ncard )
+ #define <B>ft_cardnth</B>(fits, nth) ( ( nth &lt;= fits-&gt;ncard ) \
+ ? &amp;fits-&gt;cards[nth-1] \
+ : NULL )
+
+ #define <B>ft_last</B>(fits) ft_cardnth(fits, fits-&gt;ncard)
+
+ #define <B>ft_swapped</B>() (*(short *)"001000" &amp; 0x0001)
+ #define <B>ft_seek</B>(fits) ( fits-&gt;seek )
+
+ typedef struct <B>FITSHead</B> {
+ FITSCard cards;
+ FITSCard *index;
+ FITSCard last;
+ int acard;
+ int ncard;
+
+ int mem;
+ int seek;
+ int data;
+
+ FITSBasic basic;
+ FITSImage image;
+ FITSTable table;
+ } <B>*FITSHead</B>;
+
+
+ #define <B>ft_simple</B>(fits) ( fits-&gt;basic-&gt;simple )
+ #define <B>ft_name</B>(fits) ( fits-&gt;basic-&gt;name )
+ #define <B>ft_bitpix</B>(fits) ( fits-&gt;basic-&gt;bitpix )
+ #define <B>ft_naxes</B>(fits) ( fits-&gt;basic-&gt;naxes )
+ #define <B>ft_naxis</B>(fits, i) ( fits-&gt;basic-&gt;naxis[i-1])
+ #define <B>ft_pcount</B>(fits) ( fits-&gt;basic-&gt;pcount )
+ #define <B>ft_gcount</B>(fits) ( fits-&gt;basic-&gt;gcount )
+ #define <B>ft_databytes</B>(fits) ( fits-&gt;basic-&gt;databytes)
+ #define <B>ft_databloks</B>(fits) ( fits-&gt;basic-&gt;databloks)
+
+ typedef struct <B>FITSBasic</B> {
+ int simple;
+ char *name;
+
+ int bitpix;
+ int naxes;
+ int *naxis;
+
+ int gcount;
+ int pcount;
+
+ int databytes;
+ int databloks;
+ } <B>*FITSBasic</B>;
+<P>
+</PRE>
+
+<p>
+<!-- pnuts --> <a href="headfile.html">[Previous]</a> <a href="imageval.html">[Next]</a> <a href="fitsy.html">[Up]</a> <a href="../mmtilib.html">[Top]</a>
+</BODY>
+</HTML>