Posibility to calibrate with Nth fits image
parent
82bcc9f10e
commit
ceee3d463c
|
@ -1,7 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ -z $1 ]; then
|
||||
N=10
|
||||
else
|
||||
echo "Using image $1 to calibrate"
|
||||
N=$1
|
||||
rm test.fits
|
||||
fi
|
||||
|
||||
if [ ! -e "test.fits" ]; then
|
||||
ls -1 2*.fits | head -n10 | tail -n1 | awk '{printf("cp %s test.fits\n",$1)}' | sh
|
||||
ls -1 2*.fits | head -n$N | tail -n1 | awk '{printf("cp %s test.fits\n",$1)}' | sh
|
||||
fi
|
||||
sextractor test.fits -c $ST_DATADIR/sextractor/default.sex
|
||||
mv test.cat test.fits.cat
|
||||
|
|
|
@ -1,34 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Get date
|
||||
DATE=`date +%Y%m%d_%H%M%S`
|
||||
|
||||
# Get cookie
|
||||
wget --post-data='identity=yourlogin&password=yourpassword' --cookies=on --keep-session-cookies --save-cookies=/tmp/cookies.txt 'https://www.space-track.org/ajaxauth/login' -o /tmp/stget.log
|
||||
|
||||
# Get data
|
||||
wget --keep-session-cookies --load-cookies=/tmp/cookies.txt 'https://www.space-track.org/basicspacedata/query/class/tle_latest/ORDINAL/1/EPOCH/%3Enow-30/format/3le' -O $ST_TLEDIR/catalog.tle
|
||||
dos2unix $ST_TLEDIR/catalog.tle
|
||||
sed -i -e "s/^1 /1 0000/g" -e "s/^2 /2 0000/g" -e "s/^1 /1 000/g" -e "s/^2 /2 000/g" -e "s/^1 /1 00/g" -e "s/^2 /2 00/g" -e "s/^1 /1 0/g" -e "s/^2 /2 0/g" $ST_TLEDIR/catalog.tle
|
||||
cp $ST_TLEDIR/catalog.tle $ST_TLEDIR/${DATE}_catalog.txt
|
||||
|
||||
# Get classfd
|
||||
wget http://www.prismnet.com/~mmccants/tles/classfd.zip --no-check-certificate -O $ST_TLEDIR/classfd.zip
|
||||
unzip -o $ST_TLEDIR/classfd.zip
|
||||
dos2unix $ST_TLEDIR/classfd.tle
|
||||
cp $ST_TLEDIR/classfd.tle $ST_TLEDIR/${DATE}_classfd.txt
|
||||
#mv $HOME/classfd.tle $ST_TLEDIR/classfd.tle
|
||||
rm $ST_TLEDIR/classfd.zip
|
||||
|
||||
# Get inttles
|
||||
wget http://www.prismnet.com/~mmccants/tles/inttles.zip --no-check-certificate -O $ST_TLEDIR/inttles.zip
|
||||
unzip -o $ST_TLEDIR/inttles.zip
|
||||
dos2unix $ST_TLEDIR/inttles.tle
|
||||
cp $ST_TLEDIR/inttles.tle $ST_TLEDIR/${DATE}_inttles.txt
|
||||
#mv $HOME/inttles.tle $ST_TLEDIR/inttles.tle
|
||||
rm $ST_TLEDIR/inttles.zip
|
||||
|
||||
#rm $HOME/login
|
||||
|
||||
# Create bulk file
|
||||
cat $ST_TLEDIR/classfd.tle $ST_TLEDIR/catalog.tle >$ST_TLEDIR/bulk.tle
|
Loading…
Reference in New Issue