# \#python

**URL:** https://forum.atmospherictoolbox.org/tag/python/12.md

[Latest](https://forum.atmospherictoolbox.org/latest.md) · [Categories](https://forum.atmospherictoolbox.org/categories.md) · [Tags](https://forum.atmospherictoolbox.org/tags.md)

---

## [Request for HARP ingestion update: GOSAT XCO₂/XCH₄ and OCO-3 V11 support](https://forum.atmospherictoolbox.org/t/request-for-harp-ingestion-update-gosat-xco-xch-and-oco-3-v11-support/927)

<div class="topic-metadata">

**Author:** [@ektf1147](https://forum.atmospherictoolbox.org/u/ektf1147)\
**Replies:** 1\
**Last updated:** [September 16, 2025, 7:45am UTC](https://forum.atmospherictoolbox.org/t/request-for-harp-ingestion-update-gosat-xco-xch-and-oco-3-v11-support/927 "2025-09-16T07:45:04Z")

</div>

Thank you for maintaining and improving the HARP library. I would like to ask about two ingestion issues: GOSAT L2 products (GOSAT\_FTS\_L2\_CO2\_TC, GOSAT\_FTS\_L2\_CH4\_TC) Currently, HARP only ingests total column CO₂/CH₄ …

---

## [Keeping S5P SO2 L2 measurement time for bin\_spatial](https://forum.atmospherictoolbox.org/t/keeping-s5p-so2-l2-measurement-time-for-bin-spatial/563)

<div class="topic-metadata">

**Author:** [@benjaminesse](https://forum.atmospherictoolbox.org/u/benjaminesse)\
**Replies:** 6\
**Last updated:** [April 16, 2025, 8:21am UTC](https://forum.atmospherictoolbox.org/t/keeping-s5p-so2-l2-measurement-time-for-bin-spatial/563 "2025-04-16T08:21:27Z")

</div>

I am trying to ingest and regrid S5P SO2 products using bin\_spatial. This works great, but I also need the measurement time for each grid point. I can’t figure out how to propagate this through to the final HARP product,…

---

## [Curious harpmerge issue with gridded data](https://forum.atmospherictoolbox.org/t/curious-harpmerge-issue-with-gridded-data/901)

<div class="topic-metadata">

**Author:** [@mariliza](https://forum.atmospherictoolbox.org/u/mariliza)\
**Replies:** 2\
**Last updated:** [April 4, 2025, 1:29pm UTC](https://forum.atmospherictoolbox.org/t/curious-harpmerge-issue-with-gridded-data/901 "2025-04-04T13:29:09Z")

</div>

Good morning Sander, I am running python 3.11.7 with harp 1.23 on the operational EUMETSAT IASI data on our HPC system, linux. For the EUMETSAT ACSAF project. I am creating daily gridded files \[how original.\] However,…

---

## [Extracting surface level data from TROPOMI Tropospheric column using HARP](https://forum.atmospherictoolbox.org/t/extracting-surface-level-data-from-tropomi-tropospheric-column-using-harp/900)

<div class="topic-metadata">

**Author:** [@Nad24](https://forum.atmospherictoolbox.org/u/Nad24)\
**Replies:** 4\
**Last updated:** [March 29, 2025, 6:00am UTC](https://forum.atmospherictoolbox.org/t/extracting-surface-level-data-from-tropomi-tropospheric-column-using-harp/900 "2025-03-29T06:00:08Z")

</div>

Hello everyone, I’m working with TROPOMI data (CH4) and I need to extract only the surface level data from the full tropospheric column information available in the Level 2 files. Is there a HARP operation or a combinat…

---

## [Deriving area while using bin\_spatial](https://forum.atmospherictoolbox.org/t/deriving-area-while-using-bin-spatial/898)

<div class="topic-metadata">

**Author:** [@jawi289o](https://forum.atmospherictoolbox.org/u/jawi289o)\
**Replies:** 7\
**Last updated:** [March 25, 2025, 10:52am UTC](https://forum.atmospherictoolbox.org/t/deriving-area-while-using-bin-spatial/898 "2025-03-25T10:52:43Z")

</div>

@sander.niemeijer I am using bin\_spatial to regrid the data to approximately 1 km by 1 km. However, the issue I am facing is that I am unable to derive the area. I want to obtain the final result as a GeoDataFrame with …

---

## [Extract and save a subset region from TROPOMI L1B data into a smaller NetCDF file](https://forum.atmospherictoolbox.org/t/extract-and-save-a-subset-region-from-tropomi-l1b-data-into-a-smaller-netcdf-file/897)

<div class="topic-metadata">

**Author:** [@angel](https://forum.atmospherictoolbox.org/u/angel)\
**Replies:** 1\
**Last updated:** [March 19, 2025, 1:19pm UTC](https://forum.atmospherictoolbox.org/t/extract-and-save-a-subset-region-from-tropomi-l1b-data-into-a-smaller-netcdf-file/897 "2025-03-19T13:19:15Z")

</div>

Hello, I am currently working with large TROPOMI Level-1B radiance files (.nc format), each around 3.5 GB. These files contain global data covering an entire orbit, but I only need data within a specific geographic regi…

---

## [Export data after pre-processing](https://forum.atmospherictoolbox.org/t/export-data-after-pre-processing/893)

<div class="topic-metadata">

**Author:** [@jawi289o](https://forum.atmospherictoolbox.org/u/jawi289o)\
**Replies:** 4\
**Last updated:** [March 19, 2025, 9:07am UTC](https://forum.atmospherictoolbox.org/t/export-data-after-pre-processing/893 "2025-03-19T09:07:28Z")

</div>

I have downloaded bulk data of Sentinel-5P pollutants and now I am performing the pre-processing operations using HARP. My requirement is to save each files in tiff format for my area of interest (already have shp file).…

---

## [Issue with CODA with Python](https://forum.atmospherictoolbox.org/t/issue-with-coda-with-python/403)

<div class="topic-metadata">

**Author:** [@blmadhavan](https://forum.atmospherictoolbox.org/u/blmadhavan)\
**Replies:** 3\
**Last updated:** [December 5, 2024, 9:49am UTC](https://forum.atmospherictoolbox.org/t/issue-with-coda-with-python/403 "2024-12-05T09:49:14Z")

</div>

I found a Python code for accessing the data from .DBL file in the following link: https://github.com/stcorp/coda-examples/blob/master/python/aeolus/aeolus\_l2b.py I have even downloaded the CODA definition from https:/…

---

## [Exporting averaging kernel layers](https://forum.atmospherictoolbox.org/t/exporting-averaging-kernel-layers/867)

<div class="topic-metadata">

**Author:** [@dammoc](https://forum.atmospherictoolbox.org/u/dammoc)\
**Replies:** 2\
**Last updated:** [December 4, 2024, 4:50pm UTC](https://forum.atmospherictoolbox.org/t/exporting-averaging-kernel-layers/867 "2024-12-04T16:50:37Z")

</div>

Hi! :slight\_smile: I want to export each of the layers from averaging kernel variable (TROPOMI NO2), but when I use harp.export\_product function, the “tropospheric\_NO2\_column\_number\_density\_avk” is suddenly missing in t…

---

## [Uncertainty in Sentinel-5p CO column volume mixing ratio](https://forum.atmospherictoolbox.org/t/uncertainty-in-sentinel-5p-co-column-volume-mixing-ratio/848)

<div class="topic-metadata">

**Author:** [@silent\_ste](https://forum.atmospherictoolbox.org/u/silent_ste)\
**Replies:** 2\
**Last updated:** [December 2, 2024, 2:44pm UTC](https://forum.atmospherictoolbox.org/t/uncertainty-in-sentinel-5p-co-column-volume-mixing-ratio/848 "2024-12-02T14:44:22Z")

</div>

Hi, I have a question about deriving the column volume mixing ratio uncertainty. I have derived the column volume mixing ratio using “derive(CO\_column\_volume\_mixing\_ratio {time} \[ppbv\])” and tried “derive(CO\_column\_volu…

---

## [EarthCARE demo product import failure with HARP 1.23, works with 1.21](https://forum.atmospherictoolbox.org/t/earthcare-demo-product-import-failure-with-harp-1-23-works-with-1-21/823)

<div class="topic-metadata">

**Author:** [@acorreia](https://forum.atmospherictoolbox.org/u/acorreia)\
**Replies:** 2\
**Last updated:** [September 20, 2024, 12:47pm UTC](https://forum.atmospherictoolbox.org/t/earthcare-demo-product-import-failure-with-harp-1-23-works-with-1-21/823 "2024-09-20T12:47:30Z")

</div>

I’m using HARP 1.23 to import some EarthCARE demo products, downloaded directly from Zenodo at: https://zenodo.org/records/7728948 The MSI\_AOT\_2A product file was imported without any issue. However, trying to import th…

---

## [Map Sentinel 5p CH4, SO2 and CO Data (Visan)](https://forum.atmospherictoolbox.org/t/map-sentinel-5p-ch4-so2-and-co-data-visan/45)

<div class="topic-metadata">

**Author:** [@jpoetzscher](https://forum.atmospherictoolbox.org/u/jpoetzscher)\
**Replies:** 34\
**Last updated:** [August 31, 2024, 6:12am UTC](https://forum.atmospherictoolbox.org/t/map-sentinel-5p-ch4-so2-and-co-data-visan/45 "2024-08-31T06:12:17Z")

</div>

Hi, with Sander’s help I was able to map the global average concentration of NO2 for the month of october. I downloaded 15 files from the Sentinel 5p, for each day, and then I processed them into a daily average file usi…

---

## [Wplot problem with user-define arrays](https://forum.atmospherictoolbox.org/t/wplot-problem-with-user-define-arrays/814)

<div class="topic-metadata">

**Author:** [@NigelG](https://forum.atmospherictoolbox.org/u/NigelG)\
**Replies:** 2\
**Last updated:** [August 5, 2024, 1:19pm UTC](https://forum.atmospherictoolbox.org/t/wplot-problem-with-user-define-arrays/814 "2024-08-05T13:19:25Z")

</div>

I am using three 1-dimensional user-defined numpy arrays (lon, lat, data) with wplot and a 3-D globe projection without a problem. If I attempt to use a 2-D projection such as Plate Caree and the same arrays, I have an o…

---

## [Exporting a variable from a S5P dataset as georeferenced tif (or netcdf) file](https://forum.atmospherictoolbox.org/t/exporting-a-variable-from-a-s5p-dataset-as-georeferenced-tif-or-netcdf-file/813)

<div class="topic-metadata">

**Author:** [@ilungagustave](https://forum.atmospherictoolbox.org/u/ilungagustave)\
**Replies:** 5\
**Last updated:** [August 5, 2024, 7:54am UTC](https://forum.atmospherictoolbox.org/t/exporting-a-variable-from-a-s5p-dataset-as-georeferenced-tif-or-netcdf-file/813 "2024-08-05T07:54:04Z")

</div>

Hi. I am discovering the harp library for python. I have the following questions. I have a sentinel 5P O3 dataset. I managed to import it using the harp.import\_product(file\_in) function. What I am seeking to achieve is…

---

## [How to read .mwx data file](https://forum.atmospherictoolbox.org/t/how-to-read-mwx-data-file/654)

<div class="topic-metadata">

**Author:** [@mmvid007](https://forum.atmospherictoolbox.org/u/mmvid007)\
**Replies:** 3\
**Last updated:** [July 25, 2024, 9:10am UTC](https://forum.atmospherictoolbox.org/t/how-to-read-mwx-data-file/654 "2024-07-25T09:10:09Z")

</div>

This is a radiosonde data file in the format of .mwx please suggest ho to read using python

---

## [Eofetch to download files from CDSE](https://forum.atmospherictoolbox.org/t/eofetch-to-download-files-from-cdse/800)

<div class="topic-metadata">

**Author:** [@Haleema](https://forum.atmospherictoolbox.org/u/Haleema)\
**Replies:** 3\
**Last updated:** [July 8, 2024, 11:52am UTC](https://forum.atmospherictoolbox.org/t/eofetch-to-download-files-from-cdse/800 "2024-07-08T11:52:15Z")

</div>

Hi I am facing an issue with eofetch to download TROPOMI files from directly from CDSE. I have the CDSE S3 credential (access and secret codes), yet it is not working, it require the file to be in the local directory! s…

---

## [Scanline from scan\_subindex of S5P products](https://forum.atmospherictoolbox.org/t/scanline-from-scan-subindex-of-s5p-products/635)

<div class="topic-metadata">

**Author:** [@mariliza](https://forum.atmospherictoolbox.org/u/mariliza)\
**Replies:** 9\
**Last updated:** [April 19, 2024, 1:19pm UTC](https://forum.atmospherictoolbox.org/t/scanline-from-scan-subindex-of-s5p-products/635 "2024-04-19T13:19:28Z")

</div>

Dear Sander, I am sure that the reply to my question will be something very obvious, which right now eludes me. For reasons I do not wish to bother you with, I would like to output the scanline from the operational S5P…

---

## [Find maximum NO2 consentration in monthly analysis](https://forum.atmospherictoolbox.org/t/find-maximum-no2-consentration-in-monthly-analysis/769)

<div class="topic-metadata">

**Author:** [@IreB](https://forum.atmospherictoolbox.org/u/IreB)\
**Replies:** 3\
**Last updated:** [March 14, 2024, 12:11pm UTC](https://forum.atmospherictoolbox.org/t/find-maximum-no2-consentration-in-monthly-analysis/769 "2024-03-14T12:11:17Z")

</div>

Hello! I’m doing a monthly mean analysis about NO2 with python and HARP. I’m wondering how i can compute, e.g for 31 products for January 2024, the product that has the maximum average consentration and plot it. Any idea…

---

## [Problems opening EarthCARE A\_EBD rehearsal data](https://forum.atmospherictoolbox.org/t/problems-opening-earthcare-a-ebd-rehearsal-data/771)

<div class="topic-metadata">

**Author:** [@Crow901](https://forum.atmospherictoolbox.org/u/Crow901)\
**Replies:** 2\
**Last updated:** [March 14, 2024, 12:03pm UTC](https://forum.atmospherictoolbox.org/t/problems-opening-earthcare-a-ebd-rehearsal-data/771 "2024-03-14T12:03:03Z")

</div>

Hello! During the EarthCARE rehearsal (12-23 February), I attempted to read A-EBD data using HARP. However, I encountered an error related to reading the fields of the file. It is important to note that I did not alter …

---

## [Importing TM5-MP-DOMINO NO2 product: CLibraryError: record does not contain a field named 'satellite\_altitude'](https://forum.atmospherictoolbox.org/t/importing-tm5-mp-domino-no2-product-clibraryerror-record-does-not-contain-a-field-named-satellite-altitude/657)

<div class="topic-metadata">

**Author:** [@anhp95](https://forum.atmospherictoolbox.org/u/anhp95)\
**Replies:** 6\
**Last updated:** [March 1, 2024, 2:53pm UTC](https://forum.atmospherictoolbox.org/t/importing-tm5-mp-domino-no2-product-clibraryerror-record-does-not-contain-a-field-named-satellite-altitude/657 "2024-03-01T14:53:45Z")

</div>

Hi, I am trying to convert TEMIS TM5-MP-DOMINO NO2 product (from https://www.temis.nl/) from L2 to L3 using harp. I had this error when trying to import TM5-MP-DOMINO NO2 by harp.import\_product() CLibraryError: recor…

---

## [How to get the time](https://forum.atmospherictoolbox.org/t/how-to-get-the-time/734)

<div class="topic-metadata">

**Author:** [@chen](https://forum.atmospherictoolbox.org/u/chen)\
**Replies:** 7\
**Last updated:** [January 16, 2024, 6:49am UTC](https://forum.atmospherictoolbox.org/t/how-to-get-the-time/734 "2024-01-16T06:49:47Z")

</div>

My dear I utilize coda to read the data of L2B, there is no specific time, what should I do?

---

## [Clibrary Error in HARP during merge of S5P files](https://forum.atmospherictoolbox.org/t/clibrary-error-in-harp-during-merge-of-s5p-files/719)

<div class="topic-metadata">

**Author:** [@pm21ms212](https://forum.atmospherictoolbox.org/u/pm21ms212)\
**Replies:** 0\
**Last updated:** [December 7, 2023, 7:23am UTC](https://forum.atmospherictoolbox.org/t/clibrary-error-in-harp-during-merge-of-s5p-files/719 "2023-12-07T07:23:00Z")

</div>

import harp import numpy as np import matplotlib.pyplot as plt import cartopy.crs as ccrs from cmcrameri import cm import eofetch import os import matplotlib.ticker as mticker from cartopy.mpl.gridliner import LO…

---

## [Filtering and exporting CHOCHO](https://forum.atmospherictoolbox.org/t/filtering-and-exporting-chocho/718)

<div class="topic-metadata">

**Author:** [@kolanov](https://forum.atmospherictoolbox.org/u/kolanov)\
**Replies:** 1\
**Last updated:** [December 5, 2023, 10:53pm UTC](https://forum.atmospherictoolbox.org/t/filtering-and-exporting-chocho/718 "2023-12-05T22:53:08Z")

</div>

Hello, I’m trying to filter a glyoxal observation with qa\_value \> 0.5, but I’m getting “harp.\_harppy.CLibraryError: could not derive variable ‘longitude {longitude}’” operations = ';'.join(\[ 'C2H2O2\_column\_numb…

---

## [Truncated file error with HARP for 2022 RPRO L2\_\_NO2 Files for 2018-2019](https://forum.atmospherictoolbox.org/t/truncated-file-error-with-harp-for-2022-rpro-l2-no2-files-for-2018-2019/704)

<div class="topic-metadata">

**Author:** [@Amanda.murray19](https://forum.atmospherictoolbox.org/u/Amanda.murray19)\
**Replies:** 3\
**Last updated:** [October 30, 2023, 3:02pm UTC](https://forum.atmospherictoolbox.org/t/truncated-file-error-with-harp-for-2022-rpro-l2-no2-files-for-2018-2019/704 "2023-10-30T15:02:46Z")

</div>

I keep getting a truncated file error when trying to process certain files from 2018 to 2019 using this code. The “week relative paths” is the paths to the s3 bucket for all the files in a given week. The code works if I…

---

## [Error opening SCIAMACHY files in python](https://forum.atmospherictoolbox.org/t/error-opening-sciamachy-files-in-python/558)

<div class="topic-metadata">

**Author:** [@Dhyey](https://forum.atmospherictoolbox.org/u/Dhyey)\
**Replies:** 9\
**Last updated:** [October 28, 2023, 12:35pm UTC](https://forum.atmospherictoolbox.org/t/error-opening-sciamachy-files-in-python/558 "2023-10-28T12:35:29Z")

</div>

Hi, I am trying to open SCIAMACHY Level 1b v8.0 data product having .N1 file format. I have installed coda using $ conda install -c conda-forge coda. There was no definitions directory in /$prefix/share/coda/definition…

---

## [S5P PAL AOT 2D validity flag](https://forum.atmospherictoolbox.org/t/s5p-pal-aot-2d-validity-flag/701)

<div class="topic-metadata">

**Author:** [@mariliza](https://forum.atmospherictoolbox.org/u/mariliza)\
**Replies:** 2\
**Last updated:** [October 13, 2023, 1:56pm UTC](https://forum.atmospherictoolbox.org/t/s5p-pal-aot-2d-validity-flag/701 "2023-10-13T13:56:12Z")

</div>

Dear Sander, As you know we are working with the S5P\_PAL\_\_L2\_\_AER\_OT data files. As the AOT is reported on five wavelengths, the validity parameter also has a second dimension, spectral, of 5. Are you planning to intro…

---

## [Aeolus L2B .DBL file unable to read](https://forum.atmospherictoolbox.org/t/aeolus-l2b-dbl-file-unable-to-read/639)

<div class="topic-metadata">

**Author:** [@mmvid007](https://forum.atmospherictoolbox.org/u/mmvid007)\
**Replies:** 25\
**Last updated:** [October 9, 2023, 12:09pm UTC](https://forum.atmospherictoolbox.org/t/aeolus-l2b-dbl-file-unable-to-read/639 "2023-10-09T12:09:13Z")

</div>

after importing the CODA, while trying to extract Data I am getting the error .screenshots attached.its showing attribute error. please suggestion

---

## [Problem with harp 1.20 and the S5P\_PAL\_\_L2\_\_AER\_OT via spyder/python ingestion](https://forum.atmospherictoolbox.org/t/problem-with-harp-1-20-and-the-s5p-pal-l2-aer-ot-via-spyder-python-ingestion/699)

<div class="topic-metadata">

**Author:** [@mariliza](https://forum.atmospherictoolbox.org/u/mariliza)\
**Replies:** 8\
**Last updated:** [October 6, 2023, 10:44am UTC](https://forum.atmospherictoolbox.org/t/problem-with-harp-1-20-and-the-s5p-pal-l2-aer-ot-via-spyder-python-ingestion/699 "2023-10-06T10:44:11Z")

</div>

Dear Sander, We are trying to ingest the S5P\_PAL\_\_L2\_\_AER\_OT product using harp 1.20, running via Python 3.11.6 | packaged by conda-forge | (main, Oct 3 2023, 10:40:35) \[GCC 12.3.0\] IPython 8.16.1 – An enhanced Intera…

---

## [Is pip install available for HARP?](https://forum.atmospherictoolbox.org/t/is-pip-install-available-for-harp/676)

<div class="topic-metadata">

**Author:** [@mosaichaoyan](https://forum.atmospherictoolbox.org/u/mosaichaoyan)\
**Replies:** 1\
**Last updated:** [August 22, 2023, 2:34pm UTC](https://forum.atmospherictoolbox.org/t/is-pip-install-available-for-harp/676 "2023-08-22T14:34:18Z")

</div>

Hi, I have been using HARP to preprocess S5P data on my computer. Recently, I wanted to migrate the processing pipeline to DataBricks. But installing HARP on DataBricks is challenging for me. Is there a place where whl …

---

## [How to use Ingestion options to process v01 version S5P O3 data](https://forum.atmospherictoolbox.org/t/how-to-use-ingestion-options-to-process-v01-version-s5p-o3-data/674)

<div class="topic-metadata">

**Author:** [@canace](https://forum.atmospherictoolbox.org/u/canace)\
**Replies:** 4\
**Last updated:** [August 16, 2023, 3:33pm UTC](https://forum.atmospherictoolbox.org/t/how-to-use-ingestion-options-to-process-v01-version-s5p-o3-data/674 "2023-08-16T15:33:35Z")

</div>

I used the following code to calculate the monthly mean of ozone for March 2022 in my previous research: input\_files=r"D:\\Downloads\\S5P\\1903\_O3\_S5P\\xx\\S5P\*.nc" export\_path=r"D:\\Downloads\\S5P\\monthly mean\\1903\_O3\_GZ1.nc…

[Next page](https://forum.atmospherictoolbox.org/tag/python/12.md?match_all_tags=true&page=1&tags%5B%5D=python)
