-
Notifications
You must be signed in to change notification settings - Fork 4
imUtil.art
The imUtil.art package contains functions for generating artificial astronomical images including background and sources.
- imUtil.art.injectArtSrc
- imUtil.art.directInjectSources
- imUtil.art.injectStamps
Make an artificial sky image with rotated and jitter-blurred source point source functions (PSFs) injected to the catalog positions. The mandatory inputs are the image sizes, the pixel positions of the emission sources, their integral count rates, and their PSF stamps (it is also possible to use one PSF stamp for all the sources). It is possible to rotate the source PSFs by individual angles or by a single angle for all the sources. The outputs are a 2D array containing the resulting source image and a 2+1 D array of rotated and jitter-blurred source PSFs.
% Make a SizeX x SizeY sky image containing images of input sources all rotated by -90 deg
% (X, Y, CPS are vectors, PSF is either a 2D or a 3D array):
[Image, JPSF] = imUtil.art.injectArtSrc (X, Y, CPS, SizeX, SizeY, PSF, 'RotatePSF', -90);
In an given artificial sky image inject a list of input sources to their catalog positions with source point spread functions (PSFs) scaled relative to the image pixel size by a given factor. The mandatory inputs are the initial sky image (without sources), a 3-columnt table of sources (X, Y, full band flux normalization), a pixel scaling factor, and a 2+1 D array of source PSFs. The output is a 2D array containing the resulting sky image.
% Inject into Image0 all the source PSFs scaled by the factor Scaling at positions given by Cat:
Image1 = imUtil.art.directInjectSources (Image0, Cat, Scaling, PSF);
Make an artificial sky image from input source stamps and background. Optionally add noise and/or subtract the newly constructed image from another one ('Args.InputImage') or add to it. The mandatory inputs are a cube of PSF stamps (M x M x N objects) or a cell array of PSF stamps (for the case the PSF size varies), and an array of source fluxes (in counts). The output is a 2D array containing the resulting sky image and (optionally) a sum or difference of the 'Args.InputImage' and the constructed artificial sky image.
Im = imUtil.art.injectStamps(XY,PSF,F,'Back',200.);
AstroPack/MAATv2 - MATLAB Astronomy & Astrophysics Toolbox
- AstroPack/MAATv2 content
- Install
- Coding conventions
- Getting Started
- List of all functions, classes, and methods
- startup file
- configuration files
- New functions and changes log
- Pipeline tasks
- Requested Functionality
- unitTest
- [Introduction to image processing]
- The imUtil package
- The imProc package
- [The lcUtil package]
- [Spectra processing]
- AstroSpec class
- [imProc.spec]
- [pipelines]
- Generate a calibrated source catalog from an image
- Forced photometry
- [Astrometry-related topics]
- Registration and coaddition
- [Image subtraction and transient detection]
- Asteroids ephemeris and matching to sources
- Quering an AstroDb database
- [The celestial package - coordinates and epehemerides]
- [celestial.coo]
- celestial.time
- celestial.map
- celestial.Kepler
- celestial.SolarSys
- celestial.INPOP
- [celestial.ephem]
- celestial.OrbitalEl
- celestial.conjunctions
- [celestial.Targets]
- [celestial.scheduling]
- celestial.earth
- [celestial.htm]
- [celestial.pm]
- [celestial.meterors]
- [celestial.rigidBody]
- celestial.search
- [celestial.stars]
- celestial.proj
- celestial.grid
- [The astro package]
- [Cosmology]
- [Spectra]
- [Gravitational Lensing]
- [binary]
- extinction
- [occultation]
- stars
- [supernova]
- constant - physical constants
- convert - physical units conversions
- [timeSeries - Time series analysis tools]
- [arma]
- [bin]
- [detrend]
- [fit]
- [fold]
- [interp]
- [period]
- [rand]
- [stat]
- [time]
- [xcorr]
- [timeDelay]
- [Virtual observatory and catalogs]
- [Plotting tools]
- [General tools]
- tools package
- www package
- [io package]
- [Database]
- [Low-level classes]
- [Base and Component]
- [Msg loggers and syslog]
- [Developers]