-
Notifications
You must be signed in to change notification settings - Fork 4
imProc.stack
High-level functions for manipulation of astronomical images
- imProc.stack.allFunList - functions list for the imProc.stack package
- imProc.stack.addImageRedistributePixels - Add Image1 to Image according to the pixel redistribution defined by the coordinate arrays X, Y with the signal distributed amoung 4 neighbouring pixels so that the total "flux" is conserved
- imProc.stack.applyUnaryFun - Apply scalar-unary function (e.g., function that returns a scalar) on AstroImage
- imProc.stack.coadd - Coadd images in AstroImage object including pre/post normalization
- imProc.stack.coaddProperCore - Proper coaddition of images in AstroImage object
- imProc.stack.divideFactor - Divide factor (constant) from AstroImage
- imProc.stack.functionalResponse - Fit the pixel response to light as a function of intensity in a cube of images
- imProc.stack.funCube - Apply function/s on a single cube
- imProc.stack.makeMovie - Display and create a movie file from images in AstroImage or cube
- imProc.stack.stitch - Make a mosaic sky image from a set of input image files or AstroImages
- imProc.stack.subtractOffset - Remove offset (constant) from AstroImage
- imProc.stack.unitTest - unitTest for imProc.stack
First, if the images have an astrometric solution in the headers, but their WCS property is not populated:
% populate the WCS
AI.populateWCS;
Given an AstroImage object containing several images of the same field, where the images are astrometrically solved, and containing a WCS:
% Register the images against a reference image in the first element of AI(1):
RegisteredAI = imProc.transIm.imwarp(AI, AI(1));
[Result] = imProc.stack.coadd(RegisteredAI);
In many cases, you may be interested in removing the background from the images prior to coaddition: If the Back property is empty in the AstroImage, start by populating it (see also imProc.background):
AI = imProc.background.background(AI);
To subtract the background prior to coaddition (and calculate if Back property is empty):
RegisteredAI.subtractBackground;
[Result] = imProc.stack.coadd(RegisteredAI);
To make a mosaic sky image from a set of input image files.
% Make a mosaic image from coadd images of LAST residing in LastDir:
LastDir = '/home/sasha/Obs1/';
[Mosaic, AH, RemappedXY] = imProc.stack.stitch('LAST*coadd_Image*.fits','DataDir','/home/sasha/Obs1/');
The output file name will look like LAST.01.02.01_20221204.161938.037_369-08_stitched_image.fits (the beginning of the name comes from the name of the first of the input images). The Mosaic variable will contain the stitched AstroImage with Mosaic.Header containing the WCS data. The AH variable will contain the corresponding AstroHeader object, and the RemappedXY variable is a 4D-matrix containing the remapped X, Y pixel coordinates from each of the input images: [Image number, Xremapped, Yremapped, 1 -> X or 2 -> Y].
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]