-
craftutils.wrap.galfit.galfit_feedme(feedme_path: str, input_file: str, output_file: str, zeropoint: Quantity, plate_scale: tuple[float, float] | float, sigma_file: str | None =
None, psf_file: str | None =None, psf_fine_sampling: int | None =None, mask_file: str | None =None, constraint_file: str | None =None, fitting_region_margins: tuple[int, int, int, int] =(1, 93, 1, 93), convolution_size: tuple[int, int] | int =(100, 100), display_type: str ='regular', run_type: str | int =0, models: list[dict] ={}, sky_model_init: dict | None =None) Generates and writes full GALFIT input .feedme parameter file. Any unset values will be left as the GALFIT defaults (see param/galfit/galfit.feedme) :param feedme_path: Path to write parameter file to. :param input_file: Path to input image FITS file.
Corresponds to item A) in the GALFIT feedme definition.
- Parameters¶
- output_file: str¶
Path to write output image block FITS file. Corresponds to item B) in the GALFIT feedme definition.
- zeropoint: Quantity¶
Path to write output image block FITS file. Corresponds to item J) in the GALFIT feedme definition.
- plate_scale: tuple[float, float] | float¶
The pixel scale of the image, in arcsec / pixel. If provided as a tuple: (plate_scale_x, plate_scale_y) Corresponds to item I) in the GALFIT feedme definition.
- sigma_file: str | None =
None¶ Path to sigma image, if used. GALFIT is quite good at generating these internally. Corresponds to item C) in the GALFIT feedme definition.
- psf_file: str | None =
None¶ Path to input PSF image. Corresponds to item D) in the GALFIT feedme definition.
- psf_fine_sampling: int | None =
None¶ PSF fine sampling factor relative to data; ie, if the PSF image has double the resolution, psf_fine_sampling is 2. GALFIT only understands integers for this value. Corresponds to item E) in the GALFIT feedme definition.
- mask_file: str | None =
None¶ Path to pixel mask file, a FITS image or ASCII coord list. Corresponds to item F) in the GALFIT feedme definition.
- constraint_file: str | None =
None¶ Path to file with parameter constraints (ASCII file). Corresponds to item G) in the GALFIT feedme definition.
- fitting_region_margins: tuple[int, int, int, int] =
(1, 93, 1, 93)¶ Image region to fit (xmin xmax ymin ymax) in pixels. Corresponds to item H) in the GALFIT feedme definition.
- convolution_size: tuple[int, int] | int =
(100, 100)¶ Size of the convolution box (x y) in pixels. Corresponds to item I) in the GALFIT feedme definition.
- display_type: str =
'regular'¶ regular, curses or both. I don’t actually know what this does. Corresponds to item O) in the GALFIT feedme definition.
- run_type: str | int =
0¶ optimize, model, imgblock or subcomps, in that order.
- models: list[dict] =
{}¶ List of dicts containing model initial guesses, excluding sky.
- sky_model_init: dict | None =
None¶ A model for the sky. Not required as GALFIT finds this pretty easily.
- Returns¶
List of strings corresponding to lines in a .feedme input file, suitable for use with open().writelines().