diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2016-10-27 18:59:29 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2016-10-27 18:59:29 (GMT) |
commit | d4d595fa7fb12903db9227d33d48b2b00120dbd1 (patch) | |
tree | 7d18365de0d6d1b29399b6a17c7eb01c2eb3ed49 /tksao/fitsy++/hpx.h | |
parent | 949f96e29bfe0bd8710d775ce220e597064e2589 (diff) | |
download | blt-d4d595fa7fb12903db9227d33d48b2b00120dbd1.zip blt-d4d595fa7fb12903db9227d33d48b2b00120dbd1.tar.gz blt-d4d595fa7fb12903db9227d33d48b2b00120dbd1.tar.bz2 |
Initial commit
Diffstat (limited to 'tksao/fitsy++/hpx.h')
-rw-r--r-- | tksao/fitsy++/hpx.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/tksao/fitsy++/hpx.h b/tksao/fitsy++/hpx.h new file mode 100644 index 0000000..30a30de --- /dev/null +++ b/tksao/fitsy++/hpx.h @@ -0,0 +1,37 @@ +// Copyright (C) 1999-2016 +// 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 |