-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
major revision of the RS user manual.
- Loading branch information
1 parent
e807512
commit cecac9a
Showing
26 changed files
with
1,963 additions
and
548 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
recipe_system/doc/rs_UsersManual/_static/css/custom_code.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
/* , a .rst-content tt, a .rst-content code */ | ||
|
||
.rst-content code.xref { | ||
background-color: transparent; | ||
border: solid 1px transparent; | ||
color: #2980B9; | ||
padding: 0px 0px; | ||
font-size: 80%; | ||
} | ||
|
||
.rst-content code.xref:hover { | ||
/* border: solid 1px #e1e4e5; */ | ||
text-decoration: underline; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
.red { | ||
color: red; | ||
} | ||
|
||
.blue { | ||
color: blue; | ||
} | ||
|
||
.green { | ||
color: green; | ||
} | ||
|
||
.yellow { | ||
color: yellow; | ||
} | ||
|
||
.gray { | ||
color: gray; | ||
} | ||
|
||
.lightgray { | ||
color: lightgray; | ||
} | ||
|
||
.small { | ||
font-size: 80%; | ||
} | ||
|
||
.large { | ||
font-size: 120%; | ||
} | ||
|
||
.bolditalic { | ||
font-weight: bold; | ||
font-style: italic; | ||
} |
20 changes: 20 additions & 0 deletions
20
recipe_system/doc/rs_UsersManual/_static/rtd_theme_overrides.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* override RTD table width restrictions */ | ||
|
||
@media screen and (min-width: 767px) { | ||
|
||
.wy-table-responsive table td, .wy-table-responsive table th { | ||
/* !important prevents the common CSS stylesheets from | ||
overriding this as on RTD the are loaded after this stylesheet */ | ||
white-space: normal !important; | ||
} | ||
|
||
.wy-table-responsive { | ||
/* margin-bottom: 24px; */ | ||
/* max-width: 100%; */ | ||
overflow: visible !important; | ||
} | ||
|
||
.wy-nav-content { | ||
max-width: 1200px !important; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ border-left: 2px solid red; | |
border-right: 2px solid red; | ||
background-color: #ff6347 | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
6. Acknowledgments | ||
================== | ||
The Gemini Observatory is operated by the Association of Universities for | ||
Research in Astronomy (AURA), Inc., under a cooperative agreement with the NSF on | ||
behalf of the Gemini partnership: the National Science Foundation | ||
(United States), the Science and Technology Facilities Council (United Kingdom), | ||
the National Research Council (Canada), CONICYT (Chile), the Australian | ||
Research Council (Australia), Ministerio da Ciencia e Tecnologia (Brazil), | ||
and Ministerio de Ciencia, Tecnologia e Innovacion Productiva (Argentina). | ||
.. ack.rst | ||
*************** | ||
Acknowledgments | ||
*************** | ||
|
||
The Gemini Observatory is operated by the Association of Universities for | ||
Research in Astronomy, Inc., under a cooperative agreement with the NSF on | ||
behalf of the Gemini partnership: the National Science Foundation | ||
(United States), the National Research Council (Canada), CONICYT (Chile), | ||
Ministerio de Ciencia, Tecnología e Innovación Productiva (Argentina), | ||
Ministério da Ciência, Tecnologia e Inovação (Brazil), and Korea Astronomy | ||
and Space Science Institute (Republic of Korea). |
95 changes: 95 additions & 0 deletions
95
recipe_system/doc/rs_UsersManual/appendices/full_api_example.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
.. full_api_example.rst | ||
.. _api_example: | ||
|
||
**************** | ||
Full API Example | ||
**************** | ||
Here we put together several of the tools to show how it can all work, from | ||
beginning to end. | ||
|
||
1. Import everything we will need. | ||
|
||
:: | ||
|
||
>>> import glob | ||
|
||
>>> from recipe_system.reduction.coreReduce import Reduce | ||
>>> from recipe_system import cal_service | ||
|
||
>>> from gempy.utils import logutils | ||
>>> from gempy.adlibrary import dataselect | ||
|
||
2. Create the file lists. One for the darks, one for the flats, one for the | ||
science target. | ||
|
||
:: | ||
|
||
>>> all_files = glob.glob('../raw/*.fits') | ||
|
||
# 20 second darks. | ||
>>> expression = 'exposure_time==20' | ||
>>> parsed_expr = dataselect.expr_parser(expression) | ||
>>> darks20s = dataselect.select_data(all_files, ['DARK'], [], parsed_expr) | ||
|
||
# all the flats | ||
>>> flats = dataselect.select_data(all_files, ['FLAT']) | ||
|
||
# the science data | ||
>>> expression = 'object=="SN2014J"' | ||
>>> parsed_expr = dataselect.expr_parser(expression) | ||
>>> target = dataselect.select_data(all_files, expression=parsed_expr) | ||
|
||
3. Set up the calibration manager and database. First, create or edit the | ||
``~/.geminidr/rsys.cfg`` to look like this: | ||
|
||
:: | ||
|
||
[calibs] | ||
standalone = True | ||
database_dir = <where_you_want_the_database_to_live>/ | ||
|
||
Then configure and initialize the database, and activate the service: | ||
|
||
:: | ||
|
||
>>> caldb = cal_service.CalibrationService() | ||
>>> caldb.config() | ||
>>> caldb.init() | ||
>>> cal_service.set_calservice() | ||
|
||
4. Set up the logger. | ||
|
||
:: | ||
|
||
>>> logutils.config(file_name='example.log') | ||
|
||
5. Reduce the darks and add the master dark to the calibration database. | ||
|
||
:: | ||
|
||
>>> reduce_darks = Reduce() | ||
>>> reduce_darks.files.extend(darks20s) | ||
>>> reduce_darks.runr() | ||
|
||
>>> caldb.add_cal(reduce_darks.output_filenames[0]) | ||
|
||
6. Reduce the flats and add the master flats to the calibration database. | ||
|
||
:: | ||
|
||
>>> reduce_flats = Reduce() | ||
>>> reduce_flats.files.extend(flats) | ||
>>> reduce_flats.runr() | ||
|
||
>>> caldb.add_cal(reduce_flats.output_filenames[0]) | ||
|
||
7. Reduce the science target, with some input parameter override. | ||
|
||
:: | ||
|
||
>>> reduce_target = Reduce() | ||
>>> reduce_target.files.extend(target) | ||
>>> reduce_target.uparms.append(('skyCorrect:scale', False)) | ||
>>> reduce_target.runr() | ||
|
53 changes: 53 additions & 0 deletions
53
recipe_system/doc/rs_UsersManual/appendices/full_commandline_example.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
.. full_commandline_example.rst | ||
.. _commandline_example: | ||
|
||
************************* | ||
Full Command Line Example | ||
************************* | ||
Here we put together several of the tools to show how it can all work, from | ||
beginning to end. | ||
|
||
1. 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 | ||
|
||
2. 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 | ||
|
||
3. Reduce the darks and add the master dark to the calibration database. | ||
|
||
:: | ||
|
||
$ reduce @darks20s.lis | ||
$ caldb add N20160102S0423_dark.fits | ||
|
||
4. Reduce the flats and add the master flat to the calibration database. | ||
|
||
:: | ||
|
||
$ reduce @flats.lis | ||
$ caldb add N20160102S0373_flat.fits | ||
|
||
5. Reduce the science target, with some input parameter override. | ||
|
||
:: | ||
|
||
$ reduce @target.lis -p skyCorrect:scale=False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.