Skip to content

Commit

Permalink
add CTYPE3=RGB to FITS headers in an-pnmtofits
Browse files Browse the repository at this point in the history
  • Loading branch information
dstndstn committed Mar 19, 2021
1 parent 73ae379 commit d32a26c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.84-48-gdfbc105a'
__version__ = '0.84-57-g73ae3793'
2 changes: 2 additions & 0 deletions util/an-pnmtofits.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ int main(int argc, char** args) {
logmsg("Using %i-bit output\n", bits);

hdr = fits_get_header_for_image3(W, H, outformat, depth, NULL);
if (depth == 3)
qfits_header_add(hdr, "CTYPE3", "RGB", "Tell Aladin this is RGB", NULL);
if (bzero)
fits_header_add_int(hdr, "BZERO", bzero, "Number that has been subtracted from pixel values");
if (qfits_header_dump(hdr, fout)) {
Expand Down

0 comments on commit d32a26c

Please sign in to comment.