blot_nearest_exact

grizli.utils.blot_nearest_exact(in_data, in_wcs, out_wcs, verbose=True, stepsize=-1, scale_by_pixel_area=False, wcs_mask=True, fill_value=0)[source]

Own blot function for blotting exact pixels without rescaling for input and output pixel size

Parameters
in_datandarray

Input data to blot.

in_wcsWCS

Input WCS. Must have _naxis1, _naxis2 or pixel_shape attributes.

out_wcsWCS

Output WCS. Must have _naxis1, _naxis2 or pixel_shape attributes.

verbosebool, optional

If True, print information about the overlap. Default is True.

stepsizeint, optional

Step size for interpolation. If set to <=1, the function will use the explicit wcs mapping out_wcs.all_pix2world > in_wcs.all_world2pix. If > 1, will use astrodrizzle.DefaultWCSMapping(out_wcs, in_wcs, nx, ny, stepsize).

scale_by_pixel_areabool

If True, then scale the output image by the square of the image pixel scales (out**2/in**2), i.e., the pixel areas.

wcs_maskbool

Use fast WCS masking. If False, use regions.

fill_valueint/float

Value in out_data not covered by in_data.

Returns
out_datandarray

Blotted data.