|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectastro.fits.FitsStatistic
public class FitsStatistic
Link between a fits (image) and the statistic package. Similar to IRAF imstat.
| Nested Class Summary | |
|---|---|
static class |
FitsStatistic.Add
Reads a list of input files, decompresses them sequentially if necessary, adds them as doubles, but saves them as floats. |
static class |
FitsStatistic.AduMinMax
Finds the location of the minimum and maximum. |
static class |
FitsStatistic.AduSplit
Tests the fits file on the command line, if its 9th bit (value 2^8=256) is always set in the third quadrant (index number 2). |
static class |
FitsStatistic.Bias
Does bias subtraction. |
static class |
FitsStatistic.Bitstat
Gets the bit-statistic for a 16-bit fits |
static class |
FitsStatistic.CombinePixel
From two dead/hot pixel maps, retain only pixel found in both. |
static class |
FitsStatistic.Constant
Multidimensional that returns one. |
static class |
FitsStatistic.Coordinate
Multidimensional that returns the x or y of the input vector. |
static class |
FitsStatistic.Count
Counts how many pixel have ADU below the given value. |
static class |
FitsStatistic.DeadPixel
Reads an input fits and marks all pixels above the below ADU value as dead pixels. |
static class |
FitsStatistic.Flat
Does flatfielding subtraction. |
static class |
FitsStatistic.FlatSky
Tries to re-establish the zero-point offset from the _f.fits files and put it into the corresponding _mos.fits. |
static class |
FitsStatistic.HotPixel
Reads an input fits and marks all pixels above the given ADU value (default 65535) as hot pixels. |
static class |
FitsStatistic.Imstat
IRAF imstat, without the akward extension modifier. |
static class |
FitsStatistic.Line
Outputs average and std-dev of the quadrants along with header card values of the fits file. |
static class |
FitsStatistic.Mosaic
Tries to re-establish the zero-point offset from the _f.fits files and put it into the corresponding _mos.fits. |
static class |
FitsStatistic.Nomode
Reads a fits file, does an independant sky reduction on all extension found and writes the final fits. |
static class |
FitsStatistic.Normalize
Does median normalization. |
static class |
FitsStatistic.Nosky
Reads a fits file, does an independant sky reduction on all extension found and writes the final fits. |
static class |
FitsStatistic.RowMedian
Prints the median of all rows in the specified fits image. |
static class |
FitsStatistic.Scale
|
static class |
FitsStatistic.Square
Multidimensional that returns the x or y of the input vector squared. |
static class |
FitsStatistic.WeightMap
From a dead and a hot pixel map, we derive a weight map, i.e. |
static class |
FitsStatistic.XY
Multidimensional that returns x times y |
| Constructor Summary | |
|---|---|
FitsStatistic()
|
|
| Method Summary | |
|---|---|
static Vector3D[] |
aduMinMax(nom.tam.fits.ImageHDU hdu)
Returns location of minimum and maximum ADU value in the first and second index, respectively. |
static SortedMap<Double,List<Point>> |
aduSort(nom.tam.fits.ImageHDU hdu)
Sorts ADUs. |
static nom.tam.fits.ImageHDU |
avSigClipCombine(List<nom.tam.fits.ImageHDU> flat,
FitsStatistic.Scale mode,
boolean combav,
double siglo,
double sighi,
int keep,
boolean useav,
int nmax)
Combines images with the avsigclip algorithm, which is suitable for photon-noise limited data (or no read-out noise data). |
static Vector2D |
backgroundFrameMean(nom.tam.fits.ImageHDU hdu,
Rectangle box,
int thick)
Background is mean of frame, RMS is standard deviation, no clipping. |
static Vector2D |
backgroundFrameMedian(nom.tam.fits.ImageHDU hdu,
Rectangle box,
int thick)
Background is mean of frame, RMS is standard deviation, no clipping. |
static Vector2D |
backgroundMean(nom.tam.fits.ImageHDU hdu,
Rectangle box)
Background is mean of frame, RMS is standard deviation, no clipping. |
static Vector2D |
backgroundMedian(nom.tam.fits.ImageHDU hdu,
Rectangle box)
Background is mean of frame, RMS is standard deviation, no clipping. |
static Point2D |
brightestBlob(double[][] adu,
Dimension blob,
Vector1D swindle)
We scan an input image for the brightest blob. |
static Point2D |
brightestBlob(nom.tam.fits.ImageHDU src,
Rectangle window,
Dimension blob)
We scan an input image for the brightest blob. |
static Point2D |
brightestBlob(nom.tam.fits.ImageHDU src,
Rectangle window,
Dimension blob,
Vector1D swindle)
We scan an input image for the brightest blob. |
static nom.tam.fits.Fits |
debias(nom.tam.fits.Fits raw,
nom.tam.fits.Fits bias,
int numext)
Subtracts two fits from each other. |
static nom.tam.fits.ImageData |
debias(nom.tam.fits.ImageHDU raw,
nom.tam.fits.ImageHDU bias)
Subtracts two fits from each other. |
static List<VectorG> |
extractBackground(double[][] src,
nom.tam.fits.ImageHDU sig,
int nreject,
double lofac,
double hifac)
We get all the sky-background pixel in the image hdu by searching for the mode and retaining all pixel +/- lofac and hifac around it in term of adu-sigmas. |
static List<VectorG> |
extractBackground(nom.tam.fits.ImageHDU sky,
nom.tam.fits.ImageHDU sig,
int nreject,
double lofac,
double hifac)
We get all the sky-background pixel in the image hdu by searching for the mode and retaining all pixel +/- lofac and hifac around it in term of adu-sigmas. |
static nom.tam.fits.Fits |
flatten(nom.tam.fits.Fits raw,
nom.tam.fits.Fits flat,
int numext)
Flatfields an image by dividing through the flatfield. |
static nom.tam.fits.ImageData |
flatten(nom.tam.fits.ImageHDU raw,
nom.tam.fits.ImageHDU flat)
Subtracts two fits from each other. |
static int[] |
get16BitOccurence(nom.tam.fits.ImageHDU hdu)
If the image hdu is a 16-bit image, we return the number of occurancies a bit is set in all image data. |
static Statistic |
getAduStatistic(double[][] hdu)
Reads the entire pixel array in the HDU and return a statistic object. |
static Statistic |
getAduStatistic(nom.tam.fits.Fits fits)
Reads the first non-null image HDU in the fits file and returns the statistic to it |
static Statistic |
getAduStatistic(nom.tam.fits.Fits fits,
int skip)
Skips the first non-null image HDU in the fits file and returns the statistic to the then next valid HDU. |
static Statistic |
getAduStatistic(float[][] hdu)
Reads the entire pixel array in the HDU and return a statistic object. |
static Statistic |
getAduStatistic(nom.tam.fits.ImageHDU hdu)
Reads the entire pixel array in the HDU and return a statistic object. |
static Statistic |
getAduStatistic(nom.tam.fits.ImageHDU hdu,
Rectangle box)
Reads the stated pixel array in the HDU and return a statistic object. |
static double[][] |
getAsArray(nom.tam.fits.ImageHDU src)
Converts an image HDU to a double array, regardless of input type. |
static double[][] |
getAsArray(nom.tam.fits.ImageHDU src,
Rectangle window)
Converts an image HDU to a double array, regardless of input type. |
static float[][] |
getAsFloatArray(nom.tam.fits.ImageHDU src)
Converts an image HDU to a float array, regardless of input type. |
static float[][] |
getAsFloatArray(nom.tam.fits.ImageHDU src,
Rectangle window)
Converts an image HDU to a double array, regardless of input type. |
static Statistic |
getBackgroundStatistic(nom.tam.fits.ImageHDU hdu,
Rectangle active,
int thick)
Reads a frame for background statistics. |
static Statistic |
getRowStatistic(double[][] hdu,
int row)
Reads the entire pixel array in the HDU and return a statistic object for the specified row. |
static nom.tam.fits.Fits |
medianNormalize(nom.tam.fits.Fits raw,
int numext)
Flatfields an image by dividing through the flatfield. |
static nom.tam.fits.ImageData |
medianNormalize(nom.tam.fits.ImageHDU raw)
Subtracts two fits from each other. |
private static nom.tam.fits.ImageData |
medianNormalize(nom.tam.fits.ImageHDU raw,
Vector1D med)
|
static nom.tam.fits.ImageHDU |
minMaxCombine(List<nom.tam.fits.ImageHDU> dark,
boolean dumphi,
boolean dumplo)
Combines images by rejecting just the maximum abd/or minimum of the combined ADUs. |
static nom.tam.fits.ImageHDU |
removeMode(nom.tam.fits.ImageHDU sky,
int n,
double lofac,
double hifac)
Removes the mode of the image, can act as a simple version of background removal. |
static nom.tam.fits.ImageHDU |
removeSky(nom.tam.fits.ImageHDU sky,
Multidimensional[] model,
int n,
double lofac,
double hifac)
Models the background and removes it from the image. |
private static float[][][] |
sanityCheck(List<nom.tam.fits.ImageHDU> bias)
Takes a list of images and returns a three-dimensional double array, first index is the image number, then image column (y), followed by row data (x). |
static GeneralLinearRegression |
shuffleForRegression(List<VectorG> valid,
Multidimensional[] model,
boolean sigma)
Shuffels ADU 4-vectors with x, y, ADU, [sigma] into the format for a general linear regression and fuels them into one. |
static nom.tam.fits.ImageHDU |
zeroCombine(List<nom.tam.fits.ImageHDU> bias,
boolean combav,
double rn,
double gain)
Takes a list of input image hdus and performs a zero-combination on these. |
static nom.tam.fits.ImageHDU |
zeroCombine(List<nom.tam.fits.ImageHDU> bias,
boolean combav,
double rn,
double gain,
double siglo,
double sighi,
int keep,
boolean useav,
int nmax)
Takes a list of input image hdus and performs a zero-combination on these. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String FLATRMS
public static final String FLATSEM
public static final String FLATAV
public static final String FCOMBINE
public static final String FRMSMAX
public static final String FXRMS
public static final String FYRMS
public static final String FMAXREJ
public static final String FXMAX
public static final String FYMAX
public static final String FAVREJ
public static final String ROWGAIN
public static final String RGAINMAX
public static final String ROWMAX
public static final String RGAINMIN
public static final String ROWMIN
public static final String MMRMS
public static final String MMSEM
public static final String MMAV
public static final String MMCOMB
public static final String MMRMSMAX
public static final String MMXMAX
public static final String MMYMAX
public static final String BIASRMS
public static final String BIASSEM
public static final String BIASAV
public static final String ZRMSMAX
public static final String ZXRMS
public static final String ZYRMS
public static final String ZCOMBINE
public static final String ZMAXREJ
public static final String ZXMAX
public static final String ZYMAX
public static final String ZAVREJ
private static final String FLATRMSREM
private static final String FLATSEMREM
private static final String FLATAVREM
private static final String FRMSMAXREM
private static final String FXRMSREM
private static final String FYRMSREM
private static final String FCOMBINEREM
private static final String FMAXREJREM
private static final String FXMAXREM
private static final String FYMAXREM
private static final String FAVREJREM
private static final String ROWGAINREM
private static final String RGAINMAXREM
private static final String ROWMAXREM
private static final String RGAINMINREM
private static final String ROWMINREM
private static final String MMRMSREM
private static final String MMSEMREM
private static final String MMAVREM
private static final String MMCOMBREM
private static final String MMRMSMAXREM
private static final String MMXMAXREM
private static final String MMYMAXREM
private static final String BIASRMSREM
private static final String BIASSEMREM
private static final String BIASAVREM
private static final String ZRMSMAXREM
private static final String ZXRMSREM
private static final String ZYRMSREM
private static final String ZCOMBINEREM
private static final String ZMAXREJREM
private static final String ZXMAXREM
private static final String ZYMAXREM
private static final String ZAVREJREM
| Constructor Detail |
|---|
public FitsStatistic()
| Method Detail |
|---|
public static nom.tam.fits.Fits medianNormalize(nom.tam.fits.Fits raw,
int numext)
throws nom.tam.fits.FitsException,
IOException
nom.tam.fits.FitsException
IOException
public static nom.tam.fits.ImageData medianNormalize(nom.tam.fits.ImageHDU raw)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
private static nom.tam.fits.ImageData medianNormalize(nom.tam.fits.ImageHDU raw,
Vector1D med)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static nom.tam.fits.ImageHDU avSigClipCombine(List<nom.tam.fits.ImageHDU> flat,
FitsStatistic.Scale mode,
boolean combav,
double siglo,
double sighi,
int keep,
boolean useav,
int nmax)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static nom.tam.fits.ImageHDU minMaxCombine(List<nom.tam.fits.ImageHDU> dark,
boolean dumphi,
boolean dumplo)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static nom.tam.fits.ImageHDU zeroCombine(List<nom.tam.fits.ImageHDU> bias,
boolean combav,
double rn,
double gain)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static nom.tam.fits.ImageHDU zeroCombine(List<nom.tam.fits.ImageHDU> bias,
boolean combav,
double rn,
double gain,
double siglo,
double sighi,
int keep,
boolean useav,
int nmax)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static int[] get16BitOccurence(nom.tam.fits.ImageHDU hdu)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
private static float[][][] sanityCheck(List<nom.tam.fits.ImageHDU> bias)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException - If list is null, empty or not all images have identical size.
public static Statistic getAduStatistic(nom.tam.fits.ImageHDU hdu,
Rectangle box)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static Statistic getAduStatistic(nom.tam.fits.ImageHDU hdu)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static Statistic getBackgroundStatistic(nom.tam.fits.ImageHDU hdu,
Rectangle active,
int thick)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static Statistic getAduStatistic(double[][] hdu)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static Statistic getAduStatistic(float[][] hdu)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static Statistic getRowStatistic(double[][] hdu,
int row)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static Statistic getAduStatistic(nom.tam.fits.Fits fits)
throws nom.tam.fits.FitsException,
IOException
nom.tam.fits.FitsException
IOException
public static Statistic getAduStatistic(nom.tam.fits.Fits fits,
int skip)
throws nom.tam.fits.FitsException,
IOException
nom.tam.fits.FitsException
IOException
public static final double[][] getAsArray(nom.tam.fits.ImageHDU src)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static final double[][] getAsArray(nom.tam.fits.ImageHDU src,
Rectangle window)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static Point2D brightestBlob(nom.tam.fits.ImageHDU src,
Rectangle window,
Dimension blob)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static Point2D brightestBlob(nom.tam.fits.ImageHDU src,
Rectangle window,
Dimension blob,
Vector1D swindle)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static Vector2D backgroundMean(nom.tam.fits.ImageHDU hdu,
Rectangle box)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static Vector2D backgroundMedian(nom.tam.fits.ImageHDU hdu,
Rectangle box)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static Vector2D backgroundFrameMean(nom.tam.fits.ImageHDU hdu,
Rectangle box,
int thick)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static Vector2D backgroundFrameMedian(nom.tam.fits.ImageHDU hdu,
Rectangle box,
int thick)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static Point2D brightestBlob(double[][] adu,
Dimension blob,
Vector1D swindle)
public static final float[][] getAsFloatArray(nom.tam.fits.ImageHDU src)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static final float[][] getAsFloatArray(nom.tam.fits.ImageHDU src,
Rectangle window)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static SortedMap<Double,List<Point>> aduSort(nom.tam.fits.ImageHDU hdu)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static Vector3D[] aduMinMax(nom.tam.fits.ImageHDU hdu)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static List<VectorG> extractBackground(nom.tam.fits.ImageHDU sky,
nom.tam.fits.ImageHDU sig,
int nreject,
double lofac,
double hifac)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static List<VectorG> extractBackground(double[][] src,
nom.tam.fits.ImageHDU sig,
int nreject,
double lofac,
double hifac)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static nom.tam.fits.ImageHDU removeMode(nom.tam.fits.ImageHDU sky,
int n,
double lofac,
double hifac)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static GeneralLinearRegression shuffleForRegression(List<VectorG> valid,
Multidimensional[] model,
boolean sigma)
public static nom.tam.fits.ImageHDU removeSky(nom.tam.fits.ImageHDU sky,
Multidimensional[] model,
int n,
double lofac,
double hifac)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static nom.tam.fits.Fits flatten(nom.tam.fits.Fits raw,
nom.tam.fits.Fits flat,
int numext)
throws nom.tam.fits.FitsException,
IOException
nom.tam.fits.FitsException
IOException
public static nom.tam.fits.ImageData flatten(nom.tam.fits.ImageHDU raw,
nom.tam.fits.ImageHDU flat)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public static nom.tam.fits.Fits debias(nom.tam.fits.Fits raw,
nom.tam.fits.Fits bias,
int numext)
throws nom.tam.fits.FitsException,
IOException
nom.tam.fits.FitsException
IOException
public static nom.tam.fits.ImageData debias(nom.tam.fits.ImageHDU raw,
nom.tam.fits.ImageHDU bias)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||