@@ -176,7 +176,7 @@ def define_cubename(self):
176176 Usually the output name is defined by the association table. However in the case
177177 of cube_build several cubes can be created from a single call of cube_build. The
178178 user can override the type of data to combine to make a cube. It is left to cube_build
179- to determine with channels, bands, gratings or filters are used to make the IFUCube.
179+ to determine which channels, bands, gratings or filters are used to make the IFUCube.
180180 The final name includes the channel/band (MIRI) or grating/filter (NIRSpec).
181181
182182 Returns
@@ -261,13 +261,13 @@ def set_geometry(self, corner_a, corner_b, lambda_min, lambda_max):
261261 Parameters
262262 ----------
263263 corner_a : numpy array
264- Array of ra corners of the footprint of all input data
264+ Array of ra corners of the footprint of all input data.
265265 corner_b : numpy array
266- Array of dec corners of the footprint of all input data
266+ Array of dec corners of the footprint of all input data.
267267 lambda_min : float
268- Minimum wavelength value of the data
268+ Minimum wavelength value of the data.
269269 lambda_max : float
270- Maximum wavelength value of the data
270+ Maximum wavelength value of the data.
271271 """
272272 ra_min = np .min (corner_a )
273273 ra_max = np .max (corner_a )
@@ -406,20 +406,19 @@ def set_geometry_slicer(self, corner_a, corner_b, lambda_min, lambda_max):
406406 """
407407 Set up the size of the cube in the internal IFU plane.
408408
409- This will be a single exposure cube - small FOV assume
410- rectangular coord system. The internal IFU Cube is in the slicer plane
411- and is defined by along slice and across slice coordinates.
409+ This will be a single exposure cube. The internal IFU Cube is in the
410+ slicer plane and is defined by along slice and across slice coordinates.
412411
413412 Parameters
414413 ----------
415414 corner_a : numpy array
416- Array of along slice corners of the footprint of all input data
415+ Array of along slice corners of the footprint of all input data.
417416 corner_b : numpy array
418- Array of across slice corners of the footprint of all input data
417+ Array of across slice corners of the footprint of all input data.
419418 lambda_min : float
420- Minimum wavelength value of the data
419+ Minimum wavelength value of the data.
421420 lambda_max : float
422- Maximum wavelength value of the data
421+ Maximum wavelength value of the data.
423422 """
424423 self .a_min = np .min (corner_a )
425424 self .a_max = np .max (corner_a )
@@ -595,7 +594,7 @@ def print_cube_geometry(self):
595594
596595 def build_ifucube (self ):
597596 """
598- Create the IFU cube.
597+ Create an IFU cube.
599598
600599 1. Loop over every band contained in the IFU cube and read in the data
601600 associated with the band
@@ -1196,9 +1195,8 @@ def determine_cube_parameters(self):
11961195 """
11971196 Determine the spatial and wavelength roi size if IFU covers more than 1 band of data.
11981197
1199- If the IFU cube covers more than 1 band - then use the rules to
1198+ If the IFU cube covers more than 1 band, then use the rules to
12001199 define the spatial and wavelength roi size to use for the cube
1201- Current Rule: using the minimum
12021200 """
12031201 # initialize
12041202 wave_roi = None
@@ -1467,7 +1465,7 @@ def determine_cube_parameters(self):
14671465
14681466 def setup_ifucube_wcs (self ):
14691467 """
1470- Determine the min and max coordinates of the spectral cube.
1468+ Set up the wcs of the IFU cube.
14711469
14721470 Loop over every datamodel contained in the cube and find the WCS
14731471 of the output cube that contains all the data.
@@ -1758,9 +1756,9 @@ def map_detector_to_outputframe(self, this_par1, subtract_background, input_mode
17581756 roiw_det: numpy.ndarray
17591757 Spectral roi size associated with coord1,coord2
17601758 weight_det : numpy.ndarray
1761- Weighting parameter association with coord1,coord2
1759+ Weighting parameter associated with coord1,coord2
17621760 softrad_det : numpy.ndarray
1763- Weighting parameter association with coord1,coord2
1761+ Weighting parameter associated with coord1,coord2
17641762 """
17651763 # initialize alpha_det and beta_det to None. These are filled in
17661764 # if the instrument is MIRI and the weighting is miripsf
@@ -1987,7 +1985,7 @@ def map_detector_to_outputframe(self, this_par1, subtract_background, input_mode
19871985
19881986 def map_miri_pixel_to_sky (self , input_model , this_par1 , subtract_background , offsets ):
19891987 """
1990- Loop over a file and map the detector pixels to the output cube.
1988+ Loop over a MIRI model and map the detector pixels to the output cube.
19911989
19921990 The output frame is on the SKY (ra-dec)
19931991 Return the coordinates of all the detector pixel in the output frame.
@@ -2150,7 +2148,7 @@ def map_miri_pixel_to_sky(self, input_model, this_par1, subtract_background, off
21502148 # ______________________________________________________________________
21512149 def map_nirspec_pixel_to_sky (self , input_model , offsets ):
21522150 """
2153- Loop over a file and map the detector pixels to the output cube.
2151+ Loop over a NIRSpec model and map the detector pixels to the output cube.
21542152
21552153 The output frame is on the SKY (ra-dec)
21562154 Return the coordinates of all the detector pixel in the output frame.
@@ -2334,7 +2332,6 @@ def map_nirspec_pixel_to_sky(self, input_model, offsets):
23342332
23352333 valid_data = np .where (flag_det == 1 )
23362334 y , x = valid_data
2337-
23382335 wave = lam_det [valid_data ]
23392336 slice_no = slice_det [valid_data ]
23402337 dwave = dwave_det [valid_data ]
0 commit comments