summaryrefslogtreecommitdiffstats
path: root/fitsy++/hpx.h
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2020-03-21 20:29:02 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2020-03-21 20:29:02 (GMT)
commita004d413772c16e43004929efb3df2f36c53314c (patch)
treef635a49cb52ebff944062e7dd6d8833c14a0b40b /fitsy++/hpx.h
parentc8abfb35e0303f03f75d9fe74dac893b1767924c (diff)
downloadblt-a004d413772c16e43004929efb3df2f36c53314c.zip
blt-a004d413772c16e43004929efb3df2f36c53314c.tar.gz
blt-a004d413772c16e43004929efb3df2f36c53314c.tar.bz2
libfitsy++
Diffstat (limited to 'fitsy++/hpx.h')
-rw-r--r--fitsy++/hpx.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/fitsy++/hpx.h b/fitsy++/hpx.h
new file mode 100644
index 0000000..bb446b7
--- /dev/null
+++ b/fitsy++/hpx.h
@@ -0,0 +1,37 @@
+// Copyright (C) 1999-2018
+// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
+// For conditions of distribution and use, see copyright notice in "copyright"
+
+#ifndef __fitshpx_h__
+#define __fitshpx_h__
+
+#include "vector.h"
+#include "file.h"
+
+class FitsHPX : public FitsFile {
+ public:
+ enum Order {RING, NESTED};
+ enum CoordSys {UNKNOWN, EQU, GAL, ECL};
+ enum Layout {EQUATOR=0, NORTH=1, SOUTH=2};
+
+ private:
+ Order order_;
+ CoordSys coord_;
+ Layout layout_;
+ int quad_;
+ long nside_;
+
+ FitsBinColumn* col_;
+
+ void build(FitsFile*);
+ void initHeader(FitsFile*);
+ void swap();
+ void NESTidx(int nside, int facet, int rotn, int jmap, long *healidx);
+ void RINGidx(int nside, int facet, int rotn, int jmap, long *healidx);
+
+ public:
+ FitsHPX(FitsFile*, Order, CoordSys, Layout, int, int);
+ ~FitsHPX();
+};
+
+#endif