Skip to content

Conversation

@cdressing
Copy link
Owner

Description

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

cdressing and others added 5 commits March 11, 2022 17:26
…ummaries, and run contrast curve code automatically (arjunsavel#123)

* Update add_dark_exp.py

When using csv files for logs, save version with darks to a new file (marked by "_with_darks.csv") so that darks are not appended repeatedly when the pipeline is rerun.

* Update create_config.py

Set default reduction method using bracket notation instead of dot notation because the column isn't actually added to the data frame when using dot notation.

* Update drivers.py

Check if specified reduction directory exists and create it if needed.

* Update drivers.py

Corrected description of reddir.

* Update image.py

Share original filenames with plot_array so that the shift1_cube.png files can be annotated with filenames.

* Update image.py

If ShARCS dataset contains BrG-2.16 data and no corresponding flat, use the Ks flat instead.

* Update plotting.py

Label each subpanel with filename or star name. Add new functionality for plotting reduced images of all stars observed on a single night.

* Update sky.py

For ShARCS, if no BrG-2.16 flat exists, use Ks flat for reducing BrG-2.16 data. Also removed leftover stray comments.

* Update darks.py

Removed previously commented out text changing head.update to head.set.

* Update plotting.py

Corrected typo (missing = in equality check).

* Update plotting.py

Corrected typo (missing : before if/then statement)

* Update add_dark_exp.py

Changed literal eval to avoid issues when filenames have leading zeros.

* Update drivers.py

Added ability to save time by using existing darks, flats, and skies.

* Update plotting.py

Added if statement to tell the code when to use the "all_stars" version of the plot.

* Update plotting.py

Added snames=None to ensure that all plotting routines are compatible with the addition of plot_all_stars

* Update plotting.py

Corrected typos in plot_all_stars.

* Update contrast.py

Truncate error array to the inner 10" so that lim_arc_lengths, delta_mags, and lim_stds are all the same length.

* Update drivers.py

correct typo in comments (afrer --> after)

* integrate contrast curves into reduction pipeline

Automatically run contrast curve code for each star and save plots and csv files showing contrast as a function of angular separation.

* Update contrast.py

fixed typo in generation of lim_stds

* improved contrast curve plotting

Flipped y-axis to show brighter objects at top.

* Generate nightly summary plots when running drivers.py

Produce grid of all images and plot showing all contrast curves.

* image.py: added a space

added a space to improve readability

* Added new module to produce nightly summaries

Produce grid showing reduced images for all stars observed and plot showing all contrast curves.

* improved flat plotting

When plotted in a grid, flats are now shown with a narrower, adaptive color scaling range and labeled by file name.

* Added option to run contrast curve code quietly.

When run with verbose=False, warning messages from concur are suppressed to avoid messing up the progress bars.

* Update utils.py

Cast header['CRPIX1'] and header['CRPIX2'] as floats to prevent errors that occur when they are read in as integers.

* streamlining & debuggin contrast code

* routine to analyze a full night of data

* Fixed writing short exposure times

Now adds 1 decimal point after exposure times rather than zero. This corrects issue for non-integer exposure times like 1.5 s and 4.5 s.

* Check that values in config file match values in fits headers.

Code now checks the fits headers of all files included in the config file to make sure that the numbers match.

* Adds ability to use nodded skies

Added ability to reduce data by nodding to acquire skies rather than using a dither pattern in which the target star is always in the image.

Co-authored-by: Arjun Savel <[email protected]>
Don't run darks, flats, and sky drivers again after registering images.
Don't print to screen unless VERBOSE is set. Allow all types of flats to match (e.g., sky flats, dome flats, flats) and improve matching of images taken in J+Ch4-1.2 by allowing different filter capitalization and whitespace in the logsheet.
Return configuration file when user requests to skip data reduction.
@cdressing cdressing closed this Apr 6, 2022
@cdressing cdressing reopened this Apr 6, 2022
@cdressing cdressing merged commit c4f67b8 into main Apr 6, 2022
@cdressing cdressing deleted the master branch April 6, 2022 18:09
@cdressing cdressing restored the master branch May 11, 2022 23:51
@cdressing cdressing deleted the master branch May 11, 2022 23:51
@cdressing cdressing restored the master branch May 11, 2022 23:52
@cdressing cdressing deleted the master branch May 11, 2022 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants