- craftutils.wrap.galfit.feedme_rot(rot_type: str = 'log', r_in: ~astropy.units.quantity.Quantity = <Quantity 0. pix>, fit_r_in: bool = True, r_out: ~astropy.units.quantity.Quantity = <Quantity 5. pix>, fit_r_out: bool = True, theta_out: ~astropy.units.quantity.Quantity = <Quantity 180. deg>, fit_theta_out: bool = True, r_ws: ~astropy.units.quantity.Quantity = <Quantity 2. pix>, fit_r_ws: bool = True, theta_inc: ~astropy.units.quantity.Quantity = <Quantity 45. deg>, fit_theta_inc: ~astropy.units.quantity.Quantity = True, theta_pa: ~astropy.units.quantity.Quantity = <Quantity 45. deg>, fit_theta_pa: bool = True, pix_scale: ~typing.Tuple = (), **kwargs)
Generate input file lines in the GALFIT feedme format, for coordinate rotation (eg for fitting spiral arms). Parameters provided in valid astropy units will be converted to the units used by GALFIT. :param rot_type: “log” or “power”, determining which rotation function to use.
Corresponds to item R0) in the GALFIT feedme definition.
- Parameters¶
- r_in
Spiral inner radius, in pixels. If this goes extremely negative in fitting, fix to 0. Corresponds to item R1) in the GALFIT feedme definition.
- fit_r_in
If True, GALFIT will fit for r_in; if False, it will remain fixed.
- r_out
Spiral outer radius, in pixels. Corresponds to item R2) in the GALFIT feedme definition.
- fit_r_out
If True, GALFIT will fit for r_out; if False, it will remain fixed.
- theta_out
Cumulative rotation to outer radius, in degrees. Corresponds to item R3) in the GALFIT feedme definition.
- fit_theta_out
If True, GALFIT will fit for theta_out; if False, it will remain fixed.
- r_ws
winding scale radius, in pixels. Corresponds to item R4) in the GALFIT feedme definition.
- fit_r_ws
If True, GALFIT will fit for r_ws; if False, it will remain fixed.
- theta_inc
inclination to line-of-sight, in degrees. Corresponds to item R9) in the GALFIT feedme definition.
- fit_theta_inc
If True, GALFIT will fit for theta_inc; if False, it will remain fixed.
- theta_pa
Position angle of the axis about which the galaxy is rotated for inclination. Corresponds to item R10) in the GALFIT feedme definition.
- fit_theta_pa
If True, GALFIT will fit for theta_pa; if False, it will remain fixed.
- 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().