|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
util.PropertyResources
util.PropertyBundles
astro.fits.Icat
astro.fits.IcatFinalize
public class IcatFinalize
Last class in the chain of ICAT-preparation tools. This class again reads
the science lookup tables and copies the final, reduced frame on the
original location, but augmented by #ICATFINAL to indicate this
frame as the final, single-extension ICAT frame. The sextractor output
is also copied to this location, with the SEXTRACTOR extension.
This may be fed into the stella db on the wifsip table, using
| Nested Class Summary | |
|---|---|
static class |
IcatFinalize.Products
The final data products. |
| Nested classes/interfaces inherited from class astro.fits.Icat |
|---|
Icat.Compress, Icat.Snoop, Icat.Uncompress |
| Nested classes/interfaces inherited from class util.PropertyResources |
|---|
PropertyResources.URLResource |
| Field Summary | |
|---|---|
private static String |
DEFEXTENSIONCARDS
Default cards that remain in extension. |
private static String |
DEFKEEP
Default we keep the data, the mosaic, and the flat-field corr. |
private static boolean |
DEFONLYCLEAN
Default only act on clean targets. |
private static String |
DEFREMOVECARDS
Default cards that are removed. |
private static boolean |
DEFWASJOINED
Default only act on clean targets. |
private List<IcatFinalize.Products> |
keep
The list of products we want to keep. |
static String |
KEY_EXTENSIONCARDS
Cards the are left in the extension section, all others moved up. |
static String |
KEY_KEEP
Which data products I want to keep. |
static String |
KEY_ONLYCLEAN
If true, we only proceed if a clean output dir was encountered. |
static String |
KEY_REMOVECARDS
Cards that are removed, if present. |
static String |
KEY_WASJOINED
If true, we also check for joined files.. |
private static String |
PRODUCTKEY
|
| Fields inherited from class util.PropertyBundles |
|---|
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES |
| Fields inherited from class util.PropertyResources |
|---|
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset |
| Fields inherited from class util.PropertyContainer |
|---|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR |
| Fields inherited from interface util.ResourceSupplying |
|---|
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME |
| Fields inherited from interface util.PropertySupplying |
|---|
CONFIG, KEY_CLASS |
| Constructor Summary | |
|---|---|
IcatFinalize(Map<String,String> prop)
Defaults the data products to keep permanently. |
|
| Method Summary | |
|---|---|
private boolean |
bias(String prod,
String ext,
String rem)
Method called to copy the bias subtracted, per quadrant fits to a single fits with four extension. |
boolean |
checkLookup()
We check, if the restored lookup-tables can be orderly matched to files in the output directories. |
private boolean |
data(String prod,
String ext,
String rem)
Method called to copy the sextractor output files to the original source directory. |
private boolean |
flat(String prod,
String ext,
String rem)
Method called to copy the bias/dark subtracted, flat normalized per quadrant fits to a single fits with four extension. |
private boolean |
flatSigma(String prod,
String ext,
String rem)
Method called to preserve the sigma maps master flat. |
boolean |
generateProducts()
Generates all data products requested. |
void |
init()
On init, we restore the lookup tables and prepare the fits-key jugling. |
static void |
main(String[] arg)
|
private boolean |
masterBias(String prod,
String ext,
String rem)
Method called to preserve the master bias. |
private boolean |
masterFlat(String prod,
String ext,
String rem)
Method called to preserve the normalized master flat. |
private boolean |
mosaic(String prod,
String ext,
String rem)
Method called to copy the mosaic file to the original source directory. |
private boolean |
quadrants(Map<File,String> restore,
String icatext,
String ext,
String prod,
String rem)
Method called to merge four single-quadrant output files into a single fits and compress it. |
private static int |
removeMatch(List<String> ls,
Collection<String> trunk,
String need,
String... allow)
We scan all names in the trunk collection for occurences in the file listing, in a way that we throw an exception if a file trunk+need is not found, and report missing files according to trunk+allow[]. |
| Methods inherited from class astro.fits.Icat |
|---|
addExtension, compress, getIcatInputExtension, getIcatName, getIcatOutputExtension, getInput, getMain, getOutput, getQuadrantInput, getQuadrantOutput, getSerializeFile, reducedDir, restoreLookup, saveLookup, sendMail, uncompress |
| Methods inherited from class util.PropertyBundles |
|---|
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource |
| Methods inherited from class util.PropertyResources |
|---|
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
|---|
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface util.ResourceSupplying |
|---|
getResource, getResourceAsStream, getResources |
| Methods inherited from interface util.PropertySupplying |
|---|
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
| Field Detail |
|---|
public static final String KEY_KEEP
public static final String KEY_ONLYCLEAN
public static final String KEY_WASJOINED
public static final String KEY_EXTENSIONCARDS
public static final String KEY_REMOVECARDS
private static final String DEFKEEP
private static final boolean DEFONLYCLEAN
private static final boolean DEFWASJOINED
private static final String DEFEXTENSIONCARDS
private static final String DEFREMOVECARDS
private static final String PRODUCTKEY
private List<IcatFinalize.Products> keep
| Constructor Detail |
|---|
public IcatFinalize(Map<String,String> prop)
| Method Detail |
|---|
public void init()
init in interface Initializableinit in class Icatpublic boolean checkLookup()
private static int removeMatch(List<String> ls,
Collection<String> trunk,
String need,
String... allow)
public boolean generateProducts()
private boolean mosaic(String prod,
String ext,
String rem)
private boolean data(String prod,
String ext,
String rem)
private boolean bias(String prod,
String ext,
String rem)
throws nom.tam.fits.FitsException,
IOException
nom.tam.fits.FitsException
IOException
private boolean flat(String prod,
String ext,
String rem)
throws nom.tam.fits.FitsException,
IOException
nom.tam.fits.FitsException
IOException
private boolean masterFlat(String prod,
String ext,
String rem)
throws nom.tam.fits.FitsException,
IOException
nom.tam.fits.FitsException
IOException
private boolean flatSigma(String prod,
String ext,
String rem)
throws nom.tam.fits.FitsException,
IOException
nom.tam.fits.FitsException
IOException
private boolean masterBias(String prod,
String ext,
String rem)
throws nom.tam.fits.FitsException,
IOException
nom.tam.fits.FitsException
IOException
private boolean quadrants(Map<File,String> restore,
String icatext,
String ext,
String prod,
String rem)
throws nom.tam.fits.FitsException,
IOException
nom.tam.fits.FitsException
IOExceptionpublic static void main(String[] arg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||