In another article, I explained how you can download and process a JWST image using PixInsight; however, not everyone owns PixInsight, so I experimented with using freely available tools to create a James Webb Space Telescope image. I came up with the steps that follow. We’ll create the following image in these steps:

Your image might look a little different than this one, depending on the settings your choose.

In order to follow the steps, you’ll have to install FITS Liberator from here first:

https://www.spacetelescope.org/projects/fits_liberator/download_v301/

Use the following steps to create the image of M16:

  1. Point your browser to https://mast.stsci.edu/
  2. Perform an Advanced Search by clicking the link near the top of the page.
  3. In the MIssion box, enter JWST.
  4. In the Instrument box, enter NIRCAM.
  5. In the Object Name or Position box, enter M16 and click Search.

    Alternatively, click the following link to go directly to the M16 search result.
  6. Note the Filters column and note the numbers in the column.

    Just familiarize yourself with the numbers as we’ll be referring to them; you don’t have to remember them.
  7. Download one of the F444W observations – there are two of them, and you can download either one.
  8. Download the F200W observation.
  9. Download the F090W observation.

    The downloads are large, so be patient while the download proceeds.
  10. Open each of the ZIP files you downloaded and extract the FITS file from each that includes the letters “i2d” at the end of the filename.

    The ZIP file contains some folders; navigate to the folder that has the name of the filter in it, and then extract the FITS file that ends in “12d” – here’s an example of one of the names of the FITS file you need to extract: jw02739-o001_t001_nircam_clear-f090w_i2d.fits.
  11. Using FITS Liberator, open the F444W_i2d.fit file.

    Note that there are seven images in this FITS file, and FITS Liberator is operating on the first one, which is the correct one.
  12. In the Stretch function drop-down, select Log(x).

    We’ll have to slightly adjust the image here in FITS Liberator, which is the next step.
  13. Note the histogram below the image and observe the location of the black triangle below the histogram, as shown in this screenshot:



    Drag the black triangle to the left, to the beginning of the small bump in the histogram; this is what my screen looks like:



  14. Click the Save File button to save the image
  15. Open the F200W file and repeat steps 12 to 14; click the Reset button before you change anything on the screen since FITS Liberator remembers settings between images.
  16. Open the F090W file and repeat steps 12 to 14.
  17. Point your browser to photopea.com.

    The next series of steps are going to open and resize each of the images; since the images are very large, chances are that the operations will take a long time and cause your computer to slow down so be patient with each of the steps.
  18. From the File menu, select Open and open the F444W TIF file.
  19. When the file opens, all you might see is a white square on the screen, or you might see an image. Regardless of what appears on the screen, select Image Image Size.
  20. Enter 5000 in the Width box and click Ok to commit the change
  21. Save the file as a PSD using the File menu, and rename the file so it is called just F444W.psd

    The long filenames make working with the images confusing in photopea.com, so shorten the name to just the name of the filter to make the files easier to work with. Note the image’s orientation and use the Image – Transform – Flip Vertically menu option to make the image appear in the same orientation as the others.
  22. Repeat steps 18-21 for the F200W file.
  23. Repeat steps 18-21 for the F090W file.
  24. Open the F444W.psd file
  25. Rename the Background layer to F444W by double-clicking the word Background and typing the new name.
  26. Open the F200W.psd file.
  27. From the menu select Select All.
  28. From the menu, select Edit Copy.
  29. Flip to the F444W.psd file using the tabs across the top of the screen.
  30. From the menu, select Edit Paste.
  31. Rename the new layer F200W.
  32. Repeat steps 26-31 for the F090W file, renaming the layer F090W.
  33. Select the F444W and F222W layers, and from the menu, select Edit – Auto-Align
  34. Select the F090W and F444W layers (press CTRL on your keyboard and select both layers), and from the menu, select Edit Auto-Align.

    Photopea.com will pop up an error message saying that no similarities could be found to align the image, so we’ll align the image manually next.
  35. Click the eye icon next to the F200W layer to hide it.
  36. Make the F090W layer the active layer by selecting it.
  37. From the drop-down above the Layers panel, where it says Normal, select Screen

    This will blend the F090W and F444W files on your screen. If you zoom in, you might see duplicate stars and duplicate features. Using the Move tool (press V on your keyboard to activate it), and your mouse, move the F090W file around until it’s in alignment with the F444W file; you can also use the arrow keys on your keyboard to nudge the image a pixel at a time. You may have to inspect different parts of the image to align it.
  38. Make the F200W layer the active layer and click the eye icon next to it
  39. Set the blend mode (where it says Normal) to Screen

    The three images should now be blended on the screen. We’ll add color next.
  40. Make the F444W layer the active layer.
  41. From the menu, select Image Adjustments Photo Filter.
  42. Click the colored box.
  43. Enter 255 in the R box and zero out the G and B boxes to select pure red.
  44. Click Ok to commit the color change, then use the slider to move the Density to 100% and click Ok.
  45. Repeat steps 40-44 for the F200W layer, except this time zero out the R and B and enter 255 for G.
  46. Repeat steps 40-44 for the F090W layer, except this time, zero out the B and G values and enter 255 for B.

    You should now have a color image on your screen.
  47. Save the file as a PSD giving it a new name.
  48. From the menu, select Layer Flatten image.
  49. From the menu, select Image Adjustments Levels.
  50. Move the black-point slider (on the left) until you’re satisfied with the image and click Ok to commit the change.
  51. Use the selection tool to select the parts of the image you want to keep (remove the white borders), and use the Crop tool to crop your image.
  52. Use the Text tool to add any information you like to the image, and resize the image to make it suitable for sharing if you plan to share it
  53. Export the image in your preferred format using the File menu.

Congratulations, you have created an image using JWST data! You can now perform similar steps for other observations taken by the JWST team.

Conclusion

In this article, you learned how to download images from the JWST, you learned what images to download, and processed the images to produce a final color image using photopea.com (or Photoshop).

Background

I write about the background research and experimentation that went into creating this article here.