Rosette Nebula (NGC 2244) in a gold and steel-blue dual-band palette, 11 hours from Bortle 8 skies, processed with an AI agent in PixInsight

Rosette Nebula Astrophotography With an AI Agent in PixInsight

By Akshay Kumar

Eleven Hours on the Rosette Nebula, Reprocessed With an AI Agent

Over four clear nights from 14 to 17 December 2024, I shot the Rosette Nebula in Monoceros from my roll-off roof observatory in Bhagalpur. The rig was a William Optics 71GT APO with its 0.8x reducer at 335 mm, an Optolong L-eXtreme dual-band filter and a ZWO ASI294MC Pro colour camera on an iOptron CEM40 mount. By the morning of the 17th I had 222 subframes of 180 seconds, or 11.1 hours of hydrogen-alpha and oxygen-III data under Bortle 8 city skies. Stacked in Weighted Batch Preprocessing with a 2x CFA drizzle, the master came out at 8034 by 5428 pixels across roughly 3.2 by 2.1 degrees of sky, wide enough for the nebula and the faint hydrogen clouds around its outer edges.

The Rosette Nebula in an HOO dual-band palette, red hydrogen-alpha petals around a teal oxygen-III inner shell and the NGC 2244 star cluster
The HOO rendering: hydrogen-alpha in red, oxygen-III in teal, star colours taken from Gaia photometry.

I first processed this stack by hand in February 2025. That edit brought out plenty of faint hydrogen, but the colour never sat right: the nebula leaned red-magenta with a washed-out pink centre, and the stars turned nearly white. After shelving the data for a while, I came back to it using Claude connected to PixInsight through the PixInsight Connector, an open-source bridge I maintain so an agent can run PixInsight tools and read image data.

Open Source•Akshay's PixInsight Connector

Through the connector, the agent runs PixInsight processes on the master files and reads pixel statistics from any region. It can also plate-solve a frame and query PixInsight's local Gaia star catalogue. Instead of moving sliders myself, I checked the previews and numbers at each step and rejected whatever looked wrong. That turned up a diagonal light leak around the filter, which I later sealed at the telescope with black electrical tape. We also restored star colours from Gaia photometry and reused my February edit as the brightness layer under the agent's colour.

Integration
11.1 Hours (222 x 180s)
Dates
14 to 17 December 2024
Telescope
William Optics 71GT APO (0.8x Reducer)
Camera
ZWO ASI294MC Pro
Filter
Optolong L-eXtreme (7nm Ha / OIII)
Mount
iOptron CEM40
Guiding
WO 50mm f/4 + ASI120MM
Stacking
WBPP, 2x CFA Drizzle
Processing
PixInsight with Claude (AI agent) via my PixInsight Connector
Location
Bhagalpur, India (Bortle 8)

Inside the Rosette Nebula: NGC 2244 and Two Bands of Light

The Rosette Nebula is a cloud of glowing hydrogen about 5,200 light-years away in Monoceros, the Unicorn. Spanning roughly 130 light-years, it covers nearly three full Moons across our sky, which is why early observers catalogued its brighter patches as separate objects before realising they belonged to one structure. At the centre sits NGC 2244, an open cluster only a few million years old. Several of its stars are dozens of times more massive than the Sun and many thousands of times brighter. Ultraviolet radiation from those stars ionises the surrounding gas and makes it glow, while their winds have carved out the central cavity. Dense knots of dust along the inner wall still resist those winds, standing out as dark globules against the brighter gas.

Starless hydrogen-alpha view of the Rosette Nebula showing the full shell and the faint outer clouds
The hydrogen and oxygen light recorded through the filter, shown separately with the stars removed, alongside the stack as it looked straight out of the camera.

The L-eXtreme filter isolates two narrow emission bands from that gas while cutting out most of Bhagalpur's light pollution. One band passes the deep red line of hydrogen, which fills the shell and the faint clouds outside it. The second passes a blue-green oxygen line that forms close to the hot central stars, where radiation is strong enough to strip two electrons off each oxygen atom. In the panels above, hydrogen extends far past oxygen on every side, and wherever oxygen glows, it sits on top of the hydrogen.

On the calibrated data, the agent measured oxygen at only about a third the brightness of hydrogen across most of the nebula, rising to around 40% along the inner ring next to the cluster. Because both signals share the same pixels and hydrogen dominates everywhere, a straight colour mix turns red and pink. That is what happened to my February edit.

A Filter Light Leak, Spotted by Eye and Measured by the Agent

After the first background correction, the agent's summary numbers said the sky was flat, yet I could still see a faint diagonal pattern across the frame. I had already suspected stray light was slipping through small gaps around the filter in my imaging train. I described the pattern and asked the agent to test for a light leak.

To bring the pattern out of the noise, the agent binned each channel down to a small thumbnail and stretched the contrast until a few percent change in sky brightness filled the display. The sky maps below showed four dark lobes along the diagonals with a brighter cross between them, aligned with the sensor axes in both hydrogen and oxygen. The variation was only about 5% of the sky background, enough to tint the frame once the faint oxygen channel was stretched, and a standard smooth gradient fit could not bend into four separate lobes to remove it.

