TEMPO Proxy NO2 in QGIS

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
ASDC - ghayescrepps
Subject Matter Expert
Subject Matter Expert
Posts: 10
Joined: Thu Aug 10, 2023 10:40 am America/New_York
Answers: 0
Has thanked: 1 time
Been thanked: 1 time

Re: TEMPO Proxy NO2 in QGIS

by ASDC - ghayescrepps » Tue Jun 18, 2024 1:51 pm America/New_York

This python snippet can be used to flatten a TEMPO file, if you would like to try it:

Code: Select all

import xarray as xr

input_name="Path/To/NetCDF/File"
output_name=input_name + ".flattened.nc4"

ds0 = xr.open_dataset(input_name)

# List of groups in the file (TEMPO L2 specific)
for gn in ['geolocation','product','qa_statistics','support_data']:
  try:
    ds = xr.open_dataset(input_name, group=gn)
    ds0.update(ds)
  except:
    continue

ds0.to_netcdf(output_name)
We will also share on the Forum if we find additional solutions to using the TEMPO data in QGIS.

Filters:

davidglenn
Posts: 5
Joined: Thu May 30, 2024 5:10 pm America/New_York
Answers: 0
Been thanked: 1 time

Re: TEMPO Proxy NO2 in QGIS

by davidglenn » Wed Jun 19, 2024 2:36 pm America/New_York

thank you so much. It worked. I had to upgrade 'pip' and install 'xarray', 'h5netcdf' and 'netcdf4'. So I'll proceed from here. Again thanks for looking into this problem.

Post Reply