Astro-Grázl

Zdrojový kód Všehomíra

Check me @ GitHub

A FITS File Subroutine Library

09 May 2015 — #fits, #git, #bash

CFITSIO is a library of C and Fortran subroutines for reading and writing data files in FITS (Flexible Image Transport System) data format. CFITSIO provides simple high-level routines for reading and writing FITS files that insulate the programmer from the internal complexities of the FITS format. CFITSIO also provides many advanced features for manipulating and filtering the information in FITS files. – http://heasarc.gsfc.nasa.gov/fitsio/fitsio.html

fitsprog

#!/bin/bash

AUTHOR="Dr. William Pence <william.d.pence@nasa.gov>"

# git init cfitsio

for CODE in cfitsio-3.??.tar.gz # cfitsio3???.tar.gz
do
    rm -rf cfitsio/*
    DATE=$(stat -c %y $CODE)
    MINOR=${CODE:10:2}0
    #MINOR=${CODE:8:3}
    tar xf $CODE
    mv ${CODE%.tar.gz}/* cfitsio/
    cd cfitsio
    git add .
    git commit --message="$CODE" \
               --author="$AUTHOR" \
               --date="$DATE"
    git tag "v3.$MINOR"
    cd ..
done