High-contrast sky map of the oxygen channel showing four dark lobes on the diagonals caused by a light leak around the filter
Sky maps with the contrast pushed far beyond normal viewing so a few percent difference in sky brightness becomes visible. The bright blob in the middle is the nebula itself; everything around it should be flat.

The agent built the leak model on the oxygen channel first. Outside the Rosette there is almost no oxygen emission in this patch of sky, so the variation out there was all stray light. It sampled about 700 patches of empty sky and fitted a flexible surface through them, like a thin rubber sheet pinned to each point, bridging underneath the nebula itself. Hydrogen could not be fitted the same way because faint outer clouds fill much of the frame and a free surface would erase them. Instead, the agent reused the oxygen surface and fitted a single scale factor for hydrogen, which came out to 1.06 times the oxygen level. Nearly equal brightness across both channels matches unfiltered white light leaking past the glass. Subtracting the scaled model cleared the four lobes without touching the outer hydrogen clouds or dust lanes.

Choosing HOO and Gold Palettes for Dual-Band Data

With only two wavelengths recorded, the agent generated four quarter-size mockups in a few minutes each so I could compare palettes side by side: HOO (red hydrogen and teal oxygen), a gold-and-blue Foraxx version, a pink-and-lavender broadband-style mix, and a static gold blend. I went with two of them: HOO, which stays close to the colours of the two gases, and a gold-and-blue palette after the Hubble narrowband look.

Four quick colour palette mockups of the Rosette Nebula from dual-band data: HOO, Foraxx, natural pink and gold
Four palettes in a few minutesTop: HOO and Foraxx. Bottom: natural pink and gold. Quarter-size quick looks.

Stretching both channels together buries the fainter oxygen and leaves the nebula red. The agent stretched hydrogen and oxygen separately so oxygen had enough weight, then matched their background levels to keep the sky a neutral dark grey instead of drifting teal. With the two channels balanced, HOO mapped straight to red hydrogen petals around a teal-and-white oxygen inner shell.

Rosette Nebula rendered with the standard Foraxx palette formula, looking pale and washed out
Starless test renderings before final adjustments. The standard Foraxx formula finds almost no contrast between the two gases here, while the ratio-driven gold separates them clearly.

The standard Foraxx formula did not work on these separately stretched channels. It picks gold or blue from the pixel brightness of hydrogen and oxygen, and after independent stretches the two sat too close in brightness across most of the nebula, producing the washed-out rendering in the first tab above. Instead, the agent drove colour from the local balance between the two gases while tying brightness to the recorded light: hydrogen-heavy gas maps to gold, oxygen-heavy gas to steel blue, with warm cream in the overlap. Pinning the endpoints to the nebula's own data range uses the full colour span and lets empty sky fall back to neutral grey.

Restoring Real Star Colours With Gaia DR3

Through the L-eXtreme, nearly every star in my stack came out white, and a few came out backwards. HD 46150, one of the hottest stars at the centre of NGC 2244 and blue-white by nature, looked orange-tinted, while 12 Monocerotis, a cooler orange giant nearby on the sky, picked up a bluish cast. Stars radiate across the full spectrum, so cutting them down to two narrow slivers in deep red and blue-green leaves little of their actual colour, and stretching clips most star cores to white anyway.

To replace those colours, the agent used Gaia, the European Space Agency spacecraft that has catalogued positions and colours for nearly two billion stars. PixInsight already carries a local copy of that catalogue, so once the frame was plate-solved, the agent matched 17,106 stars brighter than magnitude 16 straight to pixel coordinates. It converted each star's Gaia colour into a surface temperature and then into the matching hue for a glowing body at that temperature, with a Sun-like star set as white. That hue went back onto my stars without changing the brightness or shapes recorded by the telescope; fainter stars below magnitude 16 kept a muted version of their own colour.

NGC 2244 star cluster in the Rosette Nebula, comparing star colours recorded through a dual-band filter with star colours restored from Gaia DR3 photometry - After
NGC 2244 star cluster in the Rosette Nebula, comparing star colours recorded through a dual-band filter with star colours restored from Gaia DR3 photometry - Before
FILTER COLOURS
GAIA COLOURS
Slide to compare the two processing states.

Once the Gaia hues were applied, the hot young stars of NGC 2244 turned blue-white and 12 Monocerotis stood out beside them as a warm cream-orange point. Across the wider field most stars lean yellow and orange: heavy interstellar dust between us and the Rosette absorbs blue light more strongly than red, so the median star in the frame is redder than the Sun. We gave the star layer a moderate saturation lift for presentation while keeping every hue tied to Gaia's measurement.

Further Refinements: Star Shapes, Reflection Halos and Faint Clouds

None of the refinements below came out of the agent's first zero-shot pass. On a single open-ended prompt it produced finished images in both palettes, but the light leak, wrong star colours, bright-star halos and dim outer clouds were all still there, and nobody had checked the corners yet. Every fix started when I pointed out a problem or asked for a measurement, and the agent worked out how to correct it from there.

