|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object skyview.executive.Imager
public class Imager
This class generates an image or images from user inputs.
Output images are created by sampling one or more input images
into a user specified grid of pixels.
Usage:
java skyview.geometry.test.Imager [key=value] [key=value] ...
If the code is being executed from Jar file, then use
java -jar skyview.jar [key=value] [key=value]...
The field keys are not case sensitive but the values may be.
Valid field keys include:
The following options control where the imager task finds survey data.
The following options control the classes that are used in processing the
user request. Most users can ignore these.
Field Summary | |
---|---|
protected double |
bin0
The beginning of the first pixel in energy space. |
protected CoordinateSystem |
c
The CoordinateSystem object for the output image. |
protected Image[] |
cand
The candidate images for use in resampling |
protected double |
dBin
The width of pixels in energy space |
protected DepthSampler |
dsamp
The energy sampler object used when creaing the output image. |
protected double |
lat
The lon/lat (or RA/dec) coordinates of the output image. |
protected double |
lon
The lon/lat (or RA/dec) coordinates of the output image. |
protected Image |
output
The current output image |
protected Projection |
p
The Projection object for the output image. |
protected Scaler |
s
The Scaler object for the output image. |
protected Sampler |
samp
The sampler object used to create the output image. |
protected Survey |
surv
The current Survey object being used. |
Constructor Summary | |
---|---|
Imager()
Initialize the imager. |
Method Summary | |
---|---|
void |
checkUpdateSettings()
|
void |
clearImageCache()
|
void |
createFitsFile()
Create the FITS file |
protected void |
doProcess(java.lang.String type)
|
void |
dynoProcess(java.lang.String name)
|
Image[] |
getCandidates()
Get the candidate images that may be used for resampling |
double[] |
getEdgeAdjustments()
Get any adjustments made to image intensities to minimize edge effects. |
java.lang.Object |
getImageData()
Get the output data as 1-d double array |
static Imager |
getImager()
Get an Imager object -- normally the last one created. |
double |
getLat()
Get the central latitude/declination of the output image |
double |
getLon()
Get the central longitude/RA of the output image |
int |
getPixelDepth()
Get the energy depth of the output image |
int |
getPixelHeight()
Get the height of the output image in pixels |
int |
getPixelWidth()
Get the width of the output image in pixels |
java.lang.String |
getSamplerName()
Get the sampler name. |
Scaler |
getScaler()
Get the Scaler used for the output image. |
static double |
getSum(double[] arr)
|
Survey |
getSurvey()
Get the current survey being processed |
protected skyview.executive.Imager.ImageState |
haveImage(java.lang.String surveyID,
WCS wcs)
|
boolean |
init()
|
Image |
loadAndProcessSurvey(java.lang.String surveyID)
|
protected Image[] |
loadCandidates(Position pos)
|
protected Image |
loadImage()
|
protected int[] |
loadMatch(java.lang.String surveyID)
|
protected Position |
loadPosition()
|
protected void |
loadSamplers()
|
protected Survey |
loadSurvey(java.lang.String surveyID)
|
protected WCS |
loadWCS()
|
static void |
main(java.lang.String[] args)
Generate an image given the input parameters. |
void |
postprocessSurvey()
|
void |
processSurvey(java.lang.String surveyID)
Process a particular survey. |
void |
run()
Run the command |
void |
run(java.lang.String[] args)
Run an image with a given set of arguments. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double bin0
protected double dBin
protected Scaler s
protected Projection p
protected CoordinateSystem c
protected Sampler samp
protected DepthSampler dsamp
protected double lon
protected double lat
protected Survey surv
protected Image[] cand
protected Image output
Constructor Detail |
---|
public Imager()
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public java.lang.String getSamplerName()
public Scaler getScaler()
public java.lang.Object getImageData()
public double getLon()
public double getLat()
public Survey getSurvey()
public double[] getEdgeAdjustments()
public Image[] getCandidates()
public int getPixelDepth()
public int getPixelWidth()
public int getPixelHeight()
public void run(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public void checkUpdateSettings()
public boolean init() throws java.lang.Exception
java.lang.Exception
public void run() throws java.lang.Exception
java.lang.Exception
protected Survey loadSurvey(java.lang.String surveyID) throws java.lang.Exception
java.lang.Exception
protected WCS loadWCS() throws java.lang.Exception
java.lang.Exception
protected Position loadPosition() throws java.lang.Exception
java.lang.Exception
protected Image loadImage() throws java.lang.Exception
java.lang.Exception
protected Image[] loadCandidates(Position pos) throws java.lang.Exception
java.lang.Exception
protected void loadSamplers() throws java.lang.Exception
java.lang.Exception
protected int[] loadMatch(java.lang.String surveyID) throws java.lang.Exception
java.lang.Exception
protected void doProcess(java.lang.String type) throws java.lang.Exception
java.lang.Exception
public void dynoProcess(java.lang.String name) throws java.lang.Exception
java.lang.Exception
public void clearImageCache()
protected skyview.executive.Imager.ImageState haveImage(java.lang.String surveyID, WCS wcs)
public void processSurvey(java.lang.String surveyID) throws java.lang.Exception
java.lang.Exception
public static double getSum(double[] arr)
public Image loadAndProcessSurvey(java.lang.String surveyID) throws java.lang.Exception
java.lang.Exception
public void postprocessSurvey() throws java.lang.Exception
java.lang.Exception
public void createFitsFile() throws java.lang.Exception
java.lang.Exception
public static Imager getImager()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |