Astrofriend's homepage

www.astrofriend.eu
Share: Twitter Reddit Facebook Gmail Gmail Email
Search Astrofriend's homepage:

Valid CSS!

All pages shall now have been validated

Info Cookies (Kakor) / GDPR

Navigation

Advertisement /
Annons:

Project News

Advertisement / Annons:

Tutorial:
An introduction to AstroImageJ


Content:

  1. Introduction
  2. Download and Installation
  3. My own downloadable macrosNew version 2020 !
  4. How to use macro 'Make master files from raw files'
  5. How to use macro 'Batch read raw files and calibrate'
  6. How to align rggb files
  7. How to stack rggb object files
  8. How to use included extra macros (During Work !)

Note:
I take no responsibility or liability for what are written here, you use the information at your own risk!


5, How to use the macro 'Batch read raw files and calibrate':

Before you use the macro you must have the RAW files placed in a folder with the name 'raw', otherwise this macro doesn't work.

It could look like this but only the 'raw' folder is important for this macro:

AstroImageJ, AIJ: Macro 'Batchread raw files and calibrate'

Notice that I have the temperature in the filename. I have done that with the software IrFanView. Here is a tutorial how to do that 'Dark calibration and matching temperature'. Maybe it only works for Canon cameras, the later ones with live view.


Manu: 'Setup batch reading process':

After selected 'Batch reading raw files and calibrate' from the main menu this comes up:

AstroImageJ, AIJ: Macro 'Batchread raw files and calibrate'

It's similar to the Make master files menu.


AstroImageJ, AIJ: Macro 'Batchread raw files and calibrate'

Choose the file format you want to convert to TIFF files or if that is already done you can start with the CFA TIFF file and save some computer time.


AstroImageJ, AIJ: Macro 'Batchread raw files and calibrate'

If your camera has a sensor with a over scan region it is preferd to use that. The over scan area is a region of the sensor that is covered. No light will hit that area and you can use it to get a value for the bias and dark, note this is an average value. I have only found this opportunity on Canon EOS cameras, but maybe there are others. You can test it with the 'Frame Selection test' macro I have made. You must maybe changed the parameters of the frame selection area. It is stored in the macro at the camera data. If you use the over scan area and not do traditional bias and dark subtraction you must have taken your images with dithering technique. But when I test with my older images when I didn't take images with dithering it still works, it's because of the drift of the mount I have.


AstroImageJ, AIJ: Macro 'Batchread raw files and calibrate'

You have the option to set the output filenames. It could be sorted after the color or the time. Time is to prefer if there is a small drift in the mount because of bad polar align or a comet that moves relative stars, that's the default.

Time order:
1001Blue, 1001Green1, 1001Green2, 1001Red, 1002Blue, 1002Green1, 1002Green2, 1002Red .......

Color order:
Red1001, Red1002, Red1003 ...... Gren11001, Green11002, Green11003 .....


AstroImageJ, AIJ: Macro 'Batchread raw files and calibrate'

Sometimes you have images from different nights or with different gains (ISO setting). If you want to stack them you also need to align them together in some way. If you mix them they could not have the same name, then you can set an offset of the rolling file number.

It process the images with the lowest number first, important when align that they come in correct time order if there is a drift in the mount.


AstroImageJ, AIJ: Macro 'Batchread raw files and calibrate'

After a while you will have a lot of image files and calibration files. You must have information about them to not mix them up. Here are where you set the data about the image file name. ISO setting is important to know and will be added to all files.


AstroImageJ, AIJ: Macro 'Batchread raw files and calibrate'

There is also a field for exposure time, telescope opening, and a free field for extra info. The last will only be added if you tick the box.

Note:
It's important that you don't use any '.' (dot) in the filename, it will confuse the macro !


AstroImageJ, AIJ: Macro 'Batchread raw files and calibrate'

Even if DSLR cameras normally take images with colors there are not always necessary to keep all of the colors. One example, if you doing narrowband images with H-alpha you will only get information in the red channel. Then it's enough to keep only the red channel.


AstroImageJ, AIJ: Macro 'Batchread raw files and calibrate'

There is an option to correct for the cameras different sensitivity in different wavelengths. I prefer to do it like this, then I get much closer to correct color levels and only have to fine adjust the level in later process.

The HDR gain is used to correct if you have taken images with different gains (ISO). ISO 1600 has a gain factor of four relative ISO 400. If you want them to have the same strength you have to multiply the 400 ISO with four to get them in same level. The sensor always catch the same number of photons each second, ISO / Gain is how you read them out from sensor. High ISO will limit the upper range and low ISO will add more readout noise. Here I have tried to explain what's going on in the sensor: 'ISO / Gain setting'

Choose if the flat calibration shall be done.

Check that all parameter are set correct. After that click the OK button and the process will start.


AstroImageJ, AIJ: Macro 'Batchread raw files and calibrate'

After the macro has started it will ask you where the RAW folder is placed. Note: You should not open the raw folder, only open the folder where it's stored. Even when it ask for the CFA folder it's the same procedure. Check that the folder name below it's correct, if got the 'raw' or 'cfa' included, back up one level. This is important !


AstroImageJ, AIJ: Macro 'Batchread raw files and calibrate'

If you enabled the flat calibration function it will ask you to open the masterFlat files, one for each color. How many colors it ask for depends on how many colors you checked to be kept. Note that the sorting order in the window is different from the normal order, Red, Green1, Green2 and Blue. Be careful to open the correct file, see the title of the window for which to open.


Log list:

You can follow the steps the macro perform in the log list live:

AstroImageJ, log list:

There are lot of information here, most for me when I develop this macro. Later I maybe reduce the info.


Where are the processed files ?

AstroImageJ, AIJ: processed files

From the beginning there is normally only the 'raw' directory. This macro creates the other folders:

The folders contain the following files:

  • raw:

    Here is your original raw files stored, you have to create this folder and places your files here.

  • cfa:

    This is by this macro converted raw files. TIFF 16-bit, it can be erased later.

  • demosaiced_rggb:

    This is where the demosaiced images are, with a normal RG1/G2B Bayer pattern. TIFF 32-bit, it can be erased later.

  • aligned:

    Here are are the aligned files stored when using align function (you have to move it from the demosaiced_rggb folder). TIFF 32-bit.

  • aligne:

    Here you store the aligned images when it ask where to store. TIFF 32-bit, maybe erased later.

  • stack:

    Here you place your stacked files image files. TIFF 32-bit or FITS 32-bit.

  • processed image (coming later):

    Here you store the image that you have processed.

There is a similar system for the calibration files. In my case with a Canon 6D camera the raw files are 24 MB, TIFF 16-bit 40 MB, TIFF 32-bit CFA 80 MB and color TIFF 32- bit 20 MB. Each of them !

Go Back to content

Go Back
NNext: Align rggb files

Advertisement / Annons: