iful.flat_modeling¶
Flat 2D lens and source modeling interface using Lenstronomy.
This module provides the FlatModel class, which initializes 2D photometric modeling parameters and sets up coordinate transformations and Lenstronomy data lists for lensed system fitting.
Classes
|
2D photometric modeling class interfacing with Lenstronomy. |
- class iful.flat_modeling.FlatModel(imageset, lensmodel, sourcemodel)[source]¶
Bases:
object2D photometric modeling class interfacing with Lenstronomy.
- lensmodel¶
List of Lenstronomy lens model profile names.
- Type:
list of str
- sourcemodel¶
List of Lenstronomy source light model profile names.
- Type:
list of str
- init_pos_fit¶
Results of initial position fitting.
- Type:
optional
- init_fitting_seq¶
Active fitting sequence instance for optimization.
- Type:
Lenstronomy FittingSequence or None
- init_pso_fitting_seq¶
Particle Swarm Optimization fitting sequence.
- Type:
optional
- init_fit¶
Initial optimization fit results.
- Type:
optional
- init_pso_fit¶
Dictionary containing PSO best-fit kwargs parameters.
- Type:
dict or None
- mcmc_chains¶
MCMC sampling chains.
- Type:
numpy.ndarray or None
- header_wcs¶
WCS header dictionary from auxiliary info.
- Type:
astropy.io.fits.Header
- init_lens_centers¶
Lens center coordinates converted from pixel to RA/Dec offset (arcsec).
- Type:
numpy.ndarray
- init_img_centers¶
Image position coordinates converted from pixel to RA/Dec offset (arcsec).
- Type:
numpy.ndarray
- multi_band_list¶
Lenstronomy multi-band list [kwargs_data, kwargs_psf, kwargs_numerics].
- Type:
list
- convert_pixel_to_ra_dec(locations)[source]¶
Convert pixel coordinates to RA and Dec relative sky offsets (in arcseconds).
- Parameters:
locations (array-like) – List or array of (x, y) pixel coordinates.
- Returns:
Array of shape (N, 2) containing (RA, Dec) offsets in arcseconds.
- Return type:
numpy.ndarray