craftutils.wrap.galfit.feedme_model(object_type: str, skip_in_output: bool, position: tuple[float, float], fit_position: bool | tuple[bool, bool], *args)

Generate the input file lines for an arbitrary model for use with GALFIT. :param object_type: string indicating the type of model, to be parsed by GALFIT. :param skip_in_output: Skip in output image block?

Corresponds to item Z) in the GALFIT feedme definition.

Parameters
position: tuple[float, float]

Tuple containing (x, y).

fit_position: bool | tuple[bool, bool]

Tuple containing (fit_x, fit_y), each specifying whether to fit x and y position respectively.

*args

(value, fit), with value being the initial guess for a parameter and fit being a boolean indicating whether this parameter should be fit for (True) or held fixed (False). If value is provided without fit, fit defaults to True.

Returns

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