Services

How to manage the size of data in storage spaces

Managing the size of data is an important part of responsible research and working practices. Large amounts of data affect storage needs, backups, transfer times, analysis speed, long-term preservation costs, and how easily data can be reused or shared with others.

Data size management and compression

Managing the size of data is an important part of responsible research and working practices. Large amounts of data affect storage needs, backups, transfer times, analysis speed, long-term preservation costs, and how easily data can be reused or shared with others. Data may become large due to, for example, individual large files, a very large number of files, high resolution or sampling frequency, or multiple versions and intermediate results. 

The aim is not to reduce data size at any cost, but to preserve the scientific value, quality and understandability of the data. Especially with research data, it must be ensured that measurement information and metadata are preserved, the analysis remains reliable, and the data can be validated or reused if necessary.

Who is responsible for managing data size?

Each user is responsible for ensuring that their own files and working practices are appropriate. In research groups and shared storage spaces, the data owner, such as the person responsible for the project or the group leader, must ensure that clear practices have been agreed for the data: what is retained, in which format, for how long, and who is responsible for it.

Decisions about compressing, converting or reducing data should not be made alone if the data is shared, scientifically significant, or related to agreements, funder requirements, publications, research ethics obligations or long-term preservation.

Considerations for managing data size

In addition to traditional deletion processes, data size can be affected by reducing or compressing data. File size can also be reduced within individual files. For example, if a PowerPoint file becomes large, it is recommended to use the Compress option in the file settings; images have a separate compression option. PowerPoint is not the right format for preserving data at original resolution or for storing data pixel by pixel.

Rule of thumb: an office document is usually measured in megabytes; hundreds of megabytes is already large; several gigabytes require consideration; and tens or hundreds of gigabytes are a research data management issue. Videos, microscopy data, simulations and point clouds can normally be very large.

Data reduction means that less data is collected or retained. In this case, the content changes: some data is removed, accuracy is reduced, or the data is simplified. Examples include cropping an image to include only the region of interest, reducing the frame rate of a video, saving only certain sensor channels, or saving simulation output files less frequently.

Data compression means that the same data is stored in a technically more efficient way. In lossless compression, the data can be restored exactly to its original form. Examples include ZIP, 7z, gzip, PNG, TIFF LZW, HDF5 compression, lossless FLAC, and lossless video codecs. 

The practical choice depends on the data:

  • Keep the data as it is if it is small and storage does not cause problems.
  • Use lossless compression if the data is large but all information is needed.
  • Reduce the data if only part of it is needed for analysis.
  • Reduce and compress the data if it is very large and only a selected part is needed.
  • Retain the raw data or a raw data sample if the measurement is unique, expensive or difficult to repeat. 
     

Lossless and lossy compression

Lossless compression is the basic solution for research data when the content and accuracy of the data must be preserved. It is suitable, for example, for raw data, measurement data, imaging data, simulation data, sensor data, large text datasets, CSV files, code files, and bundling many files together. 

Lossy compression reduces file size by removing information. It is usually not suitable as the only version of research data. However, a lossy version may be suitable for viewing, distribution, teaching, presentations or checking purposes, provided that the original data or a sufficiently high-quality lossless version has been retained separately.

A good general rule is:

  • Raw data: original, preferably unchanged.
  • Processed data: suitable for analysis, lossless and documented.
  • Copy: for viewing, distribution, teaching or checking; may be lossy if needed. 
     

When should raw data be retained?

Raw data should be retained unchanged at least when the measurement is unique, expensive, difficult to repeat, or when validation of the research requires the original data. 

The need for validation may arise, for example, in a situation where a journal editor asks the authors to address questions raised after publication and wants to see the raw data underlying a specific figure or analysis. To support published results, it is advisable to retain original, traceable data that can be used, if necessary, to verify the results and demonstrate their provenance. This helps in responding to subsequent questions concerning, for example, the authenticity or integrity of the data.

In research data, the scientific value and quality of the data are often more important than a small file size. Before reducing, converting or deleting raw data, consider at least the following:

  • Will the original quality be needed in later analysis?
  • Could another researcher need details that are not currently being analysed?
  • Is it possible to measure the data again?
  • Will the metadata be preserved?
  • Will the conversion be documented?
  • Can the data still be validated after the change? 

Lossy compression is not recommended during the analysis phase, so that the data is not corrupted and the reliability of the analysis is not weakened. 
 

File format matters

The same data can differ significantly in size and usability depending on the file format. For example, CSV can be large and slow, whereas Parquet can be more efficient for tabular and log data. For simulation data, HDF5, NetCDF and other formats that support chunking structures or internal compression can be useful. For point clouds, LAZ can compress data efficiently. 

