craftutils.wrap.galfit.feedme_sky_model(background_center: float = <Quantity 1.392 adu>, fit_background_center: bool = True, gradient_x: float = <Quantity 0. adu / pix>, fit_gradient_x: bool = True, gradient_y: float = <Quantity 0. adu / pix>, fit_gradient_y: bool = True, skip_in_output: bool = False, **kwargs)

Generate input file lines in the GALFIT feedme format, for sky model. Parameters provided in valid astropy units will be converted to the units used by GALFIT. :param background_center: Background level at centre of fitting region.

Corresponds to item 1) in the GALFIT feedme definition.

Parameters
fit_background_center

If True, GALFIT will fit for background_center; if False, it will remain fixed.

gradient_x

dsky/dx in ADU / pixel Corresponds to item 2) in the GALFIT feedme definition.

fit_gradient_x

If True, GALFIT will fit for gradient_x; if False, it will remain fixed.

gradient_y

dsky/dy in ADU / pixel Corresponds to item 3) in the GALFIT feedme definition.

fit_gradient_y

If True, GALFIT will fit for gradient_y; if False, it will remain fixed.

skip_in_output

Skip in output image block? Corresponds to item Z) in the GALFIT feedme definition.

pix_scale

pixel scale for conversion from angular sizes (eg arcsec) to pixels.

Returns

List of strings corresponding to lines in a .feedme input file, suitable for use with open().writelines().