I have an instance where many star cores have the red values wiped after drizzling. The same stars in the integration have high red values (>0.9) but I would not expect the values to be wholly removed / rejected during drizzle.
I managed a repair using a rather crass script to reset the Reds to 0.9:
I managed a repair using a rather crass script to reset the Reds to 0.9:
JavaScript:
function main()
{
// Get access to the currently active image window.
var window = ImageWindow.activeWindow;
// is there an active window
if ( window.isNull )
throw Error( "There is no active image window!" );
// Get access to its main view, so we can pick some properties of the image
// it encapsulates.
var view = window.mainView;
var myImage = view.image;
if (!myImage.isColor)
throw Error( "Needs to be a colour image!" );
//stick the view in a changeable mode
view.beginProcess()
//iterate the array
for (var x=1; x<myImage.width-1; x++){
//iterate along the y-axis
for (var y=1; y<myImage.height-1; y++){
if (myImage.sample(x, y, 0) < 0.01)
{
//set the value
myImage.setSample(0.9, x, y, 0);
};
};
};
//stop changing the view
view.endProcess();
}
main();