TwiceAsNice
2019-02-18
|
#include <unistd.h>
#include <iostream>
#include <fitsio.h>
Functions | |
void | usage (char *argv0) |
Print a usage syntax message detailing the command line. More... | |
int | main (int argc, char **argv) |
licsFmodhead is a standalone program which edits FITS header data following directions from a configuration file. More... | |
int main | ( | int | argc, |
char ** | argv | ||
) |
licsFmodhead is a standalone program which edits FITS header data following directions from a configuration file.
The first command line argument is the path/file name of an existing FITS file which is to be modified.
The second argument and optionally further arguments are ASCII files structured very similar to the template files used with cfitsio and fmodhead.
Each of these may contain empty lines and comment lines (starting with #) that have no effect.
It may contain lines that start with at least 8 blanks. The rest of these lines is turned into COMMENT lines that are appended to the FITS header.
Finally, all other lines are interpreted as keyword-value-comment triples in FITS header style (with = and / as delimiters), that trigger adding that card to the header. (Existing keywords with the same name are removed).
Example file (see also the fmodhead
examples in the source distribution:
# add a OBSERVAT keyword
OBSERVAT = "LBT" / on the mountain
# add a comment
Nice observation conditions. Dry with occasional snowflakes.
[in] | argc | The number of command line switches and arguments. |
[in] | argv | The vector of all command line arguments. |
void usage | ( | char * | argv0 | ) |
Print a usage syntax message detailing the command line.
[in] | argv0 | The name of the main program. |