Issue 
A&A
Volume 595, November 2016



Article Number  A99  
Number of page(s)  13  
Section  Astronomical instrumentation  
DOI  https://doi.org/10.1051/00046361/201629565  
Published online  04 November 2016 
Compression of interferometric radioastronomical data
Netherlands Institute for Radio Astronomy (ASTRON), PO Box 2, 7990 AA Dwingeloo, The Netherlands
email: offringa@astron.nl
Received: 22 August 2016
Accepted: 7 September 2016
Context. The volume of radioastronomical data is a considerable burden in the processing and storing of radio observations that have high time and frequency resolutions and large bandwidths. For future telescopes such as the Square Kilometre Array (SKA), the data volume will be even larger.
Aims. Lossy compression of interferometric radioastronomical data is considered to reduce the volume of visibility data and to speed up processing.
Methods. A new compression technique named “Dysco” is introduced that consists of two steps: a normalization step, in which grouped visibilities are normalized to have a similar distribution; and a quantization and encoding step, which rounds values to a given quantization scheme using a dithering scheme. Several nonlinear quantization schemes are tested and combined with different methods for normalizing the data. Four data sets with observations from the LOFAR and MWA telescopes are processed with different processing strategies and different combinations of normalization and quantization. The effects of compression are measured in image plane.
Results. The noise added by the lossy compression technique acts similarly to normal system noise. The accuracy of Dysco is depending on the signaltonoise ratio (S/N) of the data: noisy data can be compressed with a smaller loss of image quality. Data with typical correlator time and frequency resolutions can be compressed by a factor of 6.4 for LOFAR and 5.3 for MWA observations with less than 1% added system noise. An implementation of the compression technique is released that provides a Casacore storage manager and allows transparent encoding and decoding. Encoding and decoding is faster than the read/write speed of typical disks.
Conclusions. The technique can be used for LOFAR and MWA to reduce the archival space requirements for storing observed data. Data from SKAlow will likely be compressible by the same amount as LOFAR. The same technique can be used to compress data from other telescopes, but a different bitrate might be required.
Key words: techniques: interferometric / methods: observational / methods: data analysis / radio continuum: general
© ESO, 2016
1. Background
Data from interferometric radio observatories consists of correlated signals from all the pairs of antennae that are part of the interferometric array. These correlated signals are measured in spectral channels, and integrated over short timesteps before they are recorded to disk (Thompson et al. 2001).
Correlators in modern interferometric radio observatories output data at high spectral and temporal resolutions (Perley et al. 2011; Wilson et al. 2011; Tingay et al. 2013; van Haarlem et al. 2013). It is often not desirable to decrease the resolution before archiving, because resolution in both dimensions provides scientific value. High temporal resolution is for example desirable for variability studies (Stappers et al. 2011), advanced calibration methods that solve for the ionospheric disturbances and instrumental variabilities (Kazemi et al. 2013; Smirnov 2011; van Weeren et al. 2016) and to avoid time decorrelation. On the other hand, high frequency resolution is necessary for spectralline studies (Favre et al. 2011; Morabito et al. 2014; Offringa et al. 2016), accurate removal of manmade interference (Offringa et al. 2013) and bandwidth decorrelation. The required time and frequency resolutions can lead to data volumes of several petabytes, which have to be supported by complex network architectures to allow acceptable transfer rates. While current interferometers consist of up to a few hundred of antenna elements, future instruments will have thousands of antenna elements that will produce data at even higher resolutions or with multiple beams, thereby increasing the data volume and associated storage costs by several orders of magnitudes (van Cappellen & Bakker 2010; Jiwani et al. 2013; Heywood et al. 2016). For these reasons, compression of correlated interferometric data is desirable.
In radio astronomy, linear quantization of the captured antenna voltages prior to correlation is common and well understood (Thompson et al. 2007). Further quantization of correlated data is however not common, mainly because it has not been explored what the effects of quantization are on the final science products, such as images or spectra. Since many interferometric projects need to reach large dynamic ranges, compression techniques that would limit the dynamic range are undesirable.
In this paper I consider compressing correlator output samples that consist of complex values. These data commonly have a low signaltonoise ratio (S/N), especially at high resolutions (Thompson et al. 2001), and noiselike signals are inherently hard to compress without loss of information (Shannon & Weaver 1949). In radio data, each complex component is normally stored as a 32bit IEEE 754 singleprecision floatingpoint value (see e.g. “FITS Interferometry Data Interchange Format”, AIPS memo #114, Sect. 4.1; and “MeasurementSet definition version 2.0”, CASA Memo #229). Lossless compression is only effective for the 8bit exponents of the floating point values, because the mantissa and sign follow closely a uniform distribution and are incompressible without loss. Therefore, lossless compression can only reduce the volume of visibilities to approximately 75% of the original size. For these reasons, this paper will explore compression with a lossy encoding.
There are a few existing implementations of compression that are related to compressing visibilities. Firstly, AIPS can write visibilities as 16bit values with uniform quantization. Secondly, the Flexible Image Transport System (FITS) file format (Wells et al. 1981) allows Rice, GZIP, HCompress, and PLIO compression^{1}. Thirdly, for compression of integer data recorded with the CHIME telescope, Masui et al. (2015) showed that those data can be compressed to 28% of its original size using linear quantization and applying the bitshuffle technique before LZ77 encoding (Ziv & Lempel 1977). FITS compression was designed particularly with image compression in mind, and is not designed for visibility data. FITS compression uses exponential quantization (the mantissa is rounded). It supports subtractive dithering (Pence et al. 2010). AIPS and BITSHUFFLE do not use dithering.
Fig. 1 Dynamic spectra of 1.5 min of a LOFAR observation at high frequency and time resolutions (6 kHz and 0.5 s) with strong RFI, compressed to 8 bits per float with different kinds of normalization. Compression with perrow normalization increases the noise significantly in all channels. The RF and AF normalizations, which normalize the channels individually before encoding, behave more robust in the presence of RFI. 

Open with DEXTER 
Fig. 2 Compression example of a single baseline of a LOFAR observation with high S/N. Topleft plot: original data; topright plot: compression with AFnormalization; bottomleft plot: compression with RFnormalization; bottomright plot: compression with row normalization. Compression was performed with the 2.5σtruncated Gaussian 3bit quantization. The red, green, blue and black dots represent the XX, XY, YX and YY correlations, respectively. 

Open with DEXTER 
In this work, I describe a new compression method that is particularly designed for noisedominated visibilities. It makes use of the Gaussian distribution of noise. I will test the effects of this compression method and will determine the maximal compression factor for this technique given a maximal increase in the system noise. In Sect. 2, I will describe the new technique. Section 3 presents the implementation. The result of this technique are shown in Sect. 4 using four test sets. The results are discussed in Sect. 5 and suggestions for future work are given in Sect. 6. Final conclusions are presented in Sect. 7.
2. Methods
The new method consists of two steps: a normalization step, in which grouped visibilities are normalized to have a similar distribution; and a quantization and encoding step, which rounds values to a given quantization scheme using a dithering scheme. The new compression technique consisting of the combination of these two steps is named “Dynamical Statistical Compression” (Dysco). In the next subsections, we will describe the two steps in detail.
2.1. Normalization
In observations, the variance of the data can be different for visibilities of different times, antennae, polarizations and frequencies. To encode visibilities accurately, this variation in variance should be normalized so that the visibilities follow the same distribution. The AIPS uvfits format allows compression of visibilities, and in this format visibilities are normalized by row: each row of visibilities is scaled by a single scaling factor to match the data to the quantization. A row contains an array of visibilities with different frequencies and polarizations, but of the same timestep and antennas (Greisen 2016). This normalization method will be referred to as “row normalization”. The downside of this method is that visibilities from different frequencies and polarizations are assumed to follow the same noise distribution. This can be an issue when RFI has not been flagged before encoding, as well as when the bandpass has a large dynamic range or when the statistics of the differentlypolarized visibilities differ strongly.
Two additional ways to normalize the visibilities are tested. For the second method, each visibility is normalized by three terms: f_{ch}, a channel scaling term, and f_{a} and f_{b}, a scaling term for the antennae that were correlated. Hence, for a given visibility, the corresponding normalization factor σ can be calculated with σ = f_{ch}f_{a}f_{b}. Different timesteps and polarizations are encoded independently, so will have different normalization factors, while the real and imaginary values of a visibility are assumed to follow the same distribution. Consequently, for the visibilities corresponding to a given timestep and polarization, N_{ch} + N_{ant} factors are stored, as well as quantized values. Such a group of visibilities will be referred to as a timeblock, and this way of normalization as antennafrequency (AF) normalization. For each timeblock, the channel and antenna factors are stored separately as 32bit floating point values.
AFnormalization does not work well on autocorrelations, because these have different statistics, and its standard deviation can generally not be described by the multiplication of two antenna factors. Autocorrelations of astronomical interferometers are seldomly used, and therefore in this work the autocorrelations are set to zero and are ignored during compression. If autocorrelations are to be saved, a separate scaling factor could be computed for autocorrelations. Our implementation does not support this at this point. The other normalization methods do preserve the autocorrelations.
The third normalization method, rowfrequency normalization (RFnormalization), uses two terms: f_{ch}, a channel scaling term and f_{row}, a row scaling term. Each polarization also has its own channel and row factors. The final normalization factor is σ = f_{ch}f_{row}. This is somewhat similar to the row normalization method (as used in AIPS) but with some differences: an additional normalization term per frequency is added and independent perrow factors for different polarizations are stored, because the polarizations can have different distributions.
For each of these methods, the data is normalized such that the maximum normalized value is equal to the maximum quantizable value, that is, the maximum value can be represented exactly and never needs trimming. An alternative is to normalize the data such that a certain range (e.g. all data < 3σ) fits inside the quantization, and all excess values are trimmed. Initially, for this work the latter method was tested as well. In the case of noisedominated data, it was found that trimming does not cause a bias, but in case some part of the data has excess values due to real signal, it causes a bias. Hence, trimming data is not considered in this work. Normalization scales the data to fit within the quantization minimum and maximum values.
In typical situations, in particular for data outputted by the LOFAR or MWA correlators, the extra metadata (the scaling factors) stored by any of the normalization methods, is negligible.
The result of these normalization methods is demonstrated in Fig. 1 for an observation with strong RFI. The original spectrum is shown in the topleft. The other dynamic spectra show the difference between before and after compression using the three normalization techniques. With perrow normalization, when one of the channels contain large values, the noise in the other channels increases strongly. With AF and RF normalization, which have an extra channel normalization factor, the noise in the data without RFI is not significantly increased.
Figure 2 shows another example of the properties of normalization. These scatter plots show a single baseline of a LOFAR observation. This particular observation was averaged to a resolution of 12 s and 200 kHz, and because of this it has a high S/N in the XX and YY polarizations. All three normalizations visibly add noise to the data, but in different ways. The assumption for AFnormalization is that the data is noise dominated. Because this is not the case in this example, the noise added to the XX and YY polarizations is larger than for the other normalizations. Row normalization does not store an independent scaling factor per polarization. Because of this, the accuracy of the XY and YX quantization strongly depends on the XX and YY signals. We note that the quantization is unbiased; while the quantization adds certain structures to the raw visibilities (most clearly visible in row normalization), it will be shown in later sections that the added imaging noise is unstructured and unbiased.
2.2. Quantization
After normalization, the visibilities are encoded with a nonlinear quantization scheme. The encoding is apriory optimized for complex samples with a given distribution with zero mean. The distribution of correlated samples will approximate a normal distribution when the S/N is low and the observation does not contain interfering sources. Several encoding schemes are tested that are optimized for different distributions.
The quantization table is created by uniform sampling of the inverse of the corresponding cumulative distribution function. Dithering is applied to avoid possible systematic bias when the signaltonoise ratio in the input data is high. Dithering is implemented as follows: for each float to be encoded, the two closest quantization values are found. The chosen encoding quantity is selected randomly, giving each a probability dependent on its distance to the original value. A quantized value will always be selected when it equals the original value, while if the original value is halfway between the two quantized values, both quantities are equal likely to be selected. This is equivalent to adding uniformlydistributed random noise to the input value, which is a common method of applying dithering, except that the bounds of the distribution vary per sample, depending on the distance of the value to the quantization values. Dithering ensures that the average of encoding a value many times asymptotically approaches that value. An example of the quantization is shown in Fig. 3.
Fig. 3 A quantization example using the Gaussianoptimized leastsquares quantization scheme with dithering to quantize a sinc function. 4bit quantization and a single scaling factor were used. Left plot: result of encoding and decoding. Because the quantization is optimized for Gaussian distributed values, the quantization steps are smaller near zero. Central and right plot: average of 3 and 100 times encoding and decoding respectively. 

Open with DEXTER 
Sets used for testing the compression.
The quantized values are converted to binary values and bitpacked. The number of bits can be set by the user, and define the number of quantities per encoding symbol. One encoding quantity is reserved for storing the special value “notanumber” (NaN). An odd number of quantities remains for encoding finite values. Since the quantized values are symmetric around zero, the value 0 can be encoded precisely. This is beneficial, because it implies that no noise will be added when encoding the value zero. This way, an antenna that has produced zeros can be more easily identified. As an example, when the user asks for 8 bit encoding, a visibility is quantized to 256 values: values <127 correspond with negative visibilities; 127 corresponds with zero; values >127 and <255 correspond with positive visibilities; and 255 corresponds with the value NaN.
3. Implementation
The Casacore table system that is used to access CASA measurement sets uses socalled “storage managers” to access visibilities on disk (van Diepen 2015). The storage manager system is transparent to the client program, and storage managers can be located in an external software library. Any client program that uses Casacore (including CASA) can access measurement sets that were stored with a custom storage manager, without any changes to or recompilation of the client software. For this project, such a Casacore storage manager was designed to allow the transparent compression of data in a Casacore measurement set with the Dysco technique. The source code of the Dysco implementation is publicly released^{2}.
In my implementation, the compressed data is stored in an extra file inside the measurement set. Inside the file, the timeblocks are stored consecutively. Given that a timeblock has a fixed number of visibilities, as well as that the encoded representation has a fixed size, the position of a timeblock inside the file can be directly calculated. This has implementational advantages, such as not having to maintain an index table, as well as being able to replace a timeblock without the possibility that the new timeblock will not fit.
Because each timeblock is compressed independently in each of the normalization and quantization methods, random access and streaming access of the timeblocks is possible. When a timeblock is requested or written, the implementation will keep that timeblock in the cache until another timeblock is written or read. This avoids encoding or decoding the timeblock when the client accesses different visibilities (table rows) from the same block multiple times. Once a different timeblock is requested, the cached timeblock is queued for writing if it has been changed. This system implies that accessing the visibilities in timemajor order requires encoding or decoding each time block only once. This access pattern is the most common way of accessing a measurement set – calibration and imaging access the data in this way. One exception to this is flagging (Offringa et al. 2013), for which a reordering of the data is performed. Random access to measurement sets will lead to encoding or decoding the same block multiple times, but in practice this access pattern is rare.
AFnormalization is implemented as follows: first, the channel standard deviations are divided out to make each channel have a standard deviation of unity. Then, the antenna factors are found by solving Σ = f_{ant} ⊗ f_{ant}, where ⊗ is the outer product, Σ is a matrix with the measured variance of a baseline at each element after channel normalization, and f_{ant} is a vector with the antenna factors to be solved for. After dividing out the antenna factors, such that the variance of each baseline is approximately unity, the algorithm continues by iteratively selecting and maximizing the channel factor or antenna factor that increases the sum of the absolute values the most when maximized. This is continued until the gain is smaller than some threshold.
In the RFnormalization algorithm, the standard deviations of the channels are also first normalized, but afterwards each row is directly maximized. After that, each channel is maximized.
The encoding of timeblocks is multithreaded. Typical nodes can encode and write visibilities faster than writing the uncompressed visibilities.
4. Results
In this section, Dysco is tested using several real observations. Table 1 lists the sets that have been used for testing. LOFAR HBA and MWA observations were used with different time and frequency resolutions. Because the compression method adds noise that is relative to the variance of the data, sets with different signaltonoise ratios were used for testing. For both telescopes, a highresolution set was used, which is the typically resolution for archiving, and a set at lower resolution was used that is the typical resolution used during processing.
Images were produced for each of the sets and for various compression configurations. Reference images were made by skipping the compression step. Typical imaging parameters for the field of interest were used. Two quantities were measured: the rms of the difference between the reference and the dirty images of the compressed set; and the absolute rms levels of the images after cleaning. The differential rms was measured over the entire image. The absolute rms was measured in a rectangular part of the image in which no sources were visible. Each test set was tested with a different processing strategy, in order to test the effect of compression in combination with different processing steps.
Fig. 4 Compression noise rms values for different quantization schemes and test sets, determined by measuring the rms in the difference between images processed with and without compression. The horizontal dashed grey line indicates the system noise level. 

Open with DEXTER 
LOFAR test set A of the 3C 196 field was RFI flagged and compressed with one of the described methods. Subsequently, calibration and subtraction of 3C 196 was performed on compressed data. Calibration was performed using the Mitchcal tool introduced by Offringa et al. (2016). The corrected visibilities were written without compression, so that the quantization noise was only added once. These uncompressed visibilities were then imaged. Because 3C 196 is a strong source at these frequencies (~100 Jy) while the imaging noise is only a few mJy, the set also tested compression of visibilities for imaging with high dynamic range.
Test set B is a LOFAR measurement set of the 3C 196 field with high time and frequency resolutions. It was RFI flagged before compression. After compression, it was averaged 8× in frequency and 16× in time, calibrated using the LOFAR calibration tool ndppp (Dijkema et al., in prep.) and imaged.
Test set C is an MWA measurement set targeting the Vela and Puppis A supernova remnants. It was calibrated and averaged before compression. Calibration was performed by transferring solutions using CASA. The imaging was performed on the compressed visibilities. It has a relatively low time and frequency resolution, which is typical in MWA data processing to decrease the data volume. This set has a high S/N, in particular on the smaller baselines, because some of these see the Galactic plane.
Test set D is an MWA measurement set of calibrator Hydra A. Compression tests were performed on the original MWA time and frequency resolutions outputted by the MWA correlator. The compressed data was calibrated using Mitchcal, and the corrected visibilities were again stored with compression. This implies the compression noise was added twice.
All imaging was performed with wsclean (Offringa et al. 2014), and all sets were imaged using uniform weighting. In uniform weighting, more weight is applied to the long baselines. Therefore, compression errors on the long baselines dominate the compression errors in image space. This is a realistic usecase for data from these telescopes.
4.1. Compression accuracy
Figure 4 shows the differential imaging error (reference dirty image minus dirty image using compression) as a function of the number of bits used in compression, for different normalization and quantization techniques. Continuous lines are normalized using AFnormalization, dashed lines using RFnormalization and dotdashed lines using row normalization. The colour indicates the quantization distribution. The horizontal grey line indicated the Stokes V noise, which is similar to the system noise. Hence, when the imaging error is well below this noise level, it will have an insignificant effect.
The Gaussian and 3.5σ truncated Gaussian quantizations produce relatively larger errors compared to other quantizations if more than approximately 8 bits are used in compression. An intuitive explanation for this is that at higher bit levels, these distributions reserve more quantization values for outlying values. The visibilities are scaled such that the maximum visibility value matches the maximum quantization value. Because the number of visibilities per time block are limited, visibilities rarely have outlying values, and therefore do not match the quantization distribution.
With the exception of the Gaussian and 3.5σtruncated Gaussian quantizations schemes, methods that perform relatively well with few bits also perform relatively well with more bits, which allows one to generalize the results of one bitrate to other bit rates. Table 2 shows the 8bit compression imaging errors for the three normalization methods and for the four sets. Additionally, it shows the average over the normalized sets for each unique combination of normalization and quantization method, as well as the average over the normalization methods and quantization methods. In order to make each test set equally important in the averaging, normalization is performed by dividing the results of a particular test set by the average result of that test set, and multiplying it by the average error over all test sets. Confidence intervals are given at 2σ boundaries. Confidence intervals of average values are calculated by assigning each measurement a standard error equal to the standard deviation of the measurements that are averaged over, and these errors are propagated to the average value.
The results show that the combination of rownormalization with 1.5σtruncated Gaussian quantization achieves the lowest error (153 ± 56 μJy). The combination with secondlowest error is rownormalization with uniformly distributed quantization (177 ± 91 μJy). This is the “AIPS compression” technique, but with 8bits instead of 16bits quantization, and with dithering. As was shown in Fig. 1, perrow normalization is not robust and performs badly in the case of RFI or when there are other reasons for large differences between channels. The combination with lowest error excluding rownormalization, is AFnormalization with a 2.5σGaussian quantization distribution (184 ± 31 μJy).
When taking the average over the quantization methods, AFnormalization performs slightly but insignificantly better on average of the three normalization methods tested. When comparing the average error of the quantization methods by averaging over the normalization methods, the 1.5σtruncated and 2.5σtruncated Gaussian quantizations achieve the overall lowest errors. The Gaussian and 3.5σtruncated Gaussian quantizations produce significantly larger errors than the other three methods.
Imaging error rms values with 8bit compression.
In Fig. 4, for test sets A, B and C it is clear that the compression error decreases by a constant factor for each bit that is added. The fact that the decrease in error is larger at the very low bitrates of 2–4 bits (which makes the error as a function of bitrate slightly steeper in Fig. 4), is because one encoding quantity is reserved for the special value NaN. The error ratio of 8bit compression over 16bit compression is 258, 246 and 247 for set sets A, B and C respectively. Therefore, every added bit decreases the error by approximately a factor of 2. For test set D, the same 8bit/16bit ratio is only 5.8. This is likely because the compression error is not the dominating error in the imaging of this set. This set has more than ten times more visibilities than the other sets, and the large number of visibilities will increase the effect of quantization noise during the calibration and imaging due to the use of 32bit floats in those operations. The small numerical changes caused by the compression will trigger a different instantiation of quantization noise during the imaging, and this dominates the error. Because the error is not decreased when going from 12 to 16 bits, the implication is that storing more than 12 bits is uneconomical for this test set, because the imaging error is already dominated by the numerical precision of the imaging.
So far, results were based on the error, that is, the difference between the original dirty image and the dirty image after compression. To analyse the actual implications of compression after deconvolution, Fig. 5 shows the fractional noise changes calculated from cleaned StokesI images. Noise values are measured in a relatively empty square near the centre of the images. These plots mostly show the same trends as Fig. 4. For test set B, increasing the number of bits does not improve the sensitivity of the deconvolved image: even at the lowest bitrate, the deconvolved image is dominated by system noise.
4.2. Properties of compression noise
Besides producing low average errors, a visibility compression technique should also not add structural noise to an image, and should not change the flux of sources. To show that the compression technique indeed behaves properly, compression examples are shown in Figs. 6 and 7. Both figures display the original and compressed images and their difference, and are made from test set A.
In Fig. 6, an 8bit quantization scheme is used with the 2.5σtruncated Gaussian distribution and AFnormalization, such that the compression noise is lower than the image noise. The original and compressed images can not be distinguished by eye. The difference shows unstructured noise. The noise distribution of the image follows closely a Gaussian distribution.
In Fig. 7, a 2bit quantization scheme is used with the 2.5σtruncated Gaussian distribution and AFnormalization. As can be seen in the compressed image, the noise is significantly increased due to the low bitrate and reasonably high S/N of the observation. The difference image again does not show any structure or bias at the position of strong sources. The noise distribution of the difference image follows again a Gaussian distribution.
From these results, it is clear that the quantization noise behaves like normal system noise in the image plane. While test sets B, C and D are short observations, test set A is a 6 h observation. Because the noise in test set A does not show systematic behaviour, one can conclude that compression noise averages down like system noise, and remains uncorrelated in longer observations.
4.3. Minimum bitrates
Using Figs. 4 and 5, a minimum acceptable bitrate can be derived by defining an acceptable imaging error. An acceptable imaging error might depend on the application: in a confusionlimited survey such as GLEAM (Wayth et al. 2015; HurleyWalker et al. 2016), a compression noise addition at 10% of the system noise is likely acceptable, since this will still be well below the imaging noise level. However, in systemnoiselimited spectralline work or in Epoch of Reionization experiments, a 10% noise increase might not be acceptable.
Fig. 5 Change in imaging noise as an effect of compression, measured relatively to the uncompressed image noise in an empty region of the images. The measurements were performed for different quantization schemes and test sets. 

Open with DEXTER 
Minimum bitrates are now calculated for four different requirements: for requirements (i) and (ii), the dirty image error rms must be smaller than 10% and 1% of the system noise, respectively; for requirements (iii) and (iv), the deconvolved image noise level must change by less than 10% and 1%, respectively. Table 3 lists the results. With 10bit compression, every test set can be imaged with less than 1% error. Since a 1% imaging error with a smaller imaging noise increase is probably acceptable in any project, it is likely that 10bit compression is acceptable for all LOFAR observations, and 8bit compression for all MWA observations.
Test sets B and D are at higher frequency and time resolution than A and C, and their S/N is thus lower. Therefore, they require fewer bits to achieve the same error. These sets can be compressed using 6bit (LOFAR) and 5bit (MWA) compression with less than 1% error. Test sets B and D are compressed at the correlator output resolution, and this is in most cases the resolution at which the observations are archived. Hence, assuming the results can be generalized to other observations, LOFAR and MWA archival data can be compressed with an insignificant change in image quality using 5 and 6bit compression, respectively.
4.4. Measurement set compression
A Casacore measurement set can be decomposed into visibility data, weights and observational metadata. Here, observational metadata refers to other data inside the measurement set, such as antenna indices and timestamps. The normalization factors are considered to be part of the visibility data volume. The measurement set definition allows two ways of storing weights: a single weight per table row that applies to all visibilities of that row; and a weight per visibility. In the latter case, the weights are stored in a column named “WEIGHT_SPECTRUM”. For each complex visibility consisting of two 32bit floats, a single 32bit float weight is stored. Therefore, the weights make up about one third of the volume of a data set. LOFAR and MWA observations require a weight per visibility, in particular because RFI can cause the weights of visibilities within a row to vary, and sensitivity will be lost if pervisibility weights are not stored and used in the processing. Another reason for pervisibility weights is to reduce the weight of the edges of a (sub)band with increased noise. Without pervisibility weights, these edges are not downweighted and reduce the sensitivity.
When the DATA column is compressed by a factor of a few, it becomes relevant to compress the weights too. Fortunately, this is much less complicated. Normally, four linearlypolarized correlations are stored inside LOFAR measurement sets. The weights of visibilities for different polarizations are always the same. The measurement set format does not make use of this fact, and stores four equal weights in the case of LOFAR. By simply writing only one weight for the four polarized visibilities, the weight volume is reduced by a factor of 4. To increase the weight compression further, one can use the fact that quantizing the weights is much less problematic than quantizing visibilities: while changing the weights might reduce the sensitivity, even if the weights are always truncated, they will not cause a bias. Dithering is therefore not required. Weights are also not noisy, and can not have extreme outliers, making them suitable for linear quantization. I found that linearly quantizing the weights to 12 bits with row normalization does not influence the sensitivity noticeably (≪ 1%) in the four test sets. The weights can probably be quantized with fewer bits, but extensive testing is limited in this work to compression of visibility data, which is the most pressing issue. Tests with different bitrates for the weights were not performed. With 12bit weights and one weight for every four differentlypolarized visibilities, the weights are compressed by a factor of 10, and are no longer the dominating contribution to the size of compressed measurement sets.
Figure 8 shows the size of the data, weights and metadata of a measurement set that contains the data for test set B. The sizes before and after compression relative to the uncompressed size of the full measurement set are shown. The size of the measurement set after compression with the BZIP2 algorithm (Burrows & Wheeler 1994) is also shown for comparison. With BZIP2, the visibilities are hardly compressed. However, because weights do not contain noise and are repetitive, the weights can be compressed to less than 1% of its original size. When 2 or 3 bit compression is used for the visibilities, the weights and metadata dominate the measurement set size.
Fig. 6 Noise added by 8bit compression using LOFAR test set A. Left image: result of calibration, 3C 196 subtraction and imaging without compression. Centre image: same, but before processing the visibilities were compressed using the 8bit quantization scheme (4× compression) with the 2.5σtruncated Gaussian distribution. Right image: difference between left and centre images – note the different colour scheme. Its rms is 430 μJy. The added noise is unstructured and well below the system noise, and the left and centre images are visually indistinguishable. 

Open with DEXTER 
Fig. 7 Noise added by 2bit compression using LOFAR test set A. Left image: results of calibration, 3C 196 subtraction and imaging without compression. Centre image: same, but before processing the visibilities were compressed using the 2bit quantization scheme (16× compression) with the 2.5σtruncated Gaussian distribution. Right image: difference between left and centre images. While the added compression noise dominates the noise in the image, the compression has not affected the sources systematically and the added noise is unstructured. 

Open with DEXTER 
4.5. Computational performance
Table 4 lists the wallclock time of several operations. Each entry is the average of five runs. For the measurements, a highend server with a 40core Intel Xeon E52660 running at 2.20 GHz was used. For storage, a RAID disk with 4 × 3TB spinning disks was used. Since the ratio between compression and writing will vary strongly depending on the speed of the system, these results only provide an indicative impression of the speed of the compression.
Compressing the visibilities consists of reading the old data column and writing a new table column into the measurement set with the compressed visibilities. To replace an existing column with a compressed column, it is normally also required to replace flagged visibilities with NaN values. When performed as a separate step, this takes approximately as much time as compressing the visibilities. This is not included in the measurements. In a pipeline that writes out compressed visibilities, this step can be done on the fly. Once the compressed column has been written, the old uncompressed data column can be removed from the data set. However, the casacore storage managers do not release the space of a removed data column, and the measurement set will therefore not decrease in size. In order for the space to be released, the whole measurement set needs to be rewritten. Performing the full reordering is not included in these measurements. The reordering can be avoided by writing out compressed visibilities in a pipeline or by the correlator instead of replacing the data column of an existing measurement set.
The results show that compression speeds up processing of imaging. A considerable cost in compressing the visibilities is reading the uncompressed data, which can be avoided by integrating compression in a pipeline. Using a lower bitrate decreases the wallclock time of the operations, because it requires less reading or writing.
Minimum bitrate per data set, given four different requirements.
5. Discussion
It was shown that Dysco works best in cases with low S/N, where it can achieve compression factors of 5 to 6, or approximately twice as much if it is acceptable to increase the system temperature by 10%. Since all four test sets are observations of bright targets, these test sets are approximately worst case situations. Most target fields will be more quiet, and will therefore compress with larger accuracy. While a few brighter targets exist (Cygnus A and Cassiopeia A in particular), these targets are often limited by dynamic range issues during deconvolution. It is therefore likely that an increase in system noise will not degrade the imaging results. In the exceptional situation of very bright targets and an extremely high dynamic range, it is advisable to use no compression or compression with larger bitrates.
Only LOFAR HBA and MWA sets were tested. Both tested telescopes operate at low frequency. It is likely that Dysco is effective for other telescopes, but further experiments are required to determine acceptable bitrates. The LOFAR LBA measurements generally have lower S/N compared to LOFAR HBA, hence using the same compression settings for LBA as for HBA will be at least as accurate. In the current SKA design, the station size of SKAlow stations will be similar to the size of LOFAR stations and correlator resolutions will be at least as high as for LOFAR. It can therefore be assumed that the compression of SKAlow observations is equally affective as for LOFAR. Very long baseline interferometry (VLBI) observations are typically correlated at high time and frequency resolution, and produces noisedominated data. Compression is therefore likely to work well on VLBI observations.
Fig. 8 Comparison of data volume using test set B. The “original” case is not compressed, and “bz2” is compressed using bzip2 compression. For the other cases, the weights are compressed to 12 bits and the visibilities are compressed to the value on the xaxis with one of the quantization methods described in this paper. 

Open with DEXTER 
Averaging in time or frequency affects the field of view because of time and frequency smearing. It also removes information that might be useful for highresolution spectral work or calibration. The compression methods introduced here do not remove the highresolution information. Due to the dependence on the S/N, Dysco will in particular be useful for compressing raw correlation data. Because observations are often archived at high resolution, this can significantly lower the demands for archive space. During data processing, data from the archive is often averaged before calibration and imaging to decrease the computational requirements (e.g. van Weeren et al. 2016; HurleyWalker et al. 2016). During this step, the averaged data can be written without compression. With the implementation resulting from this work, this can be completely transparent to the astronomer, because the compressed measurement set can be handled as a normal measurement set.
Wallclock timings of several operations on test set D (65 GB) on a server with a 40core Intel Xeon CPU E52660 @ 2.20 GHz and 4 × 3TB RAID disks.
In some cases it might be helpful to compress averaged and/or calibrated data, for example to work with a limited amount of disk space or reduce IO overhead or network transfer. Because of the higher S/N, this requires more quantization bits, but compression factors of 3 and 4 can still be achieved for LOFAR and MWA, respectively.
The result that AFnormalization is on average more accurate than RFnormalization is somewhat counterintuitive, since RFnormalization decomposes the data with more factors and has therefore more freedom to optimize the normalization. In fact, given the factors for AFnormalization, an RFnormalization can be found that performs equally well by setting each row factor to the multiplication of the two relevant antenna factors. Hence, RFnormalization never has to perform worse. The reason that this does occur is that, as discussed in Sect. 3, the AFnormalization algorithm decomposes the data in a different order: first it normalizes the channel standard deviations, then it finds the antenna factors, and finally it iteratively maximizes the channel factor or antenna factor that increases the sum of absolute value the most, until convergence. In the RFnormalization algorithm, the standard deviations of the channels are also first normalized, but then each row is maximized. Afterwards, each channel is maximized. The latter algorithm is easier and computationally faster than the AFnormalization algorithm, but results evidently in less optimal factors. An algorithm that produces RFnormalization factors that is at least as accurate as AFnormalization, is to calculate the factors by starting from the AFnormalization factors, and then maximize each row. The computational cost of this is relatively low compared to astronomical operations such as calibration or imaging, so the extra computational cost is likely not an issue. Given that the noise variance of observations can physically be described by the AFnormalization factors, on noisedominated sets it is likely that the extra normalization freedom of RFnormalization does not contribute much.
This work uses for the first time a nonlinear quantization scheme on radio astronomical data, in which the quantization is matched to the expected distribution of the input data. In AFnormalization and RFnormalization it reduces the quantization error compared to linear quantization by 1.60 and 1.25 on average, respectively. Nonlinear quantization is therefore indeed a small improvement over linear quantization for the encoding of radio data.
Our current implementation consists of a storage manager used by CASACORE and a standalone tool that can replace the column of an existing measurement set with a compressed column. As shown, compression works best on RFI flagged data, which is often performed by a preprocessing pipeline. For example, LOFAR uses NDPPP and MWA uses COTTER, two preprocessing pipelines that flag the data using the AOFLAGGER, convert the format of the data to a standard measurement set, and can do several other tasks at the same time. Because raw data from these telescopes have large volumes, every extra read or write of the raw data is costly. Hence, the ideal place for compression is inside these pipelines, just before writing to disk. Pipelines can do so by requesting CASACORE to use the compressing storage manager for the relevant columns.
As was shown in Sect. 4.5, writing data with compression is faster than writing without compression. In certain processing steps, this might be an important consideration. In the Factor pipeline (van Weeren et al. 2016), disk inputoutput is a considerable cost, because the original data needs to be read, phase changed, averaged and rewritten to a measurement set for each facet direction. One possible way to improve this, is to compress the highresolution data at the original phase direction. This will have an insignificant loss in accuracy due to the low S/N, yet decrease the IOoverhead considerably.
5.1. Comparison with other implementations
In this section, I will briefly compare the features of Dysco to the AIPS 16bit compression technique, the FITS file compression technique and the BITSHUFFLE compression technique.
AIPS uses rownormalization with uniform quantization, which I showed to have a high accuracy on average. As was shown, it performs not well in the case of RFI or high dynamic range. The bitrate of 16 bits per input value allows about 4 orders of magnitude of dynamic range before catastrophic quantization occurs. Flagging the data before compression will mostly mitigate this problem. The RF and AFnormalization schemes introduced in this work also solve this issue. The lack of dithering in AIPS compression might lead to a systematic bias (Pence et al. 2010). This is only an issue in the case of high S/N. In the case of low S/N, the intrinsic noise in the visibilities will mimic dithering. Of course, with aips the compression rate is limited to a factor of 2.
The BITSHUFFLE compression technique also uses uniform quantization. Before quantization, values are rounded relative to the expected noise in a sample. The effect of this is somewhat comparable to the combination of normalization and quantization used in this work, which also throws away significance that is smaller than the noise.
The BITSHUFFLE and FITS compression technique use more bits when the rounded values have higher entropy. Therefore, it compresses effectively with a variable bitrate. This is effective for signaldominated data with repeating values, but has no benefit for the compression of noisedominated data with constant entropy.
The FITS compression technique uses exponential quantization. Thereby, similar to Gaussian quantization, the quantization error is smaller for values near zero. In exponential quantization, small values will be preserved with exponentially more precision than large values. This is useful for image data, where the relative error on each pixel is relevant, but is not optimal for visibilities. For those, the average error is a more relevant measure of the effects on the final science products, and since visibilities follow a Gaussian distribution – or even a more uniform distribution after normalization – quantizing with an exponential distribution is not optimal.
5.2. Guideline for method selection
While it is possible to measure the compression loss of observations and determine the acceptable compression method, this is not practical for regular observing of different targets with different correlation settings. Instead, in this section I will weigh the characteristics of the various compression configurations and suggest a rule for selecting the compression method that will not affect data.
Based on the accuracy, several combinations of quantization and normalization have been shown to perform well on all test sets. Perrow normalization with uniform quantization, similar to the method used by aips but including dithering and different bitrates, is on average one of the most accurately performing methods. Moreover, it is the simplest method to implement. However, as was shown, the accuracy of compression with row normalization is sensitive to large dynamic ranges in the visibility, such as in the case of RFI (Fig. 1), and makes the compression of the different polarizations dependent on each other (Fig. 2). The RF and AF normalizations are robust to these issues. On average, the AF normalization performs slightly better than the RFnormalization method, and the most accurate combination with AFnormalization is more accurate than the most accurate combination with RFnormalization. The difference between accuracy of the normalization methods with best quantization are however not significant.
AFnormalization is theoretically slightly more computational intensive during compression compared to RFnormalization and rownormalization, but this difference is small in practice. The methods require the same time to decompress. The quantization method does not change the computational performance of the methods. AFnormalization requires special treatment of autocorrelations, but requires less metadata to be stored (N_{pol}(N_{ch} + N_{ant}) vs. per timeblock). In large measurement sets with many channels, the metadata is insignificant. All in all, there is little reason to select one method over another.
Noise normalization performed by AF normalization will equalize the statistics of all visibilities. Therefore, the extra factors that RF normalization adds do not match the physical process by which the noise is formed. When the signal adds a dominant contribution to the visibilities, the RFnormalization can have a benefit, because with RFnormalization the visibilities of different baselines can be scaled independently. The results show that AF normalization combines better with centrallydense quantization distributions, while RF normalization favours more uniform distributions. For sets with larger number of channels or antennas, the statistics of sets after normalization will be more accurately quantized by centrallydense distributions.
For these reasons, I suggest to use the following guideline for compression of MWA and LOFAR observations, as well as future highresolution SKA observations:

For the compression of highresolution observations(Δt × Δν ≤ 0.5 s × 6 kHz for LOFAR and SKA, and Δt × Δν ≤ 0.5 s × 40 kHz for the MWA), use AF normalization with 2.5σtruncated Gaussian quantization. As described, on average it is the most accurate method with the exception of the less stable rownormalization, it is robust and it matches the underlying physics. Highresolution LOFAR sets can be compressed with 5bit quantization and MWA sets can be compressed with 6bit quantization, respectively.

Observations with a lower resolution – and therefore higher S/N – should be compressed using higher bitrates. Up to a resolution of Δt × Δν ≤ 4 s × 36 kHz for LOFAR and SKAlow, and Δt × Δν ≤ 4 s × 80 kHz for the MWA, RFnormalization with 1.5σtruncated Gaussian quantization should be used, with 10bit compression for LOFAR and 8bit compression for the MWA. On the lowerresolution sets A and C, this is on average the most accurate compression method. As was shown, it is also robust.
Compression with these parameters increases the image noise with less than 1%.
6. Possible improvements and future work
After the quantization of randomly distributed Gaussian noise with a matched quantizer, the compressed data will be independentlydistributed noise with a uniform distribution that can not be compressed any further. Hence, in noisedominated situations, using the distribution of the data and normalizing the data with AFnormalization, will lead in theory to the best compression rate. In the case of signaldominated data, compressed data will be correlated and can be compressed further. To make use of such correlations, an encoding scheme such as Rice coding (Rice & Plaunt 1971) or LZ77 compression (Ziv & Lempel 1977) can be used to increase the compression factor. This makes the inputoutput of data somewhat more complex, because different timeblocks can have different sizes after Rice coding, and this requires extra administration to keep track of the place and size of each timeblock. The algorithm will also have to look for correlations in the time direction, while time is generally the slowest changing dimension. It has been shown to provide good results thought (Masui et al. 2015), and a combination of these methods might provide a generic algorithm that performs nearoptimal in noisedominated as well as signaldominated situations.
As was shown, metadata and weights are easily compressible. At low visibility bitrates, these can have a significant size compared to the data. While it was shown that the weights can be compressed by a factor of 10, compression with BZIP2 can compress the weights by more than a factor of 100. Hence, a similar algorithm but one that can randomly and transparently access the weights inside a measurement set will increase the compression of the weights, compared to the method used in this work.
Baselinedependent averaging can also reduce the size of observations. This can in theory be performed together with the compression method described in this paper. In sets that are not baselinedependently averaged, the visibilities of long baselines receive more weight and will therefore dominate the compression error in image space. Smaller baselines can be stored with fewer bits before their inaccuracies becomes noticeable in image plane. With baselinedependent averaging, the weight of each visibility will be more constant when using the uniform weighting scheme, and every visibility will contribute similarly to the compression error (in image plane). However, if averaging of the smaller baselines increases the S/N in those baselines too much, compression will be less accurate. In that case, the smaller baselines might dominate the compression error. The application of baselinedependent averaging for compressing archival data is limited, because accurate RFI flagging require high time and frequency resolutions (Offringa et al. 2013) and baselines can only be averaged up to the calibration solution interval. For LOFAR, this interval can be as short as a few seconds to deal with the ionosphere in highresolution maps (van Weeren et al. 2016).
Currently, the distribution of a particular visibility is parametrized by a single scaling factor. It is evident from the test results that this single parametrization is not always optimal; signaldominated data sets are more accurately compressed by using a uniform distribution in the quantizer, while noisedominated data sets are more accurately compressed by a truncated Gaussian distribution. Therefore, a possible increase in accuracy could be achieved by increasing the number of parameters of the distribution within each timeblock, for example by searching the optimal truncation value for each timeblock and storing these along with the scaling factors.
7. Conclusions
The Dysco technique for compressing visibilities is suitable for radio observations. The noise added by this compression technique acts like normal system noise. The accuracy of the compression is depending on the signaltonoise ratio of the data: noisy data can be compressed with a smaller loss of image quality. Data with typical correlator time and frequency resolutions can be compressed by a factor of 6.4 for LOFAR and 5.3 for MWA observations with less than 1% added system noise in
image plane. After averaging observations in time and frequency to the typical resolutions used in processing, a compression factor of 3.2 to 4 can be reached with less than 1% added system noise in image plane. The technique is in particular well suited to reduce the archival space requirements.
So far, testing was performed only on lowfrequency data from the MWA and LOFAR telescopes. The implementation is generic and can be applied to other telescopes. However, further experiments are required to determine acceptable bitrates.
The source code and manual of the implementation can be found at https://github.com/aroffringa/dysco. Commit 393cd97758 (8 Aug. 2016) was used.
Acknowledgments
I acknowledge financial support from the European Research Council under ERC Advanced Grant LOFARCORE 339743.
References
 Burrows, M., & Wheeler, D. J. 1994, Technical report 124, Digital Equipment Corporation, http://www.hpl.hp.com/techreports/CompaqDEC/SRCRR124.html [Google Scholar]
 Favre, C., Wootten, H. A., Remijan, A. J., et al. 2011, ApJ, 739, L12 [NASA ADS] [CrossRef] [Google Scholar]
 Greisen, E. W. 2016, Tech. Rep., AIPS Memo 117, http://www.aips.nrao.edu/aipsmemo.html [Google Scholar]
 Heywood, I., Bannister, K. W., Marvil, J., et al. 2016, MNRAS, 457, 4160 [NASA ADS] [CrossRef] [Google Scholar]
 HurleyWalker, N., Callingham, J. R., Hancock, P. J., et al. 2016, MNRAS, 464, 1146 [NASA ADS] [CrossRef] [Google Scholar]
 Jiwani, A., Colegate, T., RazaviGhods, N., et al. 2013, TASA, 30, 23 [NASA ADS] [Google Scholar]
 Kazemi, S., Yatawatta, S., & Zaroubi, S. 2013, MNRAS, 430, 1457 [NASA ADS] [CrossRef] [Google Scholar]
 Masui, K., Amiri, M., Connor, L., et al. 2015, Astron. Comput., 12, 181 [NASA ADS] [CrossRef] [Google Scholar]
 Morabito, L. K., Oonk, J. B. R., Salgado, F., et al. 2014, ApJ, 795, L33 [NASA ADS] [CrossRef] [Google Scholar]
 Offringa, A. R., de Bruyn, A. G., Zaroubi, S., et al. 2013, A&A, 549, A11 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
 Offringa, A. R., McKinley, B., HurleyWalker, N., et al. 2014, MNRAS, 444, 606 [NASA ADS] [CrossRef] [Google Scholar]
 Offringa, A. R., Trott, C. M., HurleyWalker, N., et al. 2016, MNRAS, 458, 1057 [NASA ADS] [CrossRef] [Google Scholar]
 Pence, W. D., White, R. L., & Seaman, R. 2010, PASP, 122, 1065 [NASA ADS] [CrossRef] [Google Scholar]
 Perley, R. A., Chandler, C. J., Butler, B. J., & Wrobel, J. M. 2011, ApJ, 739, L1 [NASA ADS] [CrossRef] [Google Scholar]
 Rice, R., & Plaunt, J. 1971, IEEE Trans. Commun. Technol., 19, 889 [CrossRef] [Google Scholar]
 Shannon, C. E., & Weaver, W. 1949, The Mathematical Theory of Communication (Univ. of Illinois Press) [Google Scholar]
 Smirnov, O. M. 2011, A&A, 527, A107 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
 Stappers, B. W., Hessels, J. W. T., Alexov, A., et al. 2011, A&A, 530, A80 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
 Thompson, A. R., Emerson, D. T., & Schwab, F. R. 2007, Radio Science, 42, RS3022 [Google Scholar]
 Thompson, A. R., Moran, J. M., & Swenson, G. W. 2001, Interferometry and Synthesis in Radio Astronomy, 2nd edn. (WileyInterscience) [Google Scholar]
 Tingay, S. J., Goeke, R., Bowman, J. D., et al. 2013, PASA, 30, e007 [NASA ADS] [CrossRef] [Google Scholar]
 van Cappellen, W. A., & Bakker, L. 2010, in Phased Array Systems and Technology (ARRAY), 2010 IEEE Int. Symp., 640 [Google Scholar]
 van Diepen, G. N. J. 2015, Astronomy and Computing, 12, 174 [NASA ADS] [CrossRef] [Google Scholar]
 van Haarlem, M. P., Wise, M. W., Gunst, A. W., et al. 2013, A&A, 556, A2 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
 Wayth, R. B., Lenc, E., Bell, M. E., et al. 2015, PASA, 32, e025 [NASA ADS] [CrossRef] [Google Scholar]
 van Weeren, R. J., Williams, W. L., Hardcastle, M. J., et al. 2016, ApJS, 223, 2 [NASA ADS] [CrossRef] [Google Scholar]
 Wells, D. C., Greisen, E. W., & Harten, R. H. 1981, A&AS, 44, 363 [NASA ADS] [Google Scholar]
 Wilson, W. E., Ferris, R. H., Axtens, P., et al. 2011, MNRAS, 416, 832 [NASA ADS] [CrossRef] [Google Scholar]
 Ziv, J., & Lempel, A. 1977, IEEE Trans. Information Theory, 23, 337 [CrossRef] [Google Scholar]
All Tables
Wallclock timings of several operations on test set D (65 GB) on a server with a 40core Intel Xeon CPU E52660 @ 2.20 GHz and 4 × 3TB RAID disks.
All Figures
Fig. 1 Dynamic spectra of 1.5 min of a LOFAR observation at high frequency and time resolutions (6 kHz and 0.5 s) with strong RFI, compressed to 8 bits per float with different kinds of normalization. Compression with perrow normalization increases the noise significantly in all channels. The RF and AF normalizations, which normalize the channels individually before encoding, behave more robust in the presence of RFI. 

Open with DEXTER  
In the text 
Fig. 2 Compression example of a single baseline of a LOFAR observation with high S/N. Topleft plot: original data; topright plot: compression with AFnormalization; bottomleft plot: compression with RFnormalization; bottomright plot: compression with row normalization. Compression was performed with the 2.5σtruncated Gaussian 3bit quantization. The red, green, blue and black dots represent the XX, XY, YX and YY correlations, respectively. 

Open with DEXTER  
In the text 
Fig. 3 A quantization example using the Gaussianoptimized leastsquares quantization scheme with dithering to quantize a sinc function. 4bit quantization and a single scaling factor were used. Left plot: result of encoding and decoding. Because the quantization is optimized for Gaussian distributed values, the quantization steps are smaller near zero. Central and right plot: average of 3 and 100 times encoding and decoding respectively. 

Open with DEXTER  
In the text 
Fig. 4 Compression noise rms values for different quantization schemes and test sets, determined by measuring the rms in the difference between images processed with and without compression. The horizontal dashed grey line indicates the system noise level. 

Open with DEXTER  
In the text 
Fig. 5 Change in imaging noise as an effect of compression, measured relatively to the uncompressed image noise in an empty region of the images. The measurements were performed for different quantization schemes and test sets. 

Open with DEXTER  
In the text 
Fig. 6 Noise added by 8bit compression using LOFAR test set A. Left image: result of calibration, 3C 196 subtraction and imaging without compression. Centre image: same, but before processing the visibilities were compressed using the 8bit quantization scheme (4× compression) with the 2.5σtruncated Gaussian distribution. Right image: difference between left and centre images – note the different colour scheme. Its rms is 430 μJy. The added noise is unstructured and well below the system noise, and the left and centre images are visually indistinguishable. 

Open with DEXTER  
In the text 
Fig. 7 Noise added by 2bit compression using LOFAR test set A. Left image: results of calibration, 3C 196 subtraction and imaging without compression. Centre image: same, but before processing the visibilities were compressed using the 2bit quantization scheme (16× compression) with the 2.5σtruncated Gaussian distribution. Right image: difference between left and centre images. While the added compression noise dominates the noise in the image, the compression has not affected the sources systematically and the added noise is unstructured. 

Open with DEXTER  
In the text 
Fig. 8 Comparison of data volume using test set B. The “original” case is not compressed, and “bz2” is compressed using bzip2 compression. For the other cases, the weights are compressed to 12 bits and the visibilities are compressed to the value on the xaxis with one of the quantization methods described in this paper. 

Open with DEXTER  
In the text 
Current usage metrics show cumulative count of Article Views (fulltext article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.
Data correspond to usage on the plateform after 2015. The current usage metrics is available 4896 hours after online publication and is updated daily on week days.
Initial download of the metrics may take a while.