Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

earth and related environmental sciences

EOPF zarr Performance Comparison - direct read

Compare the performance of the Sentinel EOPF zarr format to the SAFE format reading the files directly.

Authors
Affiliations
German Aerospace Center
Eurac Research
Brockmann Consult GmbH
ESA EOPF Zarr Logo

🚀 Launch in JupyterHub

Run this notebook interactively with all dependencies pre-installed

Introduction

This notebook provides a framework for performance tests and resource monitoring on the new EOPF zarr format by reading the files directly.

Setup

Start importing the necessary libraries

Define paths to files

Functions

This sets up the fsspec logger which counts the http requests that are made when accessing the data. Zarr typically has many small requests, whereas SAFE has few large requests.

This sets up the tracking of CPU and Mem.

This function takes an arbitrary reader function and adds the benchmarking around it.

Benchmarking

EOPF Zarr on EODC

Define the reader function for opening the zarr datatree.

Execute benchmarking.

Loading...

Assign the data to a variable to check whether the data has been accessed correctly.

Define the reader function to actually load a band of the scene.

Execute the benchmarking for loading a band. Note: After the first run cached results are used.

Loading...

Check that the data is loaded correctly.

Loading...

SAFE on EODC

Define the path to the band in the SAFE file.

Define the function to load a band from the SAFE format.

Execute the benchmarking on loading a SAFE band.

Loading...

Load the band and check the values.

Loading...

SAFE on CDSE S3

Note: Counting of http requests is not possible on S3. Another logger would have to be set up to count S3 requests.

Insert your CDSE S3 credentials. These ones are only valid for a certain amount of time. Here’s a guide how generate them.

Set up the S3 file system.

Define the path to the band within the SAFE file.

Measure timing of loading one band.

CPU times: user 13.7 s, sys: 142 ms, total: 13.8 s
Wall time: 4.89 s

Check the values.

Loading...