First I asked for an optical check across the frame. The agent cut nine full-resolution tiles from the centre, edges and corners into a grid to check for tilt or focus drift. Stars held round into the corners, so the 71GT and its reducer are sitting square to the camera sensor. The same check caught a narrow border around the stack where fewer frames overlapped, leaving slightly noisier, faintly tinted sky that we cropped off in the final framing.

Nine full-resolution tiles from the corners, edges and centre of the Rosette Nebula frame showing round stars across the field
Corners, edges and centre at 100%Round stars all the way to the corners of the 3.2 degree field

Dual-band filters often throw faint reflection halos when light bounces between the filter glass and the camera. Here those reflections sat mostly in oxygen, showing up as soft teal rings over the red hydrogen clouds. Using Gaia positions for 22 bright stars, the agent measured the glow in concentric rings around each star and subtracted only the circularly symmetric part, leaving irregular nebulosity untouched. The first pass overcorrected a star sitting on a bright hydrogen ridge and left a darker spot in the gas, so the revised routine skips stars over bright nebula where a halo is not visible anyway.

Before and after removal of teal dual-band filter reflection halos around bright stars in the Rosette Nebula field
Reflection halos, before and afterLeft: before. Right: after. The middle star sits on a bright hydrogen ridge and is deliberately left untouched.

Next we tried lifting the faint outer clouds. To brighten them without pushing background noise up across the frame, the agent added back a softened copy of their own faint signal, boosting the western clouds by about 60% with no measurable rise in noise. The first attempt went too far and filled in the dark central cavity, flattening the nebula's contrast, so we masked the lift to the outer halo and western clouds. Even then, the faintest gas looked dimmer and grainier than in my February edit.

Mask selecting the faint outer halo and western hydrogen clouds of the Rosette Nebula
Where to liftFaint halo and western clouds
First faint-cloud lift on the Rosette Nebula, too strong, with the central cavity filled in
First attemptCavity filled in
Corrected faint-cloud lift on the Rosette Nebula with the dark cavity preserved and the western clouds brightened
CorrectedCavity kept dark

Pairing My February Edit With the Agent's Colour

I had stretched my February edit much harder, and next to the agent's version it showed more faint signal: the long hydrogen filaments outside the main shell were brighter and cleaner, with less grain. Rather than have the agent keep chasing that depth from scratch, I handed it my February file and asked what had gone wrong with the colour.

The agent split that file into separate colour channels and ran the same sky-map inspection it had built for the light leak. Green and blue, which should have carried oxygen alone, had picked up blotchy background texture along with a faint copy of the hydrogen structure. Red had been pushed so hard that the bright inner shell sat compressed near the top of the brightness range, leaving almost no room for colour separation. That was why the February edit had its uniform red-magenta cast and washed-out pink centre, though the light-leak pattern itself was already gone from it.

Rosette Nebula comparison of my original February edit in red and magenta with the final HOO version using the same brightness and the agent's colour - After
Rosette Nebula comparison of my original February edit in red and magenta with the final HOO version using the same brightness and the agent's colour - Before
MY FEBRUARY EDIT
FINAL
Slide to compare the two processing states.

We combined the two versions as an LRGB composite: my February edit supplied the brightness layer, with all of its faint outer gas and fine detail untouched, and the agent's hydrogen and oxygen palettes supplied colour on top. Both came from the same master stack, so they lined up to within a fraction of a pixel. From there my star layer got its Gaia colours and the filter halos were removed as before, keeping the faint wisps from February while separating the outer hydrogen from the teal and steel-blue oxygen at the centre.

Finishing the Rosette Nebula to Taste

For the final adjustments I worked in plain notes rather than touching sliders. I asked to dial back saturation on the gold palette and raise the colour strength in the HOO nebula without lifting the sky, then darken the background slightly so residual noise dropped out of view. I also wanted the dense background star field thinned down while leaving the young central cluster untouched. The agent applied a radial star reduction that ramps up with distance from the centre, strongest over empty sky; its verification count measured a quarter fewer visible stars in a patch of dark sky, with NGC 2244 unchanged by a single star. We finished by centring the crop on the measured position of the cavity and bright inner ring, leaving room around the outer clouds.

Final HOO version of the Rosette Nebula with red hydrogen petals, a teal oxygen inner shell and Gaia-coloured stars
HOOHydrogen red, oxygen teal
Final gold version of the Rosette Nebula with gold hydrogen petals around a steel-blue oxygen core and Gaia-coloured stars
GoldColour from the oxygen to hydrogen balance

What Comes Next for the Rosette Nebula

At 11.1 hours from Bortle 8 skies, the faintest outer clouds around the Rosette are still photon-limited, so further gains will have to come at the telescope. More integration time would deepen them. A filter that captures sulfur alongside oxygen would give me data for a three-colour Hubble palette, and an hour of short unfiltered frames would let the stars carry colour from my own camera instead of a catalogue.