General considerations:

  • Images: RAW, DNG, TIFF, JPEG. RAW and TIFF preserve quality, while JPEG is lossy.
  • Microscopy: OME-TIFF, CZI, ND2, LIF, OME-Zarr. Metadata is especially important.
  • Simulations: HDF5, NetCDF, VTK. Chunking and internal compression can make the data easier to use.
  • Video: MOV, MP4, AVI, MKV. The codec often determines the file size.
  • 3D and point cloud data: PLY, OBJ, LAS, LAZ, E57. LAZ compresses point clouds efficiently.
  • Geospatial data: GeoTIFF, COG, Shapefile, GeoPackage, Parquet. Partial reading and analysis use are important.
  • Tabular and log data: CSV, TSV, Parquet, Feather. CSV can be large and slow. 
     

One large file or many small files?

Data size does not only mean gigabytes. The number of files also matters. For example, 10 million small files can be more difficult to handle than a few large files, even if the total data size is the same. A large number of small files slows down transfers, backups, folder browsing and archiving, and cloud services often handle small files inefficiently. 

If the data consists of a very large number of small files:

  • Package the files into an archive, such as zip, 7z, tar.gz or tar.zst.
  • Preserve the directory structure and metadata.
  • Use a container format if needed.
  • Document what the package contains.

If the data consists of individual very large files:

  • Use a format that supports blocks, splitting or partial reading.
  • Use a chunking structure if the format supports it.
  • Divide the data into logical parts, for example by sample, experiment, time period or image layer.
  • Create checksums to verify file integrity. 
     

How to choose a compression method?

Choose the compression method based on the intended use, quality, size and retention requirements of the data.

  • Define the objective: Do you want to save storage space, speed up transfer, make archiving easier, or make the data usable in the long term?
  • Identify the value of the data: Is it raw data, processed data or a distribution copy?
  • Choose lossless compression for research data: Use lossless compression if analytical accuracy or reuse is important.
  • Use a lossy version only as a separate copy: For example, for teaching, viewing or presentation purposes.
  • Prefer open or widely supported formats: This improves long-term usability and reduces dependency on specific software.
  • Document conversions: Record the software used, version, format, settings and the reason for the change.

Common lossless options include ZIP, 7z, gzip, zstd, xz, tar.zst, as well as internal compression provided by formats such as HDF5, TIFF or NetCDF.
 

Video data

Video data can be exceptionally large. For example, uncompressed Full HD video at 60 fps can take about 3 gigabytes per minute. Raw data from a high-speed camera can amount to tens or hundreds of gigabytes in just a few seconds of recording.

Video compression is a balance between file size and analysis quality. If the video is used to measure, for example, motion, shapes, crack propagation or other features requiring accuracy, lossy compression should not be used during the analysis phase.

Recommended approach:

  • Keep the raw data raw during analysis.
  • After analysis, archive the raw video or raw image sequence losslessly, for example as a suitable package.
  • Create a separate lightweight MP4 version for viewing, distribution or presentation purposes.
  • Document the compression parameters.

According to CSC’s guidance, original research data should be kept unchanged somewhere, and large amounts of video should not be left uncompressed in active work or scratch directories. Unnecessary or passive data should be moved to an appropriate storage location. 

For retention and archiving use, high-quality formats such as MP4 with the H.264 or H.265 codec, or, depending on the situation, MOV or AVI, can be used alongside the source material. However, the choice must be based on the intended use and quality requirements. 
 

Documentation

Compression, reduction and format conversions must be documented so that another person can later understand what has been done to the data and why. Documentation is especially important when the data is related to a publication, research reproducibility, long-term preservation or shared use.

Record, for example:

  • the original location and format of the data
  • the new format and compression method
  • the software and version used
  • key settings, such as codec or compression level
  • whether the compression is lossless or lossy
  • what metadata was preserved
  • who made the change and when
  • why the conversion was made

If data is reduced in terms of content, also document what was removed, cropped or combined.
 

Good principle

Do not optimise small data unnecessarily. Compress large data losslessly if all information is needed. Reduce data only if it is clear which part of the data is no longer needed. Retain critical raw data or at least a representative raw data sample if the measurement is unique or needed for validation. Prefer efficient, open and well-documented formats so that the data remains usable later.

Illustration of a person at a computer, connected to cloud storage and two servers on a blue background.

Data Storage, File Services

Comparison of different file services available to Aaltonians.

Services
Illustration of a person at a computer, connected to cloud storage and two servers on a blue background.

How to transfer data from one storage system to another

Read what to consider before, during and after transferring data from one storage system to another.

Services
Illustration of a person at a computer, connected to cloud storage and two servers on a blue background.

What file storage to use when?

Recommended file storage services to use in various use cases.

Services
Illustration of a person at a computer, connected to cloud storage and two servers on a blue background.

General storage principles and related policies

Aalto Data Storage and retention principles

Services
Illustration of a person at a computer, connected to cloud storage and two servers on a blue background.

Restoring a file (Windows, Mac, Linux, OneDrive)

See instructions on how to restore previous versions of your files from back-up folders on the Home or Work disks, and OneDrive.

Services
People talking

File backup (Network drives)

File backup means the storage and restoration of information in case of any unexpected error or damage. Files are backed up with both quick backup copies and more stable backup copies that are stored on a separate medium.

Services
This service is provided by:

IT Services

For further support, please contact us.
  • Updated:
  • Published:
Share
URL copied!