@@ -129,7 +129,7 @@ def total_sparse_pixels_from_mask_2d(mask_2d, unmasked_sparse_grid_pixel_centres
129129
130130@decorator_util .jit ()
131131def mask_2d_circular_from_shape_2d_pixel_scales_and_radius (
132- shape_2d , pixel_scales , radius_scaled , centre = (0.0 , 0.0 )
132+ shape_2d , pixel_scales , radius , centre = (0.0 , 0.0 )
133133):
134134 """Compute a circular mask from the 2D mask array shape and radius of the circle.
135135
@@ -141,7 +141,7 @@ def mask_2d_circular_from_shape_2d_pixel_scales_and_radius(
141141 The (y,x) shape of the mask in unit_label of pixels.
142142 pixel_scales: float
143143 The arc-second to pixel conversion factor of each pixel.
144- radius_scaled : float
144+ radius : float
145145 The radius (in arc seconds) of the circle within which pixels unmasked.
146146 centre: (float, float)
147147 The centre of the circle used to mask pixels.
@@ -171,15 +171,15 @@ def mask_2d_circular_from_shape_2d_pixel_scales_and_radius(
171171
172172 r_arcsec = np .sqrt (x_arcsec ** 2 + y_arcsec ** 2 )
173173
174- if r_arcsec <= radius_scaled :
174+ if r_arcsec <= radius :
175175 mask [y , x ] = False
176176
177177 return mask
178178
179179
180180@decorator_util .jit ()
181181def mask_2d_circular_annular_from_shape_2d_pixel_scales_and_radii (
182- shape_2d , pixel_scales , inner_radius_scaled , outer_radius_scaled , centre = (0.0 , 0.0 )
182+ shape_2d , pixel_scales , inner_radius , outer_radius , centre = (0.0 , 0.0 )
183183):
184184 """Compute an annular mask from an input inner and outer mask radius and shape.
185185
@@ -191,9 +191,9 @@ def mask_2d_circular_annular_from_shape_2d_pixel_scales_and_radii(
191191 The (y,x) shape of the mask in unit_label of pixels.
192192 pixel_scales : (float, float)
193193 The arc-second to pixel conversion factor of each pixel.
194- inner_radius_scaled : float
194+ inner_radius : float
195195 The radius (in arc seconds) of the inner circle outside of which pixels are unmasked.
196- outer_radius_scaled : float
196+ outer_radius : float
197197 The radius (in arc seconds) of the outer circle within which pixels are unmasked.
198198 centre: (float, float)
199199 The centre of the annulus used to mask pixels.
@@ -223,7 +223,7 @@ def mask_2d_circular_annular_from_shape_2d_pixel_scales_and_radii(
223223
224224 r_arcsec = np .sqrt (x_arcsec ** 2 + y_arcsec ** 2 )
225225
226- if outer_radius_scaled >= r_arcsec >= inner_radius_scaled :
226+ if outer_radius >= r_arcsec >= inner_radius :
227227 mask [y , x ] = False
228228
229229 return mask
@@ -233,8 +233,8 @@ def mask_2d_circular_annular_from_shape_2d_pixel_scales_and_radii(
233233def mask_2d_circular_anti_annular_from_shape_2d_pixel_scales_and_radii (
234234 shape_2d ,
235235 pixel_scales ,
236- inner_radius_scaled ,
237- outer_radius_scaled ,
236+ inner_radius ,
237+ outer_radius ,
238238 outer_radius_2_scaled ,
239239 centre = (0.0 , 0.0 ),
240240):
@@ -255,8 +255,8 @@ def mask_2d_circular_anti_annular_from_shape_2d_pixel_scales_and_radii(
255255 r_arcsec = np .sqrt (x_arcsec ** 2 + y_arcsec ** 2 )
256256
257257 if (
258- inner_radius_scaled >= r_arcsec
259- or outer_radius_2_scaled >= r_arcsec >= outer_radius_scaled
258+ inner_radius >= r_arcsec
259+ or outer_radius_2_scaled >= r_arcsec >= outer_radius
260260 ):
261261 mask [y , x ] = False
262262
@@ -279,7 +279,7 @@ def elliptical_radius_from_y_x_phi_and_axis_ratio(y_arcsec, x_arcsec, phi, axis_
279279
280280@decorator_util .jit ()
281281def mask_2d_elliptical_from_shape_2d_pixel_scales_and_radius (
282- shape_2d , pixel_scales , major_axis_radius_scaled , axis_ratio , phi , centre = (0.0 , 0.0 )
282+ shape_2d , pixel_scales , major_axis_radius , axis_ratio , phi , centre = (0.0 , 0.0 )
283283):
284284 """Compute an elliptical mask from an input major-axis mask radius, axis-ratio, rotational angle phi, shape and \
285285 centre.
@@ -292,7 +292,7 @@ def mask_2d_elliptical_from_shape_2d_pixel_scales_and_radius(
292292 The (y,x) shape of the mask in unit_label of pixels.
293293 pixel_scales : (float, float)
294294 The arc-second to pixel conversion factor of each pixel.
295- major_axis_radius_scaled : float
295+ major_axis_radius : float
296296 The major-axis (in arc seconds) of the ellipse within which pixels are unmasked.
297297 axis_ratio : float
298298 The axis-ratio of the ellipse within which pixels are unmasked.
@@ -329,7 +329,7 @@ def mask_2d_elliptical_from_shape_2d_pixel_scales_and_radius(
329329 y_arcsec , x_arcsec , phi , axis_ratio
330330 )
331331
332- if r_arcsec_elliptical <= major_axis_radius_scaled :
332+ if r_arcsec_elliptical <= major_axis_radius :
333333 mask [y , x ] = False
334334
335335 return mask
@@ -339,10 +339,10 @@ def mask_2d_elliptical_from_shape_2d_pixel_scales_and_radius(
339339def mask_2d_elliptical_annular_from_shape_2d_pixel_scales_and_radius (
340340 shape_2d ,
341341 pixel_scales ,
342- inner_major_axis_radius_scaled ,
342+ inner_major_axis_radius ,
343343 inner_axis_ratio ,
344344 inner_phi ,
345- outer_major_axis_radius_scaled ,
345+ outer_major_axis_radius ,
346346 outer_axis_ratio ,
347347 outer_phi ,
348348 centre = (0.0 , 0.0 ),
@@ -358,14 +358,14 @@ def mask_2d_elliptical_annular_from_shape_2d_pixel_scales_and_radius(
358358 The (y,x) shape of the mask in unit_label of pixels.
359359 pixel_scales : (float, float)
360360 The arc-second to pixel conversion factor of each pixel.
361- inner_major_axis_radius_scaled : float
361+ inner_major_axis_radius : float
362362 The major-axis (in arc seconds) of the inner ellipse within which pixels are masked.
363363 inner_axis_ratio : float
364364 The axis-ratio of the inner ellipse within which pixels are masked.
365365 inner_phi : float
366366 The rotation angle of the inner ellipse within which pixels are masked, (counter-clockwise from the \
367367 positive x-axis).
368- outer_major_axis_radius_scaled : float
368+ outer_major_axis_radius : float
369369 The major-axis (in arc seconds) of the outer ellipse within which pixels are unmasked.
370370 outer_axis_ratio : float
371371 The axis-ratio of the outer ellipse within which pixels are unmasked.
@@ -410,8 +410,8 @@ def mask_2d_elliptical_annular_from_shape_2d_pixel_scales_and_radius(
410410 )
411411
412412 if (
413- inner_r_arcsec_elliptical >= inner_major_axis_radius_scaled
414- and outer_r_arcsec_elliptical <= outer_major_axis_radius_scaled
413+ inner_r_arcsec_elliptical >= inner_major_axis_radius
414+ and outer_r_arcsec_elliptical <= outer_major_axis_radius
415415 ):
416416 mask [y , x ] = False
417417
0 commit comments