Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sdc
GRIS Gregor Infrared Spectrograph
grisred
Commits
9258d45f
Commit
9258d45f
authored
Feb 14, 2022
by
Carl Schaffer
Browse files
updating calib script and calibration log filenames to conform to gris naming scheme
parent
b6f4aee4
Changes
1
Hide whitespace changes
Inline
Side-by-side
run_grisred.sh
View file @
9258d45f
...
...
@@ -123,18 +123,25 @@ for f in $@; do
cd
$f
time
=
`
date
`
# get the folder name and extract date parts
theday
=
$(
get_date
$f
)
# set up output files, append runnumber if in single run mode
clean_date
=
`
date
--date
=
"
$theday
"
+%Y%m%d
`
echo
$clean_date
if
[
-n
"
$runnumber
"
]
;
then
echo
"Running in single run mode for run
$runnumber
"
calfile
=
"calib_run
$runnumber
.pro"
# stores idl routines
logfile
=
"calibration_log_run
$runnumber
.log"
# stores calibration log
file_base
=
`
printf
"gris_%s_%03d"
$clean_date
$runnumber
`
else
calfile
=
calib.pro
# stores idl routines
logfile
=
calibration_log.log
# stores calibration log
echo
"Running in day mode"
file_base
=
`
printf
"gris_%s"
$clean_date
`
fi
# get the folder name and extract date parts
theday
=
$(
get_date
$f
)
calfile
=
`
printf
"%s_calib-script.pro"
$file_base
`
# stores idl routines
logfile
=
`
printf
"%s_calib-log.log"
$file_base
`
# stores calibration log
echo
"Storing script to
$calfile
"
echo
"Storing calibration log to
$calfile
"
# generate commands from settings and write to calfile
echo
python
$grisred_folder
/gen_command.py
$THOROUGH_CAL
$theday
$runnumber
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment