IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ticket #532: fitsdump.c

File fitsdump.c, 303 bytes (added by jhoblitt, 21 years ago)

example code

Line 
1#include <pslib.h>
2#include <stdio.h>
3
4int main ()
5{
6 psFits *f;
7 psMetadata *head;
8
9 f = psFitsAlloc("./phot.db");
10
11 // move to first table
12 psFitsMoveExtNum(f, 1, false);
13
14 head = psFitsReadHeader(NULL, f);
15
16 printf("%s\n", psMetadataConfigFormat(head));
17}