- craftutils.wrap.galfit.feedme_sersic_model(x: ~astropy.units.quantity.Quantity, y: ~astropy.units.quantity.Quantity, int_mag: ~astropy.units.quantity.Quantity, fit_x: bool = True, fit_y: bool = True, fit_int_mag: bool = True, r_e: ~astropy.units.quantity.Quantity = <Quantity 3. pix>, fit_r_e: bool = True, n: float = 1.0, fit_n: bool = True, axis_ratio: float = 0.5, fit_axis_ratio: bool = True, position_angle: ~astropy.units.quantity.Quantity = <Quantity 0. deg>, fit_position_angle: bool = True, skip_in_output: bool = 0, rotation_params: dict = {}, pix_scale: ~typing.Tuple = (), **kwargs)
Generate input file lines in the GALFIT feedme format, for sersic model. Parameters provided in valid astropy units will be converted to the units used by GALFIT. :param x: x-position of model centre, in pixels.
Corresponds to first component of item 1) in the GALFIT feedme definition.
- Parameters¶
- y
y-position of model centre, in pixels. Corresponds to second component of item 1) in the GALFIT feedme definition.
- int_mag
integrated magnitude of model. Corresponds to item 3) in the GALFIT feedme definition.
- fit_x
If True, GALFIT will fit for x; if False, it will remain fixed.
- fit_y
If True, GALFIT will fit for y; if False, it will remain fixed.
- fit_int_mag
If True, GALFIT will fit for int_mag; if False, it will remain fixed.
- r_e
Effective radius of model, in pixels. Corresponds to item 4) in the GALFIT feedme definition.
- fit_r_e
If True, GALFIT will fit for r_e; if False, it will remain fixed.
- n
Sersic index n of model. Corresponds to item 5) in the GALFIT feedme definition.
- fit_n
If True, GALFIT will fit for n; if False, it will remain fixed.
- axis_ratio
axis ratio b/a of model. Corresponds to item 9) in the GALFIT feedme definition.
- fit_axis_ratio
If True, GALFIT will fit for axis_ratio; if False, it will remain fixed.
- position_angle
position angle (PA) of model, in degrees, with up=0 and left=90 Corresponds to item 10) in the GALFIT feedme definition.
- fit_position_angle
If True, GALFIT will fit for position_angle; if False, it will remain fixed.
- skip_in_output
Skip in output image block? Corresponds to item Z) in the GALFIT feedme definition.
- rotation_params
Coordinate rotation parameters (eg for fitting spiral arms)
- 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().