GOME2_NO2_2024_banner.png

Title

This notebook is an AC SAF notebook prepared by BIRA-IASB (Gaia Pinardi), on illustrating the use of:

A sample zip file is provided with this notebook and instructions on how to register and download more data from the AC SAF archive are also provided below.

AC SAF recomend the usage of HARP for reading, filtering, and gridding, as shown below. Other classical options (i.e., xarray) are shown in a companion notebook (also available here: https://acsaf.org/notebooks.php).

Table of Contents

This notebook contains several sections:

Data description

Documentation

The GOME-2/MetOp total column products are generated at DLR in the framework of EUMETSAT’s AC SAF.

For information and access to all AC SAF products, please refer to the AC SAF web page and help desk: AC SAF Web page: http://acsaf.org AC SAF Helpdesk: helpdesk@acsaf.org

Additional information can be found in EUMETSAT's product Navigator accessible through the following link: http://navigator.eumetsat.int

Current and historical quick look images as well as value added products generated by DLR are available at: http://atmos.eoc.dlr.de/gome2

The ATBD (Algorithm Theoretical Basis Documents) and PUM (PRODUCT USER MANUAL) are available here: https://acsaf.org/docs/atbd/Algorithm_Theoretical_Basis_Document_NTO_OTO_Nov_2019.pdf and https://acsaf.org/docs/pum/Product_User_Manual_NTO_OTO_Nov_2019.pdf

Data download is described here: https://acsaf.org/offline_access.php and rely on accessing an ftp server.

Downloading test data

For this example, the data are included in the zip folder available with this notebook: GOME2A_201812.zip

save then the zip folder into the data folder, at the same level than this notebook

Data files

The GOME-2 GDP 4.8/4.9 L2 reprocessed datafiles are structures as one file per orbit, ie 15 files per day:

image.png

HDF5 Product Format Description

The product content comprises the following groups:

image.png

Several gases are provided into the same orbital file, as mentionned in the file name:

i.e., GOME_O3-NO2-NO2Tropo-BrO-SO2-H2O-HCHO_L2_20181201134102_051_METOPA_62878_DLR_06.HDF5 will include O3, NO2, NO2Tropo, BrO, SO2, H2O and HCHO data.

In the TOTAL_COLUMNS, the final VCD values are given for all the gases, in a order specified in the file name and in the variable /META_DATA/MainSpecies:

image.png

Imports

Standard library / numerics / IO imports for what follows: h5py/netCDF4/xarray to read the HDF5 file with three different approaches, numpy for arrays, cf_units for unit handling, datetime/warnings as usual helpers (glob for multi-file patterns, matplotlib/cartopy for the maps built later).

How to setup HARP

**What is HARP?** HARP (https://atmospherictoolbox.org/harp/) is **one of the best tools to read GOME-2 ACSAF Level-2 HDF5 products**, because it already contains built-in ingestion definitions for many satellite products (including GOME-2, OMI, TROPOMI). **HARP converts the native product structure into a standardized format so that different instruments have the same variable names and dimensions.**

HARP is a toolkit for reading, processing and inter-comparing satellite remote sensing data, model data, in-situ data, and ground based remote sensing data, and it contains interface descriptions to AC SAF data files. The toolkit is composed of a set of command line tools, a C library of analysis functions, and direct interfaces to Python, R, IDL, and MATLAB.

Install HARP (Python interface)

Typical install in a conda environment and check that it works:

conda install -c conda-forge harp

Imports the (just-installed) package

Command-line sanity check (harpcheck, HARP's CLI tool): run it on any HDF5 product to confirm the ingestion definition recognizes the file — replace file.HDF5 with an actual GOME-2 file path.

Reading the data

Here we points at a sample day of GOME-2 data on the downloaded and unzipped folder, builds the exact file name for that day/orbit and then lists the matching files on disk as a quick existence check before opening anything.

There are several possibilities in python to read an HDF5 file. We show here a few classical ones (with h5py and netCDF4) that preserve the original file structure and then illustate the use of HARP.

First option: inspecting the data with h5py

Lists the sub-groups (variable names) inside DETAILED_RESULTS and GEOLOCATION, the two groups used throughout the rest of this notebook, as a quick way to see what's available without opening a separate HDF5 viewer.

Second option: inspecting the data with netCDF4

Reused from an EUMETSAT example notebook (credited in the comment): pretty-prints every group's variable names, 3 per line, so the whole file structure can be scanned at a glance via the netCDF4 interface.

Suggested option: reading the data with HARP

harp.import_product() reads the satellite file and converts it to the HARP data model, returning variables as numpy arrays. Notice that all pixels are flattened into a single time dimension — this is normal HARP behavior.

check the HARP version:

You can find here https://stcorp.github.io/harp/doc/html/ingestions/index.html all the ingestions definitions. More particularly, for the GOME-2 AC SAF trace gases product: https://stcorp.github.io/harp/doc/html/ingestions/GOME2_L2_O3MOTO.html

you will find the common HARP conventions, and the mapping from the original product:

image.png