|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.CommandLineParser
astro.fits.AmplifierCrosstalk.Simul
public static class AmplifierCrosstalk.Simul
Test class to generate artificial illumination fits files. This class generates a single illumination fit, thus you have to call this class N times for N amplifiers.
It allows the user to specify an illumintion quadrant (0...N-1) using
the -qdr switch. In this quadrant, the illumination is non-zero in a
ring around -center, outer radius and inner radius -radius. The
illumination peaks in the central circle to -illu, from where it
falls off according to 1/cosh(d*pixel), where pixel is the distance
to the central circle and d is specified with -d. For all other, N-1,
quadrants, that will be generated as individual fits extensions in a
single fits, the user has to specify a response function with
-response xq,yq,Iq,fwhm;x... . Each four-tupel describes the quadrant
response function by specifying the central pixel xq,yq where the
crosstalk peaks with Iq, at distances from xq,yq the crosstalk falls
off like a Gaussian, its fwhm specified in fwhm. Use semicolon to
separate the N-1 response functions for all quadrant. The resulting
fits will be writtn to -o.
Note that the size of the amplifiers section is specified, not the
size of the CCD.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class util.CommandLineParser |
|---|
CommandLineParser.Test |
| Field Summary | |
|---|---|
private static String |
FOOT
The footer message. |
String |
ONE
|
String |
TWO
|
private static Map<String,String> |
USE
The usage map. |
| Constructor Summary | |
|---|---|
AmplifierCrosstalk.Simul()
|
|
| Method Summary | |
|---|---|
nom.tam.fits.ImageData |
createCrosstalk(nom.tam.fits.ImageData src,
Point2D p0,
double peak,
double fwhm)
Generates the crosstalk signal. |
nom.tam.fits.Fits |
createFits(int q0,
List<VectorG> quad,
Point2D p0,
double r1,
double r2,
double adu,
double dscale,
Dimension size)
Creates an artificial fits object. |
nom.tam.fits.ImageData |
createIllumination(Point2D p0,
double r1,
double r2,
double adu,
double dscale,
Dimension size)
Generates an illuminated qudrant. |
static void |
main(String[] arg)
Reads the switches and does as told. |
boolean |
process()
Processes the command line switches. |
| Methods inherited from class util.CommandLineParser |
|---|
getArguments, getCommandLine, getCommands, getRegisteredSwitches, hasAnySwitch, hasSwitch, hasSwitch, haveAllSwitches, parse, printCommandLine, registerLine, registerSwitches, setCommands, staticUsage, usage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public String ONE
public String TWO
private static final Map<String,String> USE
private static final String FOOT
| Constructor Detail |
|---|
public AmplifierCrosstalk.Simul()
| Method Detail |
|---|
public nom.tam.fits.ImageData createIllumination(Point2D p0,
double r1,
double r2,
double adu,
double dscale,
Dimension size)
public nom.tam.fits.ImageData createCrosstalk(nom.tam.fits.ImageData src,
Point2D p0,
double peak,
double fwhm)
public nom.tam.fits.Fits createFits(int q0,
List<VectorG> quad,
Point2D p0,
double r1,
double r2,
double adu,
double dscale,
Dimension size)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
public boolean process()
throws nom.tam.fits.FitsException,
IOException
nom.tam.fits.FitsException
IOException
public static void main(String[] arg)
throws ParseException,
nom.tam.fits.FitsException,
IOException
ParseException
nom.tam.fits.FitsException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||