Skip to content

Commit

Permalink
Redmine: #456
Browse files Browse the repository at this point in the history
  • Loading branch information
kovihome committed Jan 18, 2020
1 parent ef6f918 commit 1dd8f28
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
6 changes: 3 additions & 3 deletions pmutil/doc/TODO
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ TODO

--- calibration --------------------------------------------

+(456) --force option for master frames

+(470) image not matched remove from further processing

+ tesztelni kell
Expand All @@ -19,7 +17,7 @@ TODO

=== V 1.1 ==================================================

(469) config: tetszoleges parameter megadhato legyen command lineban
(469) config: tetszoleges parameter megadhato legyen command line-ban

pl: -D max-distance=4

Expand All @@ -40,6 +38,8 @@ TODO

(448) create/use 3D/4D FITS

(487) a rosszul match-elodo, de hibat nem ado kepeket is ki kell szurni valahogy a grmatch eredmeny file alapjan

--- photometry ---------------------------------------------

(449) hot and dead pixel removing with fiign
Expand Down
12 changes: 4 additions & 8 deletions pmutil/src/main/bash/ppl-calibration
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,7 @@ raw2fits_file() {
# rawfile: $1, color: $2
local rawfile=$1
local FITS_NAME=${rawfile%.*}-$2.fits
# if [ $FORCE_OVERWRITE == 1 ] || [ ! -e $FITS_NAME ]; then
if [ ! -e $FITS_NAME ]; then
if [ $FORCE_OVERWRITE == 1 ] || [ ! -e $FITS_NAME ]; then
echo "$rawfile -> $FITS_NAME"
rawtran -c $2 -o $FITS_NAME -B 16 -C '-4 -D' -X '-q 3 -w' $rawfile
local IMAGETEMP=`exiftool -s -g $rawfile | grep -i CameraTemperature | sed 's/[^0-9]//g'`
Expand Down Expand Up @@ -457,8 +456,7 @@ masters_exist() {

process_bias() {
masters_exist $1 $MASTER_BIAS_FILE
#if [ $FORCE_OVERWRITE == 1 ] || [ $? -eq 0 ]; then
if [ $? -eq 0 ]; then
if [ $FORCE_OVERWRITE == 1 ] || [ $? -eq 0 ]; then
print_info "$2: Convert bias RAW files to FITS."
raw2fits $1

Expand All @@ -475,8 +473,7 @@ process_bias() {

process_dark() {
masters_exist $1 $MASTER_DARK_FILE
#if [ $FORCE_OVERWRITE == 1 ] || [ $? -eq 0 ]; then
if [ $? -eq 0 ]; then
if [ $FORCE_OVERWRITE == 1 ] || [ $? -eq 0 ]; then
print_info "$3: Convert dark RAW files to FITS."
raw2fits $1

Expand Down Expand Up @@ -561,8 +558,7 @@ if [ "$USE_MASTER_FLAT" == "0" ] ; then

# process flat bias, flat dark and flat, only if flat master is not exist
masters_exist $FLAT_FOLDER $MASTER_FLAT_FILE
#if [ $FORCE_OVERWRITE == 1 ] || [ $? -eq 0 ]; then
if [ $? -eq 0 ]; then
if [ $FORCE_OVERWRITE == 1 ] || [ $? -eq 0 ]; then

############################################################################
# step 3. create master flat bias frame, if it is differs from master bias
Expand Down

0 comments on commit 1dd8f28

Please sign in to comment.