Scripts

This page provides details of the PixInsight scripts and processes available for download from this site .

NBColourMapper

Repository address:
https://www.cosmicphotons.com/pi-scripts/nbcolourmapper/

The NBColour mapper allows you to combine greyscale images by “colourising” each of them with a hue and saturation of your choice and then blending them together. The script also allows the pixel intensities of each channel to be balanced and the background can be neutralised – all with a real-time preview. The script includes full documentation.

NBColourMapper has been produced in consultation with Adam Block. Adam has produced a YouTube video which is linked here. There is also further material on this script and a wealth of other material on his site at https://wwww.adamblockstudios.com

After installation the script can be found in Script>Utilities. 

NarrowbandNormalization

Repository address:
https://www.cosmicphotons.com/pi-modules/narrowbandnormalization/

The NarrowbandNormalization process has been produced in collaboration with Bill Blanshan. The process helps balance the intensities of the three channels in a narrowband image.

Bill has produced a video on his YouTube channel illustrating the use of the NarrowbandNormalization process. The video is linked here

After installation the script can be found in Process>ColorCalibration. 

StarReduction

Repository address:
https://www.cosmicphotons.com/pi-scripts/starreduction/

The StarReduction script has been produced in collaboration with Bill Blanshan. The script implements a variety of star reduction techniques, the effect of which can be seen in the real-time preview before applying them to your image.

Bill has produced a video on his YouTube channel illustrating the use of the script. The video is linked here.

After installation the script can be found in Script>Utilities. 

ScreenStars

Repository address:
https://www.cosmicphotons.com/pi-scripts/screenstars/

The ScreenStars script has been produced in collaboration with Bill Blanshan. The script facilitates star removal and replacement using the screening/unscreening blending method. It also incorporates a new approach whereby the images are “reverse stretched” to a pseudo-linear state prior to removal or replacement. This can improve colour retention in the stars, particularly when moving to a very different colour pallet (eg RGB stars to a narrowband starless image).

Bill has produced a video on his YouTube channel illustrating the use of the script. The video is linked here.

After installation the script can be found in Script>Utilities. 

DrawAnnotation

Repository address:
https://www.cosmicphotons.com/pi-scripts/drawannotation/

Sometimes you want to produce a version of your image with an arrow pointing to something of interest, perhaps a supernova, an asteroid, or an artefact that you would like help removing. You may also wish to add some free form text alongside to describe the object.

Until now that is awkward to do in PixInsight and I have tended to resort to loading the image into a different program to do this. The DrawAnnotation script now makes this a breeze. It has a preview facility and allows you to define an arrow and text and place these with mouse clicks.

After installation the script can be found in Script>Render

BatchFITSKeywordEdit

Repository address:
https://www.cosmicphotons.com/pi-scripts/bfke/

The BatchFITSKeywordEdit script allows you to add, edit or delete FITS keywords from multiple files.  The edited files are output to a specified folder/directory.

After installation the script can be found in Script>Batch Processing.

ColorMask

Repository address:
https://www.cosmicphotons.com/pi-scripts/colormask/

The ColorMask script, written by Rick Stevenson, forms part of the standard distribution with PixInsight.  The script allows you to produce masks based on selecting specified colours within your image.

Boris Emchenko and I have recently enhanced the script’s functionality.  We hope that, in due course, PixInsight will include our enhanced version as part of the standard distribution but until then we offer it for download here.

After installation this new version will appear as ColorMask_mod under Script>Utilities.  The original ColorMask script will still be there as well.

A YouTube video about this script by Adam Block is here.

GeneralizedHyperbolicStretch

Repository address:
https://www.ghsastro.co.uk/updates/

GeneralizedHyperbolicStretch (GHS) is a utility to allow highly controllable pixel transformations (stretches) to astronomical images.

GHS is available as both a script and a process.  Both can be downloaded from the repository specified above.  

GHS is a collaborative effort between myself and fellow astrophotographer Dave Payne.  He and I have worked together to create the GHS script and process.  (Note the process version is only available for PixInsight 1.8.9-1 or later, users of earlier PixInsight versions can use the GHS script).

More details about GHS, including instructional video tutorials, can be found at the dedicated GHS website here.

CloseView

Repository address:
https://www.cosmicphotons.com/pi-scripts/closeview/

The CloseView script has been produced in collaboration with Bill Blanshan with a specific use case in mind. 

Its intended use is to facilitate implementing a sequence of actions in a process container. When doing this, it is sometimes necessary to produce interim images which will not be needed once the sequence has been completed.  The CloseView  script can be used within the process container to close down these interim images, thus tidying the workspace before the process container exits.

Bill has produced a video on his YouTube channel illustrating the use of the script. The video is linked here.