1. Full Command Line ExampleΒΆ
Here we put together several of the tools to show how it can all work, from beginning to end.
First create the lists. One for the darks, one for the flats, and one for the science target.
$ dataselect ../raw/*.fits --tags DARK --expr='exposure_time==20' -o darks20s.lis $ dataselect ../raw/*.fits --tags FLAT -o flats.lis $ dataselect ../raw/*.fits --expr='object=="SN2014J"' -o target.lis
Set the calibration manager and database. First, create or edit the
~/.geminidr/rsys.cfg
to look like this:[calibs] standalone = True database_dir = <path_to>/redux_dir/
Then initialize the calibration database.
$ caldb init
Reduce the darks and add the master dark to the calibration database.
$ reduce @darks20s.lis $ caldb add N20160102S0423_dark.fits
Reduce the flats and add the master flat to the calibration database.
$ reduce @flats.lis $ caldb add N20160102S0373_flat.fits
Reduce the science target, with some input parameter override.
$ reduce @target.lis -p skyCorrect:scale=False