Skip to content

Instantly share code, notes, and snippets.

# _SwiftUvot_b_afterDs9
# _SwiftUvot_2_products
## products
if [[ $(declare --help | grep -c -o -E "\-g\s+create global variables") -eq 0 ]]; then
My_Swift_D=${My_Swift_D:=$(pwd)}
else
declare -g My_Swift_D=${My_Swift_D:=$(pwd)}
fi # 未定義時に代入
cd $My_Swift_D
obs_dirs=($(find . -maxdepth 1 -type d -printf "%P\n" | grep ^[0-9] | sort))
# _SwiftUvot_a_ds9
# _SwiftUvot_1_ds9
## ds9で領域指定
FLAG_simple=false # arg
if [[ $(declare --help | grep -c -o -E "\-g\s+create global variables") -eq 0 ]]; then
My_Swift_D=${My_Swift_D:=$(pwd)}
else
declare -g My_Swift_D=${My_Swift_D:=$(pwd)}
fi # 未定義時に代入
cd $My_Swift_D
# _SwiftUvot_4_fitDirectory
## fitディレクトリにまとめ
FLAG_hardCopy=false # arg
FLAG_symbLink=false # arg
tmp_prefix="uvot_" # arg
if [[ $(declare --help | grep -c -o -E "\-g\s+create global variables") -eq 0 ]]; then
My_Swift_D=${My_Swift_D:=$(pwd)}
else
declare -g My_Swift_D=${My_Swift_D:=$(pwd)}
fi # 未定義時に代入
# _SwiftUvot_3_addascaspec
## obtain rmf
if [[ $(declare --help | grep -c -o -E "\-g\s+create global variables") -eq 0 ]]; then
My_Swift_D=${My_Swift_D:=$(pwd)}
else
declare -g My_Swift_D=${My_Swift_D:=$(pwd)}
fi # 未定義時に代入
cd $My_Swift_D
obs_dirs=($(find . -maxdepth 1 -type d -printf "%P\n" | grep ^[0-9] | sort))
# _SwiftUvot_2_products
## products
if [[ $(declare --help | grep -c -o -E "\-g\s+create global variables") -eq 0 ]]; then
My_Swift_D=${My_Swift_D:=$(pwd)}
else
declare -g My_Swift_D=${My_Swift_D:=$(pwd)}
fi # 未定義時に代入
cd $My_Swift_D
obs_dirs=($(find . -maxdepth 1 -type d -printf "%P\n" | grep ^[0-9] | sort))
for My_Swift_ID in ${obs_dirs[@]}; do
# _SwiftUvot_1_ds9
## ds9で領域指定
FLAG_simple=false # arg
if [[ $(declare --help | grep -c -o -E "\-g\s+create global variables") -eq 0 ]]; then
My_Swift_D=${My_Swift_D:=$(pwd)}
else
declare -g My_Swift_D=${My_Swift_D:=$(pwd)}
fi # 未定義時に代入
cd $My_Swift_D
obs_dirs=($(find . -maxdepth 1 -type d -printf "%P\n" | grep ^[0-9] | sort))
# _NicerXti_a_products
# _NicerXti_1_products
## xti products
if [[ $(declare --help | grep -c -o -E "\-g\s+create global variables") -eq 0 ]]; then
My_Nicer_D=${My_Nicer_D:=$(pwd)}
else
declare -g My_Nicer_D=${My_Nicer_D:=$(pwd)}
fi # 未定義時に代入
cd $My_Nicer_D
obs_dirs=($(find . -maxdepth 1 -type d -printf "%P\n" | grep ^[0-9] | sort))
# _NicerXti_5_fitDirectory
## fitディレクトリにまとめ
FLAG_hardCopy=false # arg
FLAG_symbLink=false # arg
tmp_prefix="xrt_" # arg
if [[ $(declare --help | grep -c -o -E "\-g\s+create global variables") -eq 0 ]]; then
My_Nicer_D=${My_Nicer_D:=$(pwd)}
else
declare -g My_Nicer_D=${My_Nicer_D:=$(pwd)}
fi # 未定義時に代入
# _NicerXti_4_grppha
## grppha
gnum=50 # arg
if [[ $(declare --help | grep -c -o -E "\-g\s+create global variables") -eq 0 ]]; then
My_Nicer_D=${My_Nicer_D:=$(pwd)}
else
declare -g My_Nicer_D=${My_Nicer_D:=$(pwd)}
fi # 未定義時に代入
cd $My_Nicer_D
obs_dirs=($(find . -maxdepth 1 -type d -printf "%P\n" | grep ^[0-9] | sort))
# _NicerXti_3_editHeader
## edit header
if [[ $(declare --help | grep -c -o -E "\-g\s+create global variables") -eq 0 ]]; then
My_Nicer_D=${My_Nicer_D:=$(pwd)}
else
declare -g My_Nicer_D=${My_Nicer_D:=$(pwd)}
fi # 未定義時に代入
cd $My_Nicer_D
function _ObtainExtNum(){