-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/teuben/nemo
- Loading branch information
Showing
10 changed files
with
158 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FITS | ||
---- | ||
|
||
|
||
FITS is one of the earliest data formats used in (observational) astronomy, and | ||
NEMO handles some of the conversions from and to FITS. | ||
|
||
|
||
|
||
For the SDFITS extension there is limited support in `sdinfo` and `scanfits`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#! /usr/bin/env bash | ||
# | ||
|
||
# usage: progress table column max | ||
# | ||
# progress=0 none | ||
# 1 zenity | ||
# 2 qt5 | ||
|
||
pro=$1 | ||
tab=$2 | ||
col=$3 | ||
max=$4 | ||
|
||
|
||
echo "progress.sh: $pro $tab $col $max" | ||
if [ $pro = 0 ]; then | ||
exit 0 | ||
fi | ||
|
||
# some programs take some startup time to create the progress file | ||
for i in $(seq 5); do | ||
if [ ! -e $tab ]; then | ||
echo SLEEPING for $tab | ||
sleep 1 | ||
else | ||
echo Finally saw $tab | ||
break | ||
fi | ||
done | ||
|
||
# if progress table still doesn't exist, give up | ||
if [ ! -e $tab ]; then | ||
echo "$tab does not exist, giving up" | ||
exit 0 | ||
fi | ||
|
||
# another minor sleep | ||
sleep 2 | ||
|
||
# looping to check progress, passing on the percentage completeness to zenity | ||
(while [ 1 = 1 ]; do | ||
now=$(tail -1 $tab | tabcols - $col); | ||
p=$(nemoinp "100*${now}/${max}" format=%d); | ||
printf "%d\n" $p; | ||
sleep 1; | ||
done) | zenity --progress --auto-close --time-remaining --title "NEMO: $tab" --text "$tab" --percentage=0 | ||
|
||
|