Last change
on this file since 1441 was
1354,
checked in by MatthewWhiting, 10 years ago
|
#209 - Changing default bitpix for masks to SHORT_IMG. Also making front-end functions to the writing of arrays. These reside in WriteArray?, and cover float (with blank pixel handling), int and long. Masks can use long if there are lots (>32K) of objects.
|
File size:
798 bytes
|
Line | |
---|
1 | #ifndef DUCHAMP_WRITE_MASK_ARRAY_HH_ |
---|
2 | #define DUCHAMP_WRITE_MASK_ARRAY_HH_ |
---|
3 | |
---|
4 | #include <duchamp/duchamp.hh> |
---|
5 | #include <duchamp/FitsIO/WriteArray.hh> |
---|
6 | #include <duchamp/Cubes/cubes.hh> |
---|
7 | |
---|
8 | namespace duchamp { |
---|
9 | |
---|
10 | class WriteMaskArray : public WriteArray |
---|
11 | { |
---|
12 | public: |
---|
13 | WriteMaskArray(); |
---|
14 | WriteMaskArray(Cube *cube); |
---|
15 | WriteMaskArray(const WriteMaskArray& other); |
---|
16 | WriteMaskArray(const WriteArray& base); |
---|
17 | WriteMaskArray& operator= (const WriteMaskArray& other); |
---|
18 | WriteMaskArray& operator= (const WriteArray& other); |
---|
19 | virtual ~WriteMaskArray(){}; |
---|
20 | |
---|
21 | OUTCOME writeHeader(); |
---|
22 | OUTCOME writeData(); |
---|
23 | |
---|
24 | protected: |
---|
25 | void setCorrectBitpix(); |
---|
26 | |
---|
27 | OUTCOME writeDataSimpleMask(); |
---|
28 | OUTCOME writeDataObjNumMask_int(); |
---|
29 | OUTCOME writeDataObjNumMask_long(); |
---|
30 | |
---|
31 | }; |
---|
32 | |
---|
33 | } |
---|
34 | |
---|
35 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.