[AstroPy] Executable Script fitsheader

Sotiria Fotopoulou sn.fotop at gmail.com
Tue Sep 10 10:55:28 EDT 2019


Hi Jim,

your command works fine for me.
However, if you are in pinch and since it seems to work for a single file,
you could consider using a bash for loop like the following:
for FILE in *fits; do fitsheader --table ascii.csv $FILE >>
keywords.csv;done

Cheers,
Sotiria

On Mon, Sep 9, 2019 at 11:47 PM James Dull <dull4.ja at gmail.com> wrote:

> I would like to extract header information from several hundred fits files
> and put it into a csv file. I ran across the executable script information
> fitsheader that appears to do just that. It works perfectly for a single
> file. However, when I follow the online command for that uses a wildcard so
> multiple files can be completed in a single pass I get "unrecognized
> command"
>
> Something similar happens with the other scripts if I use a wildcard.
>
> I feel I'm missing something simple.
>
> The command I'm using is: fitsheader --table ascii.csv *.fits >
> keywords.csv
>
> thanks
> Jim
>
>
> _______________________________________________
> AstroPy mailing list
> AstroPy at python.org
> https://mail.python.org/mailman/listinfo/astropy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20190910/5041e14c/attachment.html>


More information about the AstroPy mailing list