Skip to content

Commit

Permalink
Merge branch 'master' into TA-lines-in-AMI-proposals
Browse files Browse the repository at this point in the history
  • Loading branch information
bhilbert4 authored Feb 18, 2020
2 parents b1b953a + 4cca93c commit 79ed561
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ APT Pointing File

Bug fix such that the only Target Acquisition observations that are read in are those for NIRCam TSO observations.

Header Keywords
---------------

Corrected schema to populate the XOFFSET and YOFFSET header keywords (#454)

Reference Files
---------------

Fix bug in downloader that was preventing NIRISS darks from being downloaded (#450)


1.3.2
=====
Expand Down
4 changes: 2 additions & 2 deletions mirage/ramp_generator/obs_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2874,8 +2874,8 @@ def save_DMS(self, ramp, zeroframe, filename, mod='1b', err_ext=None,
outModel.meta.dither.subpixel_type = self.params['Output']['subpix_dither_type']
outModel.meta.dither.subpixel_number = self.params['Output']['subpix_dither_position']
outModel.meta.dither.subpixel_total_points = self.params['Output']['total_subpix_dither_positions']
outModel.meta.dither.xoffset = self.params['Output']['xoffset']
outModel.meta.dither.yoffset = self.params['Output']['yoffset']
outModel.meta.dither.x_offset = self.params['Output']['xoffset']
outModel.meta.dither.y_offset = self.params['Output']['yoffset']

# pixel coordinates in FITS header start from 1 not from 0
xc = (self.subarray_bounds[2] + self.subarray_bounds[0])/2.+1.
Expand Down
2 changes: 1 addition & 1 deletion mirage/reference_files/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def download_reffiles(directory, instrument='all', dark_type='linearized',
det_str.replace('LONG', '5')
darks_dir = os.path.join(directory, 'mirage_data', 'nircam', 'darks')
sub_directory = os.path.join(darks_dir, cal, det_str)
elif 'NIRISS' in filename.lower():
elif 'NIRISS' in filename:
darks_dir = os.path.join(directory, 'mirage_data', 'niriss', 'darks')
sub_directory = os.path.join(darks_dir, cal)
#sub_directory = os.path.join(directory, 'mirage_data', 'niriss', 'darks', cal)
Expand Down

0 comments on commit 79ed561

Please sign in to comment.