Skip to content

Commit ce943e9

Browse files
committed
partial update to recent review
1 parent 64fdd88 commit ce943e9

File tree

5 files changed

+22
-18
lines changed

5 files changed

+22
-18
lines changed

jwst/cube_build/data_types.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
log.setLevel(logging.DEBUG)
88

99

10-
# ******************************************************************************
1110
class DataTypes:
1211
"""Class to handle reading input data to cube_build."""
1312

@@ -26,7 +25,7 @@ def __init__(self, input_data, single, output_file, output_dir):
2625
Open the input data using datamodels and determine if data is
2726
a single input model, an association, or a set of input models
2827
contained in a ModelContainer. The method populates the self.input_models
29-
which is list a of input models. An initial base name for the output file
28+
which is a list of input models. An initial base name for the output file
3029
is constructed.
3130
3231
Parameters

jwst/cube_build/file_table.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ def __init__(self):
9191

9292
def set_file_table(self, input_models):
9393
"""
94-
Set up the MasterTable dictionary.
94+
Set up the master_table dictionary.
9595
96-
Fill in the MasterTable which holds the files that the cube will be constructed
96+
Fill in the master_table which holds the files that the cube will be constructed
9797
from. Since MIRI has 2 channels per image this MASTERTable dictionary helps to figure out
9898
which data needs to be use.
99-
The MasterTable for MIRI is broken down by channel and subchannel.
99+
The master_table for MIRI is broken down by channel and subchannel.
100100
For each channel/subchannel combination - a file is listed that covers those options
101101
For NIRSPEC the table contains the grating and filter for each file.
102102
@@ -107,11 +107,11 @@ def set_file_table(self, input_models):
107107
108108
Returns
109109
-------
110-
MasterTable : dict
110+
master_table : dict
111111
Dictionary containing the filename/model for each channel/band or grating/filter
112112
"""
113113
# ________________________________________________________________________________
114-
# Loop over input list of files and assign fill in the MasterTable with filename
114+
# Loop over input list of files and assign fill in the master_table with filename
115115
# for the correct (channel-subchannel) or (grating-subchannel)
116116
for model in input_models:
117117
instrument = model.meta.instrument.name.upper()

jwst/cube_build/ifu_cube.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class IFUCubeData:
6565
Dictionary containing information on the basic instrument parameters.
6666
master_table : dict
6767
Dictionary of containing the files covering each band.
68-
pars_cube : dict
68+
**pars_cube : dict
6969
Dictionary of parameters controlling how the cube is built.
7070
"""
7171

jwst/cube_build/src/cube_match_sky_driz.c

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/*
2-
An IFU spectral cube is building using the overlap between the detector pixels mapped
3-
to the spectral grid and the 3 D grid. This method is similar to 2D drizzle type
4-
mapping techniques. This is the top level c routine that interfaces with the python wrapper
5-
code: cube_wrapper_driz.
2+
An IFU spectral cube is built using the overlap between the detector pixels mapped
3+
to the 3-D spectral grid. This method is similar to 2D drizzle type mapping techniques.
4+
This is the top level c routine that interfaces with the python wrapper.
65
76
87
Main function for Python: cube_wrapper_driz
@@ -11,9 +10,9 @@ Python signature: result = cube_wrapper_driz(
1110
instrument,
1211
flag_dq_plane,
1312
start_region, end_region,
14-
self.overlap_partial,
15-
self.overlap_full,
16-
self.xcoord, self.ycoord, self.zcoord,
13+
overlap_partial,
14+
overlap_full,
15+
xcoord, ycoord, zcoord,
1716
coord1, coord2,
1817
wave,
1918
flux,
@@ -56,7 +55,13 @@ xcoord : double array
5655
ycoord : double array
5756
size of naxis2. This array holds the center y axis values of the ifu cube
5857
zcoord : double array
59-
size of naxis3. This array holds the center x axis values of the ifu cube
58+
size of naxis3. This array holds the center z axis /wavelength values of the ifu cube
59+
coord1 : double array
60+
The tangent projected xi values of the center of detector pixel.
61+
coord2 : double array
62+
The tangent projected wave values of the center of detector pixel..
63+
wave : double array
64+
The wavelength corresponding to the center of the detector pixel.
6065
flux : double array
6166
size: point cloud elements. Flux of each point cloud member
6267
err : double array

jwst/cube_build/src/cube_utils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ int calcCondition(int edge, double x1, double y1, double x2, double y2,
103103
}
104104

105105
// support function for sh_find_overlap. Find the intersection of polygon and regular grid
106-
void solveIntersection(int edge ,double x1,double y1,double x2,double y2
107-
double *x,double *y,
106+
void solveIntersection(int edge, double x1, double y1, double x2, double y2,
107+
double *x, double *y,
108108
double left, double right, double top, double bottom){
109109
float m = 0;
110110
if(x2 != x1) m = ((double)(y2-y1)/(double)(x2-x1));

0 commit comments

Comments
 (0)