Intensity modelling for multiply-imaged objects
Project description
Mimical (Modelling the Intensity of Multiply-Imaged Celestial Ancient Light)
Mimical is an intensity modelling code for multiply-imaged objects, performing simultaenous Bayseian inference of model parameters via the nested sampling algorithm. Mimical supports any astropy 2D model, and supports user defined parameter polynomial depenency with image wavelength.
Installation
Mimical can be installed with pip:
pip install mimical
Required input
images - 3D image array with dimensions (Nfilters, N_y, N_x)
filt_list - An array of paths to filters curves of dimension N_{filters}
psfs - 3D PSF array with dimensions (Nfilters, M_y, M_x)
mimical_prior - A Mimical prior
Mimical prior
Below is an example mimical prior for a run using the default astropy sersic model. The first set of elements must match the astropy model parameter names. The element following this must be named psf_pa and this traces the rotation of the PSF. The final two elements are the most complex in nature. This includes the rms parameter and the flux_to_counts parameter. The rms parameter traces the rms noise in the image; this can be fit with Mimical but it is highly recommended to provide it (see Fixing paramters). This is also the case for flux_to_counts, which helps Mimical calculate the poisson uncertainty associated with the generated model; this can easily be provided by the user with information on the gain and exposure time.
mimical_prior = {}
Optional input and parameters
astropy_model = Sersic2D() - Any astropy 2D model
pool = None - Number of cores to parallelise likelihood calculations to
sampler = Nautilus - The nested sampler to use, other options include Dynesty
oversample_boxlength = 15 - Length of box in the centre of the image to perform oversampling in
oversample_factor = 10 - Factor by which to oversample inside the above box
sextractor_clean = False - Whether or not to let Sextractor clean the images of other objects
sextractor_target_maxdistancepix='default' - Radius from the image centre at which Sextractor discards the closest object as contamination. Needed for when the target object is undetected.
Fixing parameters
You can fix any of the parameters in the Mimical prior by setting the first element in the parameter tuple equal to either a float / int / list / ndarray. For instance, to keep x_0 constant across all images, one would pass a float/int and choose the options ('Polynomial', 0). Or, to supply the RMS for each image separately, one would pass a list/ndarray of length Nfiltersand choose the options (Individual).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mimical-0.2.0.tar.gz.
File metadata
- Download URL: mimical-0.2.0.tar.gz
- Upload date:
- Size: 25.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8ac764b6f5ed283fe933bb9da5b2d552fd6584502628c4c382482ec41de2a5f
|
|
| MD5 |
084d7af6b98d67c0bc6645223b3da347
|
|
| BLAKE2b-256 |
d9440a65a338fec7d9e2beae3a2450c96e9fd4db1c99dce045929969eb3669bf
|
File details
Details for the file mimical-0.2.0-py3-none-any.whl.
File metadata
- Download URL: mimical-0.2.0-py3-none-any.whl
- Upload date:
- Size: 26.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c779317f6f8b03ce7047fb99bb3cc3c2d9d2146649c6090739590276e9814b7
|
|
| MD5 |
c328db922957e2724da113f7f32c501d
|
|
| BLAKE2b-256 |
e6d2054d251fb22ee2df86bdf0d33efddbcd69d5c5908f930d071b9ec143bb68
|