JPEG2000 Image Compression on Solar EUV Images
For future solar missions as well as ground-based telescopes, efficient ways to return and process data have become increasingly important. Solar Orbiter, e.g., which is the next ESA/NASA mission to explore the Sun and the heliosphere, is a deep-space mission, which implies a limited telemetry rate that makes efficient onboard data compression a necessity to achieve the mission science goals. Missions like the Solar Dynamics Observatory (SDO) and future ground-based telescopes such as the Daniel K. Inouye Solar Telescope, on the other hand, face the challenge of making petabyte-sized solar data archives accessible to the solar community. New image compression standards address these challenges by implementing efficient and flexible compression algorithms that can be tailored to user requirements. We analyse solar images from the Atmospheric Imaging Assembly (AIA) instrument onboard SDO to study the effect of lossy JPEG2000 (from the Joint Photographic Experts Group 2000) image compression at different bit rates. To assess the quality of compressed images, we use the mean structural similarity (MSSIM) index as well as the widely used peak signal-to-noise ratio (PSNR) as metrics and compare the two in the context of solar EUV images. In addition, we perform tests to validate the scientific use of the lossily compressed images by analysing examples of an on-disk and off-limb coronal-loop oscillation time-series observed by AIA/SDO.
The data downlink rate of Solar Orbiter will be highly variable over time, scaling roughly with , where is the spacecraft distance to Earth. Averaged over a 168-day orbit, it will return about 500 MB of data per day, shared among 10 instruments. This is roughly times the data rate of the Solar and Heliospheric Observatory (SOHO) mission, but it pales in comparison to the 1.4 TB per day of the SDO. Given this constrained telemetry return, implementing effective compression schemes is a necessity to achieve the mission science goals. The Solar Orbiter Extreme Ultraviolet Imaging telescopes (EUI), for example, will use an onboard compression algorithm to achieve this. Current and past solar missions such as the Transition Region and Coronal Explorer (TRACE), SOHO, SDO and Hinode have also been using lossy JPEG compression at high-quality rates, as well as other compression schemes, to reduce telemetry volumes. Moreover, future ground-based instruments such as the Visible Broadband Imager (VBI) at the Daniel K. Inouye Solar Telescope (DKIST) will generate, even after data reduction and calibration, 350 GB of data per day. In light of these numbers, lossy compression algorithms will also be key in the “big data” regime to provide an efficient way to distribute and to browse these enormous data sets and to perform scientific data mining.
This approach is being used by the JHelioviewer (Müller et al., 2009) tool, e.g., which enables users to visually browse petabyte-scale data sets and makes use of the region-of-interest-based data access and decompression of JPEG2000 (from the Joint Photographic Experts Group 2000) encoded data. For AIA/SDO data, the lossy compression is performed at a bitrate of 0.5 bpp, which is entirely sufficient for visual data browsing, permits generation of running-difference movies and is even sufficient for certain types of scientific analysis.
Image processing using methods that combine lossless and lossy compression has, e.g., been studied by Peters and Kitaeff (2014), who investigated the effects of lossy JPEG2000 compression on astronomical radio imaging data, and Nicula, Berghmans, and Hochedez (2005) who tested image compression for solar EUV images. Nicula, Berghmans, and Hochedez (2005) proposed a lossy preprocessing of the images by remapping the images into a lower bit depth, which reduces the precision in the image values but not beyond the calculated quantum noise, and thereby, following a then lossless compression, achieves an overall higher compression rate. More recently, Löptien et al. (2016) have investigated the effects of data compression when retrieving velocities with local correlation tracking from solar images.
We aim to contribute to these investigations regarding the possibilities in solar image compression by investigating lossy solar image compression using JPEG2000 and by finding a suitable metric to quantify the quality of the compressed images and determine the implication for the scientific analysis of the compressed images.
In Section 2 we introduce the JPEG2000 scheme with its advantages (Section 2.1), the images in our database we perform tests on (Section 2.2), and we elaborate on the quality metrics selected for comparison in Section 2.3. Section 3.1 is devoted to the study of the effect of compression on the image resolution and the artefacts introduced by the compression. We then compare two quality metrics and their prediction of image quality, specifically for solar EUV images and the structures seen in them in Section 3.2. Section 3.4 gives a first look at actual science cases and the change in results caused by compression errors. For this we choose two coronal oscillation events observed at the limb (Section 3.4.1) and on the disk (Section 3.4.2). In Section 4 we summarise our findings.
2 Compression Scheme, Test Database, and Quality Metric Definition
The JPEG was the first standardised compression algorithm. The later developed JPEG2000 is defined in the ISO/IEC 15444-1:2004 document and is described, for example, in Skodras, Christopoulos, and
Ebrahimi (2001). It provides lossy and lossless compression, and several new features were introduced, such as progressive decoding, which allows for more customised extraction. We chose the JPEG2000 compression scheme as it is an ISO standard, highly adaptable to user needs, and is also implemented in the Interactive Data Language®111 www.exelisvis.com that is widely used in astronomy.
The algorithm comprises the following steps:
Preprocessing: Images are optionally tiled to be processed individually, unsigned image values are shifted to be symmetric around 0, and an optional colour transformation from RGB (red, green, blue) to YCbCr is performed.
DWT: A discrete wavelet transform is applied by recursively passing high- and low-frequency filters. The tiles are decomposed dyadicly resulting in sub-bands for each tile. For lossless compression, a reversible wavelet transform is used, while for lossy compression, the wavelet transform is irreversible.
Quantization: At this stage, precision in the wavelet coefficients is reduced if lossy compression has been chosen.
Bit encoding: The data are stored in progressively higher precision in so-called bitplanes.
In IDL, an IDLffJPEG2000 object has been implemented. This object class accepts keywords specifying the number of tiles, bit rates, and other parameters of the compression algorithm. It uses the Kakadu222 www.kakadusoftware.com code to compress the images. In addition, open source implementations like OpenJPEG333http://www.openjpeg.org/ exist.
We assembled a database by selecting images at arbitrary dates from AIA/SDO in several wavelengths and choosing quiet-Sun and active-region targets with exposure times of s. For details on this instrument see Lemen et al. (2012). Table 3 in the Appendix lists the various datasets taken in rapid succession within seconds at different wavelengths and their properties, such as the observing time. The Level 1.5 AIA/SDO images were obtained using SolarSoft444www.lmsal.comsolarsoft commands provided by the instrument team of the Lockheed-Martin Solar and Astrophysics Laboratory (LMSAL). These data are dark- and flat-fielded, passed through a bad-pixel-removal algorithm, are co-aligned, rotation-corrected, and stored as 16-bit integer FITS files. We do not cover the details of the preprocessing of the images here, although this has to be taken carefully into account when designing the onboard compression on a satellite such as Solar Orbiter, to avoid encoding unnecessary data.
Compression is performed on each image individually. We choose one level (set by the n_level keyword) and one layer (keyword bit_rate) in the IDL JPEG2000 object class. The bit_depth keyword is set to 16. We note that this is not the bit rate in the compressed image. We obtain in images with selected bit rates in this way.
2.3 Quality Metrics
According to Wang and Bovik (2009), one of the main reasons why the mean square error (MSE) and the peak signal-to- noise ratio (PSNR) derived from the MSE are the most commonly used quality metrics is their simplicity and convenience. More recently developed quality metrics, such as the structural similarity index (SSIM) and its derivatives, have the advantage (compared to the MSE) of being optimised for human eye perception and, as the name indicates, take the interdependency of close by pixels into account in creating perceived structures. We choose the SSIM as a quality metric to contrast to the MSE because a large part of solar research still relies on visual inspection of solar data and manual event selection as a first step. The SSIM has previously been proposed as a quality measure by Gissot et al. (2009), who suggest that it may outperform the traditional MSE metric in assessing the image quality of solar EUV images. Especially for the studied EUV images with easily recognisable loop structures, this metric seems more appropriate. Additional deciding factors were the short computation time, relative simple algorithm, and the proven applicability of the SSIM and its derivatives to a wide range of topics in image processing.
2.3.1 MSE and PSNR
The MSE is a measure of the mean difference between the image pixel values between two images. With the original uncompressed image and being the compressed image, with both size () and coordinates and , the is defined as
The PSNR takes the dynamic range of all the pixel values in the image into account and is derived from the as
2.3.2 SSIM and MSSIM
The general algorithm for the SSIM index was defined, tested, and validated by Wang et al. (2004) using a database of JPEG2000 compressed images and the Mean Opinion Scores (MOS) of human test subjects. It defines three independent image characteristics: luminance, contrast, and structure. The luminance measures the likeliness of the mean value between two images, whereas the contrast compares the standard deviations. The structure term is determined by the correlation between two images and and measures the tendency of and to “vary together, [and is] thus an indication of structural similarity” (Wang, Simoncelli, and Bovik, 2003). The overall similarity measure is a combination of these three image characteristics weighted with a weighting function :
We follow the approach of Wang et al. (2004) here and weight the three parts of the SSIM (luminance, , contrast, , and structure comparison, ) equally. For images and , with being the standard deviation and the mean intensity, they are defined as follows:
The constants and have low values and are included to avoid instability caused by division through zero. The low values and 1 also take the dynamic range of the image into account. Wang et al. (2004) empirically determined the values for and to be and , respectively. The authors found these values by using -bit grayscale images with a dynamic range of 255. In our case, we have a dynamic range of with -bit images. As the maximum in the images is usually around , we had to adjust the K factors by to ensure that these factors do not dominate the nominator.
To account for the locally varying image structure, Wang et al. (2004) introduced a windowing algorithm. Instead of defining the SSIM globally, a sliding Gaussian-weighted window, with 11 x 11 pixel, for example, is moved over the image pixel by pixel. The SSIM is calculated for the image patches and of the -th window:
By performing for each pixel, we produce a 2-D SSIM. Finally, the mean over the whole SSIM map is the mean (MSSIM):
where is the number of local windows. This is then again a single-value quality parameter.
3.1 Compression Effects
We study the effect of image compression by comparing the intensity values, the intensity distribution, and the frequency content of the images before and after compression. We are especially interested in any blurring effects that diminish the visible structures such as loops or mossy areas. While the loops are easily identified as clear strands, moss has in contrast a “spongy” appearance and is thought to be the upper transition region emission of hot coronal loops with the presence of chromospheric jets or spicules interspersing these EUV emission elements (Berger et al., 1999).
|AIA 171||982.88||1 (lossless)||7.64|
|AIA 171||233.06||1 (lossless)||6.38|
|AIA 304||113.42||1 (lossless)||5.62|
|AIA 304||51.33||1 (lossless)||4.93|
For equal dynamic range and spatial size of the image, images at 171 Å and 193 Å generally require more storage space when compressed using lossless JPEG 2000 than the images at 211 Å and 304 Å . The bit depth of 16 is only a nominal bit depth with the actual image intensity values not using the full available dynamic range. Images with a lower dynamic range will require less storage after lossless compression. This is also shown in Table 1 where we list the bits per pixel (bpp) for lossless and increasing compression for the dataset taken on 4 January 2012 of an active region and a more quiet-Sun region at 171 Å and 304 Å . Throughout this article, we therefore use the relative compression ratio (CR), which is defined here by the file size of the losslessly compressed image (lossless compression using the reversible keyword) divided by the file size of the lossily compressed image. The bits per pixel (bpp) are obtained by dividing the file size by the number of pixels in the image. This allows us to compare between the different wavelengths. We chose this definition of relative compression ratio because we are interested in the actual storage space that is saved by lossy compression.
In Figure 1 we have selected an active region displaying loops as well as plage and quiet-Sun areas. In the first row we show the range from the losslessly compressed image to a relative compression ratio of 20 (second panel) up to a relative compression ratio of 50 (last panel). Even at such high compression the structures are recognisable, but at close inspection (second and third row), the compression effects are clearly visible. JPEG2000-compressed images do not suffer from the blockiness of JPEG compressed images because the transforms are usually applied to the entire image and not on tiles, as with the JPEG code. However, so-called ringing artefacts, resulting in less clearly defined edges at sharp transitions, and a general image blur become visible to the naked eye at high compression. In a region dominated by loops (outlined by the blue box in the upper left image and shown in the second row), an overall blur and additional structure with stripes almost perpendicular to the loops is visible. In the more quiet area (outlined by the red box in the upper left image and shown in the third row), the small-scale intensity variations disappear, and only the very bright structures remain discernible.
In Figure 2 we confirm the visual result by analysing the boxed regions and cross sections of the boxed regions (cuts marked with white lines in the left images in the second and third row of Figure 1). The top panels in Figure 2 show the magnitude of the spatial Fourier transform (spatial power spectrum) plotted over constant spatial wavenumber, , with , resulting in a 1D power spectrum. In both cases (the region displaying loops from Figure 1 and the plage- and quiet-Sun region from the same image), the higher frequencies disappear with increasing compression, implying the loss of fine-scale structure. For the plage- and quiet-Sun region, which also has a larger high-frequency content to begin with, this effect is stronger. The mean intensity (value of the spatial power spectrum at 0 spatial frequency) does not vary for the relative compression ratios chosen. This is also reflected in the stability of the luminance term in the SSIM-map calculation.
In the second row, we plot the histograms of the mean of the nearest-neighbour difference, which gives an indication of the intensity gradients in the image. The intensity differences decrease, resulting in a shift of the maximum in the histogram to lower values for both regions, indicating blurring of the image. In the loop region this occurs at a faster relative rate, and the histogram also becomes narrower at high compression. This means that the intensity differences are less widely distributed, which most affects regions with lower intensity gradients and lower intensity values.
The last row displays cuts through the regions. For the loop regions we chose a cut more perpendicular to the loops to distinguish between individual loops. The loops take up a horizontal scale of about 5 arcsec. Even with a relative compression ratio of 50, we can clearly still discern the individual loops, although their edges are less steep and intensity changes within a loop are diminished. In contrast, the structure in the plage and quiet region is contained on scales of around 2 arcsec and is consequently blurred out by a compression at the same relative compression ratio.
It is therefore clear that when determining the image blurring by JPEG2000 compression, the relevant scales of the image structures and therefore the pixel scale of the spatial sampling, but also the intensity gradients, need to be taken into account. In the studied images with a scale of 0.6 arcsec per pixel, the fine-structure content of plage- and quiet-Sun areas prohibits JPEG2000 compression with high relative compression ratios. Images showing EUV loops can tolerate a higher relative compression ratio when the only interest is identifying the loops. In Section 3.4 the corresponding limits to the compression rates are analysed for studying loop oscillations in solar EUV images where the loop width and precise locations become important.
3.2 Comparison of MSSIM and PSNR
A quality metric should not only confirm the subjective impression of the quality of the compressed image, but also reflect the artefacts introduced by the chosen specific compression scheme. One of our aims therefore was to compare the performance of the more widely used PSNR to the MSSIM index when measuring the degradation of structures such as loops in solar EUV images that are due to compression. The last two columns in Table 1 list the MSSIM as examples for different regions and wavelengths, which a range of between 0 and 1 and the PSNR in decibels. The MSSIM and the PSNR cannot be directly compared because they operate on different scales. However, we can draw conclusions from their sensitivity to an increasing relative compression ratio.
In Figure 3, we demonstrate the effect of blurring, adding noise, compression, and rotation on the PSNR and MSSIM metrics. The PSNR is reduced to a similar value for all types of distortions, whereas the MSSIM is less sensitive to noise being added (panel b) and still finds the structure in the very slightly rotated image (panel d) whereas heavily compressed (panel a) and blurred images (panel c) result in low MSSIM values. The PSNR is more suitable for detecting additional noise, such as the compression quantisation noise (a side effect of the precision cut-off during compression) in an image and is not only sensitive when blurring occurs (the dominating side effects of the JPEG2000 compression when determining the visual image quality), in contrast to the MSSIM.
In the first row of Figure 4 we first show a losslessly compressed region taken with AIA/SDO in the 171 Å wavelength that shows coronal loops, plage, and also more quiet regions. We then choose a relative compression ratio of 9 (second figure in the first row of Figure 4) and 34 (last figure in the first row of Figure 4), and blurring and the ringing artefacts that are due to increasing JPEG2000 compression are again clearly visible. The second and third rows of Figure 4 show the MSSIM curve and the PSNR curve and their corresponding maps, the 2D SSIM map obtained by using Equation (7) for the Gaussian windows, and the squared error (SE) map, which is the difference between the original image and the compressed images, for the two selected relative compression ratios.
In contrast to most figures in this article, in this case we plot the MSSIM and PSNR curves versus bitrate instead of relative compression ratio, as the compression ratio (bitrate of losslessly compressed image to bitrate of compressed image) goes with the inverse of the bitrate and we are here interested in the direct response of the curve to decreasing bitrate. Starting at a high bitrate for the losslessly compressed image, the PSNR decreases linearly with bitrate. The MSSIM in contrast shows a plateau at high MSSIM values before decreasing rapidly. The turning point is around a bitrate of two.
The maps reveal that even for low relative compression ratios (first map), the SSIM indeed picks up on the structure in the image by giving areas with clear structures that can be visually recognised (loops) a high (good) quality value, whereas the SE maps show more of a random appearance affecting all pixels. The SE map and therefore the PSNR is highly sensitive to the quantisation noise of the JPEG compression, which is superimposed onto the image, but does not affect the structures such as loops as much as the blurring does. At high compression (CR ), the SE maps also starts to trace the loops, and the patchy appearance in both the SSIM map and the SE map reveal the ringing artefacts.
3.3 MSSIM for Different Wavelengths and Regions
In Figure 5 we plot the MSSIM value for increasing relative compression ratios for different wavelengths of the AIA/SDO images shown in Table 3. From the plot in the left panel it is clear that MSSIM curves between different active regions for the same wavelengths can greatly differ. However, for a single region, the MSSIM curves compared between wavelengths follow the same order. The 171 Å images, for example, show consistently higher MSSIM values. Several factors play a role when determining the MSSIM curve: the wavelength influences the size of the structures, the intensity values, and gradients, but the choice of region (for example, more loop-filled areas) is important as well. The region chosen for the dataset of 4 January 2013, for example, is entirely filled with coronal loops and can endure higher compression rates and maintain high MSSIM values for all wavelengths. This corresponds well with the findings in Section 3.1, where by studying the results of image compression on different solar structures, we found that the loops were more compressible, which confirms that the MSSIM is a good quality metric. The images in 211 Å and 304 Å exhibit similar MSSIM values for the active regions, but behave differently for the more quiet and plage regions (right panel in Figure 5). Again, this is the result of loops being more defined and structured in 211 Å relative to 304 Å for active regions, whereas the fine scale structure of plage and the quiet Sun is better resolved in 304 Å than in the low intensity noise-like features seen in 211 Å for the same region. The images in Table 3 in the Appendix show for confirmation the different regions in the various wavelengths as examples of the solar structure that is to be expected.
In order to take this into account, we plot in Figure 6 the MSSIM curve with respect to the bitrate, now only for the active regions recorded in 171 Å. The qualitative shape is the same for all regions – a slow decrease in the MSSIM value with bitrate, followed by a faster decline with the turning point at different locations for the varying regions. The image to maintain the higher quality even at low bitrates (high compression) is the image taken on 4 January 2013 (dotted curve). This image is almost entirely filled with active-region loops. To demonstrate the MSSIM dependance on such a “structure-filling” factor, we plot in an inset of the first panel the MSSIM for a relative compression ratio of three. The more the image is filled with loops, the higher the MSSIM at a given relative compression ratio. We then proceed to mask the images by choosing a cut-off value of 1000 DN. All pixels below this value are set to zero. In this way, we obtain the location of pixels we believe to contain the structure and intensity variations that would be used when scientifically analysing the image (see Figure 7 for an example of such a masked image). We plot in the second panel of Figure 6 the MSSIM curves again, but when averaging over the SSIM map (obtained by Equation (7) using a Gaussian window), we only take the pixels located within the mask into account. The retrieved curves then behave quantitatively more similarly. The vertical lines denote the bitrates at which a MSSIM of 0.95 is produced for each of the regions, and the bitrates range from to to . In the last panel, the MSSIM curves obtained in this way for the region recorded on 4 January 2013 are shown for all four wavelengths with a mask cut-off value of 700 for the 193 Å regions, 500 for the 304 Å regions, and 150 for the 211 Å regions. The intent is to eliminate the dependance of the MSSIM value on the actual amount of scientifically relevant signal in the image. The vertical lines again denote the bitrates at the MSSIM value of 0.95, which we believe to be a reasonable cutoff for each wavelength as we stay above the rapid decay of the image quality.
|Data||CR||Bitrate||ce noise [%]||ce noise [%]|
|total image||masked image|
|AR 171/ 4 Jan. 2012||7.0||1.1||16.8||9.1|
|AR 171/ 4 Jan. 2013||9.0||0.9||29.0||27.2|
|AR 171/19 Jan. 2012||13.0||0.6||41.6||33.5|
|AR 171/28 Mar. 2013||16.0||0.4||29.6||22.1|
|AR 193/ 4 Jan. 2012||4.0||1.9||3.2||1.6|
|AR 193/ 4 Jan. 2013||6.0||1.4||12.0||10.8|
|AR 193/19 Jan. 2012||8.0||0.9||18.9||13.5|
|AR 193/28 Mar. 2013||6.0||1.2||7.4||2.7|
|AR 304/ 4 Jan. 2012||5.0||1.1||18.8||11.4|
|AR 304/ 4 Jan. 2013||5.0||1.3||29.7||26.7|
|AR 304/19 Jan. 2012||5.0||1.2||19.8||12.1|
|AR 304/28 Mar. 2013||5.0||1.1||19.4||11.6|
|AR 211/ 4 Jan. 2012||4.0||1.7||4.9||1.0|
|AR 211/ 4 Jan. 2013||6.0||1.2||11.7||7.0|
|AR 211/19 Jan. 2012||7.0||0.9||11.5||4.7|
|AR 211/28 Mar. 2013||7.0||0.9||11.0||2.8|
|Data||CR||Bitrate||ce noise [%]|
|QS 171/ 4 Jan. 2012||6.0||1.1||9.9|
|QS 171/ 4 Jan. 2013||5.0||1.3||4.6|
|QS 171/19 Jan. 2012||4.0||1.4||5.9|
|QS 171/28 Mar. 2013||5.0||1.2||5.3|
|QS 193/ 4 Jan. 2012||4.0||1.5||1.5|
|QS 193/ 4 Jan. 2013||4.0||1.5||2.1|
|QS 193/19 Jan. 2012||4.0||1.4||3.3|
|QS 193/28 Mar. 2013||4.0||1.5||1.9|
|QS 304/ 4 Jan. 2012||4.0||1.2||10.8|
|QS 304/ 4 Jan. 2013||4.0||1.2||10.7|
|QS 304/19 Jan. 2012||3.0||1.5||6.0|
|QS 304/28 Mar. 2013||4.0||1.2||10.7|
|QS 211/ 4 Jan. 2012||3.0||1.8||0.7|
|QS 211/ 4 Jan. 2013||3.0||1.8||1.6|
|QS 211/19 Jan. 2012||3.0||1.7||1.5|
|QS 211/28 Mar. 2013||3.0||1.7||1.1|
We use the cut-off bitrates found in this way to obtain Table 2, in which we list relative compression ratios for the EUV images at the different wavelengths by choosing a recommended MSSIM for the masked active regions of 0.95 and an MSSIM for the quiet regions of 0.85. The percentage of pixels exhibiting a compression error larger than the photon noise (for the active regions listed for the entire image as well as for the masked image) gives an additional constraint on the quality. The image noise for the AIA level 1 data at different wavelengths is calculated with the aia_bp_estimate_error.pro IDL routine provided by the AIA instrument team. The various noise sources (photon noise, read-out noise, and so on) are explained in Boerner et al. (2012), where it is also shown that the photon noise is by far the dominant factor.
We have marked in Table 2, for the percentage of pixels with a compression error greater than the photon noise, the values above 15 % in bold face. The 171 Å wavelength shows the highest percentage of pixels with compression errors greater than the photon noise. However, as we demonstrate in the first row of Figure 7, this is acceptable when the only interest is in coronal loops because these are the predominant features of the images and are the last to be affected by compressions. In the first row of Figure 7 we show just such an active region and the residual image when applying a mask with a cut-off value of 1000. From the compression error versus count rate plot in the third panel, it is clear that at a relative compression ratio of three the bulk of the pixels still exhibits higher values than the compression error. The histograms of the image in the last panel clearly show that the pixels from high-intensity high-structure regions (including location of loops) at this compression rate are predominantly not yet members of the group of pixels with a compression error greater than the photon noise. In comparison, in a quiet-Sun region at the same wavelength, as shown in the second row of Figure 7, the structures fill almost the entire image. They have low intensity values, and the compression error does not seem to scale with the intensity values. While the bulk of the image values is about a fifth smaller than in the active region, the compression error only reduces its range by a factor of two.
3.4 Scientific Test Cases
For scientific data analysis of EUV solar images, brightness variations in the image and displacements or movement of structures (such as coronal loops) in a time series become important in deriving physical parameters. It therefore becomes critical to study how the compression scheme handles sharp edges that can significantly alter the scientific result. The typical ringing artefact encountered during JPEG2000 compression is exactly this weak point in the compression scheme because it artificially imposes an oscillation at the sharp edge by the so-called over- and undershooting when dealing with spatially bandwidth limited data.
We investigate the influence of the relative compression ratios on the derived pixel intensity displacement in coronal loop oscillations and find the consequences for the retrieved oscillation parameters.
3.4.1 Coronal Loop Oscillation: Off-limb
We have selected Active Region NOAA 11079, which was at the solar limb on 13 June 2010 and underwent an M1.0 class flare in the extracted time series. The consequent coronal loop oscillations have previously been analysed by White and Verwichte (2012) to derive the physical parameters associated with the loops. The cadence of the 171 Å AIA/SDO data chosen for analysis was 12 s, and the time series was rotation corrected.
In Figure 8, we show the region undergoing the oscillations and plot the time development of the loop profile along the cut marked in the left panel for the losslessly compressed images and the highly compressed images at CR 130. It is remarkable that even at a compression rate of 130, the loops can be identified, still showing a similar range of transversal displacement, and the oscillation would therefore still be visible in a browsing tool employing a high relative compression ratio for data-mining purposes. We should note, however, that in the off-limb oscillation the loops are better defined with respect to the background, and this situation is different when searching for oscillations on disk.
To study the effect of compression on the retrieval of physical parameters, we also studied the oscillation in detail by
taking a cut through the chosen loop, which would be the loop undergoing OSC1 in our case (see Figure 8),
storing for each profile the loop position in time that was found by automatic maximum finding (given a certain range of the profile) and thus retrieving the transverse displacement oscillation, and
We performed these steps for a range of relative compression ratios from 1 to 40.
In Figure 9 we plot the fitted oscillation periods, , and damping parameters, , for increasing relative compression ratio CR. The error bars we apply are the same percentage in error as was determined by the analysis of White and Verwichte (2012) for these parameters. The oscillation periods remain within the error bars of the losslessly compressed data up to a CR of 19, but the damping parameters have increased to higher values outside the error bars.
The developments of the oscillation period and the damping are not random, but show a trend to higher values with increasing compression. As the images become blurred and the intensity differences between pixels is reduced, the location of the loop (the maximum in the loop profile) can be attributed to a different pixel. As we show in the first panel of Figure 9 for the oscillation at CR 80, additional transverse displacement can be registered even after the oscillation has stopped (from 400 s onwards). The fitting routine tries to include these points and the amplitude reduction between 180 and 220 s into the fit, which “stretches” out the damped cosine function, leading to a higher and .
3.4.2 Coronal Loop Oscillation: On-disk
For the on-disk loop oscillation we choose an event seen in AIA/SDO data that was described and analysed by Jain, Maurya, and Hindman (2015). The studied Active Region NOAA 1283 underwent an X2.1 class flare that peaked at 22:20 UT and lifted a group of coronal loops in the process, with an oscillation being triggered in a group of lower lying loops underneath. We follow their time-series analysis and study the coronal loop oscillations in the lower lying loops. The left side of Figure 10 shows an image taken at 22:00 UT in the 171 Å line just before the onset of the flare, with a white line indicating our cut through the oscillating loops. On the right the space-time plot shows the visible oscillation of a loop around 32 arcsec. We have traced the loop position by showing the transverse displacements with a dashed white line. In Figure 11 we display, as in Figure 9, the resulting fits and fit parameter for the progressively more compressed images. The technique is identical to that of Section 3.4.1, with the exception that the loop positions were found by eye in the uncompressed time series, and subsequently, in the automated routines for the compressed time series, the maximum was not searched for along the entire cut, but in a small range of five pixels around the loop position found in the non-compressed time series. We obtain the errors from the fitting routine by providing an estimate of our error in determining the loops position (two pixels). We find in the original time series of the uncompressed images a period of and , which is, for the period, comparable to the fit parameters found by Jain, Maurya, and Hindman (2015); these were about and for the different studied oscillations. The period can in general (as was the case for the off-limb oscillations) be retrieved even at high compression, but the fitting routine in this case failed twice at a relative compression ratio of 5.5, which illustrates how fragile the process is to slight changes in intensity values. The damping parameter shows a large scatter with values differing by 50 s and more between relative compression ratio increases of less than 0.5. There is still an overall trend to larger damping parameters with higher compression, similar to what is observed in the off-limb loop oscillation. It is again surprising, however, that the transverse displacement is still detectable with a period within the error bars up to a compression of around 30. However, already at a compression of two, the damping parameter is not retrieved within the errors.
We have compressed solar EUV images of the AIA/SDO instrument with the JPEG2000 algorithm using varying compression rates. In Section 3.1, we demonstrated the importance of the relevant spatial scales and intensity gradient in the images. The smoothing or blurring effect of the compression and the introduced quantisation noise affect the various regions differently: while coronal loops are still identifiable at high compression rates (around CR = 50), the plage and mossy areas already show a loss of structure at relative compression ratios of around CR=20. In the next step, we computed the MSSIM and PSNR as quality metrics and compared their behaviours.
In Section 3.3, we compared the MSSIM curves for different wavelengths and found a systematic behaviour. Given the same region on the Sun, 171 Å images can be compressed with higher compression rates than, for example, images in 304 Å while maintaining a higher quality (less structure loss). The difference in the original images is that the 171 Å images show higher intensity values that predominantly trace the coronal loops. Another aspect is the comparison of the compression noise to the photon noise inherent to the images. We found that within an image the low intensity values are first affected in raising their compression error above the photon noise. For active region images in 171 Å , this means that pixels belonging to loops (high intensity values) are only affected at high compression rates.
We find that there is not a single, general relative compression ratio recommendation for images at a certain wavelength. Depending on the structure scale of interest, the intensity gradients of the structure and the nature of solar events searched for, different compression ratios are feasible. Nevertheless, by introducing a simple masking of the images (for the active regions), we obtain in Table 2, for a chosen MSSIM recommended relative compression ratios for different regions and wavelengths. However, we point out that these numbers are only relevant to the spatial resolution and sensitivity of the chosen specific instrument because with increasing or decreasing spatial resolution, for instance, the fine structure will change. For a pixel scale of 0.6 arcsec, for example, with a scientific interest in retrieving physical parameters of coronal loop oscillations in 171 Å from off-limb data, a relative compression ratio of around six is achievable, which ensures remaining at around 20 of the typical photon noise, while higher relative compression ratios are possible for browsing (range CR 10 – 12). The results obtained here can therefore not be directly applied to Solar Orbiter EUI/High resolution imager data, for example, which will have a resolution higher by about five times than the resolution of the AIA/SDO images.
The coronal loop oscillations on-disk studied in Section 3.4.2 also showed that, whilst the transverse displacement is still observed and detected at relative compression ratios as high as CR=30, the physical parameters cannot be reliably determined in that case from the compressed data. This of course depends on the amplitude of the oscillation (transverse displacement of the loop) and the background intensity and on whether there are any overlying loops in the line-of-sight.
The aim of this study was to assess the possibility of increasing data storage and transfer efficiency for large solar databases using a compression algorithm, while also outlining approaches that might be relevant for on-board data compression for telemetry-constrained space missions like Solar Orbiter. This is a complex issue involving a wide range of image- and signal-processing topics, and our findings underline the fact that the intended usage of the data to be compressed plays an important role in deciding on the compression limits. With the flood of high-resolution data to be expected from the new generation of large solar telescopes, such as the Daniel K. Inouye Solar Telescope, these type of studies is essential. The growing number of sessions and meetings devoted to the handling of “big data” in solar physics shows a rising awareness in the solar community, and we hope this contribution will encourage further studies in this field.
AIA/SDO data are provided by the Joint Science Operations Center–Science Data Processing. This project has received funding from the Science and Technology Facilities Council (UK) and the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement No 647214).
I. De Moortel and C. E. Fischer thank the ESTEC/ESA visitorship program for support.
We have made use of the Coyote IDL library at www.idlcoyote.com.
|4 Jan. 2012|
|Example in 171 Å:|
|Example in 171 Å:|
|19 Jan. 2012|
|Example in 211 Å:|
|Example in 211 Å:|
|4 Jan. 2013|
|Example in 193 Å:|
|Example in 193 Å:|
|28 Mar. 2013|
|Example in 304 Å:|
|Example in 304 Å:|
- Berger et al. (1999) Berger, T.E., de Pontieu, B., Fletcher, L., Schrijver, C.J., Tarbell, T.D., Title, A.M.: 1999, What is Moss? Solar Phys. 190, 409. DOI. ADS.
- Boerner et al. (2012) Boerner, P., Edwards, C., Lemen, J., Rausch, A., Schrijver, C., Shine, R., Shing, L., Stern, R., Tarbell, T., Title, A., Wolfson, C.J., Soufli, R., Spiller, E., Gullikson, E., McKenzie, D., Windt, D., Golub, L., Podgorski, W., Testa, P., Weber, M.: 2012, Initial Calibration of the Atmospheric Imaging Assembly (AIA) on the Solar Dynamics Observatory (SDO). Solar Phys. 275, 41.
- Gissot et al. (2009) Gissot, S., Pylyser, E., Hochedez, J.-F., Devaux, F.-O., Correa, P., Rouvroy, G., Inhester, B., Kennedy, T., AuchÃ¨re, F.: 2009, Quality measures for an optimized JPEG2000-like EUI compression. In: 3rd Solar Orbiter Workshop, 2009. https://publi2-as.oma.be/record/2907.
- Jain, Maurya, and Hindman (2015) Jain, R., Maurya, R.A., Hindman, B.W.: 2015, Fundamental-mode Oscillations of Two Coronal Loops within a Solar Magnetic Arcade. Astrophys. J. Lett. 804, L19. DOI. ADS.
- Lemen et al. (2012) Lemen, J.R., Title, A.M., Akin, D.J., Boerner, P.F., Chou, C., Drake, J.F., Duncan, D.W., Edwards, C.G., Friedlaender, F.M., Heyman, G.F., Hurlburt, N.E., Katz, N.L., Kushner, G.D., Levay, M., Lindgren, R.W., Mathur, D.P., McFeaters, E.L., Mitchell, S., Rehse, R.A., Schrijver, C.J., Springer, L.A., Stern, R.A., Tarbell, T.D., Wuelser, J.-P., Wolfson, C.J., Yanari, C., Bookbinder, J.A., Cheimets, P.N., Caldwell, D., Deluca, E.E., Gates, R., Golub, L., Park, S., Podgorski, W.A., Bush, R.I., Scherrer, P.H., Gummin, M.A., Smith, P., Auker, G., Jerram, P., Pool, P., Soufli, R., Windt, D.L., Beardsley, S., Clapp, M., Lang, J., Waltham, N.: 2012, The Atmospheric Imaging Assembly (AIA) on the Solar Dynamics Observatory (SDO). Solar Phys. 275, 17.
- Löptien et al. (2016) Löptien, B., Birch, A.C., Duvall, T.L., Gizon, L., Schou, J.: 2016, Data compression for local correlation tracking of solar granulation. Astron. Astrophys. 587, A9. DOI. ADS.
- Markwardt (2009) Markwardt, C.B.: 2009, Non-linear Least-squares Fitting in IDL with MPFIT. In: Bohlender, D.A., Durand, D., Dowler, P. (eds.) Astronomical Data Analysis Software and Systems XVIII, Astron. Soc. Pacific C.S. 411, 251. ADS.
- Müller et al. (2009) Müller, D., Fleck, B., Dimitoglou, G., Caplins, B.W., Amadigwe, D.E., Ortiz, J.P.G., Wamsler, B., Alexanderian, A., Hughitt, V.K., Ireland, J.: 2009, JHelioviewer: Visualizing large sets of solar images using JPEG 2000. Comp. Scien. Eng. 11(5), 38.
- Nicula, Berghmans, and Hochedez (2005) Nicula, B., Berghmans, D., Hochedez, J.-F.: 2005, Poisson Recoding Of Solar Images For Enhanced Compression. Solar Phys. 228, 253.
- Peters and Kitaeff (2014) Peters, S.M., Kitaeff, V.V.: 2014, The impact of JPEG2000 lossy compression on the scientific quality of radio astronomy imagery. Astron. Comp. 6, 41. DOI. ADS.
- Skodras, Christopoulos, and Ebrahimi (2001) Skodras, A., Christopoulos, C., Ebrahimi, T.: 2001, The JPEG 2000 still image compression standard. IEEE Signal Proc. Magazine 18, 36.
- Wang and Bovik (2009) Wang, Z., Bovik, A.C.: 2009, Mean squared error: Love it or leave it? a new look at signal fidelity measures. IEEE Signal Proc. Magazine 26(1), 98. DOI.
- Wang, Simoncelli, and Bovik (2003) Wang, Z., Simoncelli, E.P., Bovik, A.C.: 2003, Multiscale structural similarity for image quality assessment. In: 37th Asilomar Conf. on Signals, Systems and Computers 2, 1398. DOI.
- Wang et al. (2004) Wang, Z., Bovik, A.C., Sheikh, H.R., Simoncelli, E.P.: 2004, Image quality assessment: From error visibility to structural similarity. IEEE Trans. Image Proc. 13(4), 600.
- White and Verwichte (2012) White, R.S., Verwichte, E.: 2012, Transverse coronal loop oscillations seen in unprecedented detail by AIA/SDO. Astron. Astrophys. 537, A49.