# Problem with harp 1.20 and the S5P\_PAL\_\_L2\_\_AER\_OT via spyder/python ingestion

**URL:** https://forum.atmospherictoolbox.org/t/problem-with-harp-1-20-and-the-s5p-pal-l2-aer-ot-via-spyder-python-ingestion/699
**Category:** HARP
**Tags:** sentinel-5p, python
**Created:** [October 6, 2023, 8:09am 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-06T08:09:31Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![mariliza](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/m/c77e96/32.png) [@mariliza](https://forum.atmospherictoolbox.org/u/mariliza)
#### Post date: [October 6, 2023, 8:09am UTC](https://forum.atmospherictoolbox.org/t/problem-with-harp-1-20-and-the-s5p-pal-l2-aer-ot-via-spyder-python-ingestion/699/1 "2023-10-06T08:09:31Z")

</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 Interactive Python.

Using the command:

* * *

operations = “;”.join([  
“aerosol\_optical\_depth\>50”, “keep(latitude\_bounds,longitude\_bounds,datetime\_start,datetime\_length,aerosol\_optical\_depth)”,  
“bin\_spatial(161,34,0.05,301,15,0.05)”,  
“derive(longitude {longitude});derive(latitude {latitude})”])  
reduce\_operations = “squash(time, (latitude, longitude, latitude\_bounds, longitude\_bounds));bin()”  
mean\_no2=harp.import\_product(files, operations, reduce\_operations=reduce\_operations)  
harp.export\_product(mean\_no2, output\_dir+‘s5p-NO2\_L3\_averaged\_20Aug8Sep2023.nc’)

* * *

We saw in the other post the trouble for harp 1.19, which is solved by excluding the qa filter. Even though we are using the newest harp, we also tried that and are still getting the error:

* * *

create\_daily\_period\_files\_AoT.py’, wdir=‘/mnt/lapsat/groups/lapsat/s5p\_no2\_from\_fires/s5p\_aot/Programs’)  
Traceback (most recent call last):

File ~/.conda/envs/newHarp/lib/python3.11/site-packages/spyder\_kernels/py3compat.py:356 in compat\_exec  
exec(code, globals, locals)

File /mnt/lapsat/groups/lapsat/s5p\_no2\_from\_fires/s5p\_aot/Programs/create\_daily\_period\_files\_AoT.py:84  
mean\_no2=harp.import\_product(files, operations, reduce\_operations=reduce\_operations)

File ~/.conda/envs/newHarp/lib/python3.11/site-packages/harp/\_harppy.py:1257 in import\_product  
raise CLibraryError()

## CLibraryError: /mnt/lapsat/groups/lapsat/s5p\_no2\_from\_fires/s5p\_aot/S5P\_PAL\_\_L2\_\_AER\_OT\_20230821T093131\_20230821T111300\_30333\_03\_010100\_20230831T000636.nc: unsupported product

Any ideas?  
Thanks  
MariLiza

---

<div class="post-metadata">

### Author: ![sander.niemeijer](https://forum.atmospherictoolbox.org/user_avatar/forum.atmospherictoolbox.org/sander.niemeijer/32/5_2.png) [@sander.niemeijer](https://forum.atmospherictoolbox.org/u/sander.niemeijer)
#### Post date: [October 6, 2023, 8:28am UTC](https://forum.atmospherictoolbox.org/t/problem-with-harp-1-20-and-the-s5p-pal-l2-aer-ot-via-spyder-python-ingestion/699/2 "2023-10-06T08:28:46Z")

</div>

Could you check whether you have a manually set `CODA_DEFINITION` environment variable (pointing to a different location from where HARP puts its codadef files)?  
The error you are getting indicates that the right codadef is not found.

---

<div class="post-metadata">

### Author: ![mariliza](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/m/c77e96/32.png) [@mariliza](https://forum.atmospherictoolbox.org/u/mariliza)
#### Post date: [October 6, 2023, 8:53am UTC](https://forum.atmospherictoolbox.org/t/problem-with-harp-1-20-and-the-s5p-pal-l2-aer-ot-via-spyder-python-ingestion/699/3 "2023-10-06T08:53:47Z")

</div>

I do have a CODA\_DEFINITION in my .bashrc file, which however is for the centrally installed harp 1.17, to use outside the conda envs, from the command line. It should not apply to the conda env I am using to try the code out.

* * *

## export IDL\_STARTUP=~/idl/idlstartup.pro export CODA\_DEFINITION=/mnt/apps/prebuilt/harp/1.17/share/coda/definitions export UDUNITS2\_XML\_PATH=/mnt/apps/prebuilt/harp/1.17/share/harp/udunits2.xml

Furthermore, my colleague Andreas is facing the exact same problem and he does not have any CODA\_DEFINITION whatsoever in his .bashrc file.

Any other ideas? the env I am using has installed only harp and spyder, both via conda-forge. Sending the list below just in case you spot something.

Recall that some time ago [back in January] we had trouble with the numpy version and the harp version? maybe something similar is happening here?

Many thanks  
MariLiza

* * *

# packages in environment at /mnt/scratch\_b/users/m/mariliza/.conda/envs/myCondaEnvName:

# 

# Name Version Build Channel

\_libgcc\_mutex 0.1 conda\_forge conda-forge  
\_openmp\_mutex 4.5 2\_gnu conda-forge  
\_r-mutex 1.0.1 anacondar\_1 conda-forge  
alabaster 0.7.13 pyhd8ed1ab\_0 conda-forge  
alsa-lib 1.2.8 h166bdaf\_0 conda-forge  
arrow 1.2.3 pyhd8ed1ab\_0 conda-forge  
astroid 2.13.2 py39hf3d152e\_0 conda-forge  
asttokens 2.2.1 pyhd8ed1ab\_0 conda-forge  
atomicwrites 1.4.1 pyhd8ed1ab\_0 conda-forge  
attr 2.5.1 h166bdaf\_1 conda-forge  
attrs 22.2.0 pyh71513ae\_0 conda-forge  
autopep8 1.6.0 pyhd8ed1ab\_1 conda-forge  
babel 2.11.0 pyhd8ed1ab\_0 conda-forge  
backcall 0.2.0 pyh9f0ad1d\_0 conda-forge  
backports 1.0 pyhd8ed1ab\_3 conda-forge  
backports.functools\_lru\_cache 1.6.4 pyhd8ed1ab\_0 conda-forge  
beautifulsoup4 4.11.1 pyha770c72\_0 conda-forge  
binaryornot 0.4.4 py\_1 conda-forge  
binutils\_impl\_linux-64 2.39 he00db2b\_1 conda-forge  
black 22.12.0 py39hf3d152e\_0 conda-forge  
bleach 6.0.0 pyhd8ed1ab\_0 conda-forge  
brotlipy 0.7.0 py39hb9d737c\_1005 conda-forge  
bwidget 1.9.14 ha770c72\_1 conda-forge  
bzip2 1.0.8 h7f98852\_4 conda-forge  
c-ares 1.18.1 h7f98852\_0 conda-forge  
ca-certificates 2022.12.7 ha878542\_0 conda-forge  
cairo 1.16.0 ha61ee94\_1014 conda-forge  
certifi 2022.12.7 pyhd8ed1ab\_0 conda-forge  
cffi 1.15.1 py39he91dace\_3 conda-forge  
cftime 1.5.1.1 py39hce1f21e\_0  
chardet 5.1.0 py39hf3d152e\_0 conda-forge  
charset-normalizer 2.1.1 pyhd8ed1ab\_0 conda-forge  
click 8.1.3 unix\_pyhd8ed1ab\_2 conda-forge  
cloudpickle 2.2.1 pyhd8ed1ab\_0 conda-forge  
coda 2.24.1 py39h92210e6\_0 conda-forge  
colorama 0.4.6 pyhd8ed1ab\_0 conda-forge  
comm 0.1.2 pyhd8ed1ab\_0 conda-forge  
cookiecutter 2.1.1 pyh6c4a22f\_0 conda-forge  
cryptography 39.0.0 py39h079d5ae\_0 conda-forge  
curl 7.87.0 hdc1c0ab\_0 conda-forge  
dbus 1.13.6 h5008d03\_3 conda-forge  
debugpy 1.6.6 py39h227be39\_0 conda-forge  
decorator 5.1.1 pyhd8ed1ab\_0 conda-forge  
defusedxml 0.7.1 pyhd8ed1ab\_0 conda-forge  
diff-match-patch 20200713 pyh9f0ad1d\_0 conda-forge  
dill 0.3.6 pyhd8ed1ab\_1 conda-forge  
docstring-to-markdown 0.11 pyhd8ed1ab\_0 conda-forge  
docutils 0.19 py39hf3d152e\_1 conda-forge  
entrypoints 0.4 pyhd8ed1ab\_0 conda-forge  
executing 1.2.0 pyhd8ed1ab\_0 conda-forge  
expat 2.5.0 h27087fc\_0 conda-forge  
fftw 3.3.10 nompi\_hf0379b8\_106 conda-forge  
flake8 6.0.0 pyhd8ed1ab\_0 conda-forge  
font-ttf-dejavu-sans-mono 2.37 hab24e00\_0 conda-forge  
font-ttf-inconsolata 3.000 h77eed37\_0 conda-forge  
font-ttf-source-code-pro 2.038 h77eed37\_0 conda-forge  
font-ttf-ubuntu 0.83 hab24e00\_0 conda-forge  
fontconfig 2.14.1 hc2a2eb6\_0 conda-forge  
fonts-conda-ecosystem 1 0 conda-forge  
fonts-conda-forge 1 0 conda-forge  
freetype 2.12.1 hca18f0e\_1 conda-forge  
fribidi 1.0.10 h36c2ea0\_0 conda-forge  
gcc\_impl\_linux-64 12.2.0 hcc96c02\_19 conda-forge  
gettext 0.21.1 h27087fc\_0 conda-forge  
gfortran\_impl\_linux-64 12.2.0 h55be85b\_19 conda-forge  
giflib 5.2.1 h36c2ea0\_2 conda-forge  
glib 2.74.1 h6239696\_1 conda-forge  
glib-tools 2.74.1 h6239696\_1 conda-forge  
graphite2 1.3.13 h58526e2\_1001 conda-forge  
gsl 2.7 he838d99\_0 conda-forge  
gst-plugins-base 1.21.3 h4243ec0\_1 conda-forge  
gstreamer 1.21.3 h25f0c4b\_1 conda-forge  
gstreamer-orc 0.4.33 h166bdaf\_0 conda-forge  
gxx\_impl\_linux-64 12.2.0 hcc96c02\_19 conda-forge  
harfbuzz 6.0.0 h8e241bc\_0 conda-forge  
harp 1.17 py39r42h92210e6\_0 conda-forge  
haversine 2.8.0 pyhd8ed1ab\_0 conda-forge  
hdf4 4.2.15 h9772cbc\_5 conda-forge  
hdf5 1.12.2 nompi\_h4df4325\_101 conda-forge  
icu 70.1 h27087fc\_0 conda-forge  
idna 3.4 pyhd8ed1ab\_0 conda-forge  
imagesize 1.4.1 pyhd8ed1ab\_0 conda-forge  
importlib-metadata 6.0.0 pyha770c72\_0 conda-forge  
importlib\_metadata 6.0.0 hd8ed1ab\_0 conda-forge  
importlib\_resources 5.10.2 pyhd8ed1ab\_0 conda-forge  
inflection 0.5.1 pyh9f0ad1d\_0 conda-forge  
intervaltree 3.0.2 py\_0 conda-forge  
ipykernel 6.20.2 pyh210e3f2\_0 conda-forge  
ipython 8.8.0 pyh41d4057\_0 conda-forge  
ipython\_genutils 0.2.0 py\_1 conda-forge  
isort 5.11.4 pyhd8ed1ab\_1 conda-forge  
jack 1.9.21 h583fa2b\_2 conda-forge  
jaraco.classes 3.2.3 pyhd8ed1ab\_0 conda-forge  
jedi 0.18.2 pyhd8ed1ab\_0 conda-forge  
jeepney 0.8.0 pyhd8ed1ab\_0 conda-forge  
jellyfish 0.9.0 py39hb9d737c\_2 conda-forge  
jinja2 3.1.2 pyhd8ed1ab\_1 conda-forge  
jinja2-time 0.2.0 pyhd8ed1ab\_3 conda-forge  
jpeg 9e h166bdaf\_2 conda-forge  
jsonschema 4.17.3 pyhd8ed1ab\_0 conda-forge  
jupyter\_client 7.4.9 pyhd8ed1ab\_0 conda-forge  
jupyter\_core 5.1.5 py39hf3d152e\_0 conda-forge  
jupyterlab\_pygments 0.2.2 pyhd8ed1ab\_0 conda-forge  
kernel-headers\_linux-64 2.6.32 he073ed8\_15 conda-forge  
keyring 23.13.1 py39hf3d152e\_0 conda-forge  
keyutils 1.6.1 h166bdaf\_0 conda-forge  
krb5 1.20.1 h81ceb04\_0 conda-forge  
lame 3.100 h166bdaf\_1003 conda-forge  
lazy-object-proxy 1.9.0 py39h72bdee0\_0 conda-forge  
ld\_impl\_linux-64 2.39 hcc3a1bd\_1 conda-forge  
lerc 4.0.0 h27087fc\_0 conda-forge  
libaec 1.0.6 hcb278e6\_1 conda-forge  
libblas 3.9.0 16\_linux64\_openblas conda-forge  
libcap 2.66 ha37c62d\_0 conda-forge  
libcblas 3.9.0 16\_linux64\_openblas conda-forge  
libclang 15.0.7 default\_had23c3d\_0 conda-forge  
libclang13 15.0.7 default\_h3e3d535\_0 conda-forge  
libcups 2.3.3 h36d4200\_3 conda-forge  
libcurl 7.87.0 hdc1c0ab\_0 conda-forge  
libdb 6.2.32 h9c3ff4c\_0 conda-forge  
libdeflate 1.17 h0b41bf4\_0 conda-forge  
libedit 3.1.20191231 he28a2e2\_2 conda-forge  
libev 4.33 h516909a\_1 conda-forge  
libevent 2.1.10 h28343ad\_4 conda-forge  
libffi 3.4.2 h7f98852\_5 conda-forge  
libflac 1.4.2 h27087fc\_0 conda-forge  
libgcc-devel\_linux-64 12.2.0 h3b97bd3\_19 conda-forge  
libgcc-ng 12.2.0 h65d4601\_19 conda-forge  
libgcrypt 1.10.1 h166bdaf\_0 conda-forge  
libgfortran-ng 12.2.0 h69a702a\_19 conda-forge  
libgfortran5 12.2.0 h337968e\_19 conda-forge  
libglib 2.74.1 h606061b\_1 conda-forge  
libgomp 12.2.0 h65d4601\_19 conda-forge  
libgpg-error 1.46 h620e276\_0 conda-forge  
libiconv 1.17 h166bdaf\_0 conda-forge  
liblapack 3.9.0 16\_linux64\_openblas conda-forge  
libllvm15 15.0.7 hadd5161\_0 conda-forge  
libnetcdf 4.8.1 nompi\_h261ec11\_106 conda-forge  
libnghttp2 1.51.0 hff17c54\_0 conda-forge  
libnsl 2.0.0 h7f98852\_0 conda-forge  
libogg 1.3.4 h7f98852\_1 conda-forge  
libopenblas 0.3.21 pthreads\_h78a6416\_3 conda-forge  
libopus 1.3.1 h7f98852\_1 conda-forge  
libpng 1.6.39 h753d276\_0 conda-forge  
libpq 15.1 hb675445\_3 conda-forge  
libsanitizer 12.2.0 h46fd767\_19 conda-forge  
libsndfile 1.2.0 hb75c966\_0 conda-forge  
libsodium 1.0.18 h36c2ea0\_1 conda-forge  
libspatialindex 1.9.3 h9c3ff4c\_4 conda-forge  
libsqlite 3.40.0 h753d276\_0 conda-forge  
libssh2 1.10.0 hf14f497\_3 conda-forge  
libstdcxx-devel\_linux-64 12.2.0 h3b97bd3\_19 conda-forge  
libstdcxx-ng 12.2.0 h46fd767\_19 conda-forge  
libsystemd0 252 h2a991cd\_0 conda-forge  
libtiff 4.5.0 h6adf6a1\_2 conda-forge  
libtool 2.4.7 h27087fc\_0 conda-forge  
libudev1 252 h166bdaf\_0 conda-forge  
libuuid 2.32.1 h7f98852\_1000 conda-forge  
libvorbis 1.3.7 h9c3ff4c\_0 conda-forge  
libwebp 1.2.4 h1daa5a0\_1 conda-forge  
libwebp-base 1.2.4 h166bdaf\_0 conda-forge  
libxcb 1.13 h7f98852\_1004 conda-forge  
libxkbcommon 1.0.3 he3ba5ed\_0 conda-forge  
libxml2 2.10.3 h7463322\_0 conda-forge  
libzip 1.9.2 hc929e4a\_1 conda-forge  
libzlib 1.2.13 h166bdaf\_4 conda-forge  
lz4-c 1.9.3 h9c3ff4c\_1 conda-forge  
make 4.3 hd18ef5c\_1 conda-forge  
markupsafe 2.1.2 py39h72bdee0\_0 conda-forge  
matplotlib-inline 0.1.6 pyhd8ed1ab\_0 conda-forge  
mccabe 0.7.0 pyhd8ed1ab\_0 conda-forge  
mistune 2.0.4 pyhd8ed1ab\_0 conda-forge  
more-itertools 9.0.0 pyhd8ed1ab\_0 conda-forge  
mpg123 1.31.2 hcb278e6\_0 conda-forge  
mypy\_extensions 0.4.3 py39hf3d152e\_6 conda-forge  
mysql-common 8.0.32 ha901b37\_0 conda-forge  
mysql-libs 8.0.32 hd7da12d\_0 conda-forge  
nbclient 0.7.2 pyhd8ed1ab\_0 conda-forge  
nbconvert 7.2.9 pyhd8ed1ab\_0 conda-forge  
nbconvert-core 7.2.9 pyhd8ed1ab\_0 conda-forge  
nbconvert-pandoc 7.2.9 pyhd8ed1ab\_0 conda-forge  
nbformat 5.7.3 pyhd8ed1ab\_0 conda-forge  
ncurses 6.3 h27087fc\_1 conda-forge  
nest-asyncio 1.5.6 pyhd8ed1ab\_0 conda-forge  
netcdf4 1.6.0 nompi\_py39h6ced12a\_102 conda-forge  
nspr 4.35 h27087fc\_0 conda-forge  
nss 3.82 he02c5a1\_0 conda-forge  
numpy 1.19.5 py39hd249d9e\_3 conda-forge  
numpydoc 1.5.0 pyhd8ed1ab\_0 conda-forge  
openssl 3.0.8 h0b41bf4\_0 conda-forge  
packaging 23.0 pyhd8ed1ab\_0 conda-forge  
pandas 1.4.4 py39h1832856\_0 conda-forge  
pandoc 2.19.2 h32600fe\_1 conda-forge  
pandocfilters 1.5.0 pyhd8ed1ab\_0 conda-forge  
pango 1.50.12 hd33c08f\_1 conda-forge  
parso 0.8.3 pyhd8ed1ab\_0 conda-forge  
pathspec 0.10.3 pyhd8ed1ab\_0 conda-forge  
pcre2 10.40 hc3806b6\_0 conda-forge  
pexpect 4.8.0 pyh1a96a4e\_2 conda-forge  
pickleshare 0.7.5 py\_1003 conda-forge  
pip 22.3.1 pyhd8ed1ab\_0 conda-forge  
pixman 0.40.0 h36c2ea0\_0 conda-forge  
pkgutil-resolve-name 1.3.10 pyhd8ed1ab\_0 conda-forge  
platformdirs 2.6.2 pyhd8ed1ab\_0 conda-forge  
pluggy 1.0.0 pyhd8ed1ab\_5 conda-forge  
ply 3.11 py\_1 conda-forge  
prompt-toolkit 3.0.36 pyha770c72\_0 conda-forge  
psutil 5.9.4 py39hb9d737c\_0 conda-forge  
pthread-stubs 0.4 h36c2ea0\_1001 conda-forge  
ptyprocess 0.7.0 pyhd3deb0d\_0 conda-forge  
pulseaudio 16.1 ha8d29e2\_1 conda-forge  
pure\_eval 0.2.2 pyhd8ed1ab\_0 conda-forge  
pycodestyle 2.10.0 pyhd8ed1ab\_0 conda-forge  
pycparser 2.21 pyhd8ed1ab\_0 conda-forge  
pydocstyle 6.2.3 pyhd8ed1ab\_0 conda-forge  
pyflakes 3.0.1 pyhd8ed1ab\_0 conda-forge  
pygments 2.14.0 pyhd8ed1ab\_0 conda-forge  
pylint 2.15.10 pyhd8ed1ab\_0 conda-forge  
pylint-venv 2.3.0 pyhd8ed1ab\_0 conda-forge  
pyls-spyder 0.4.0 pyhd8ed1ab\_0 conda-forge  
pyopenssl 23.0.0 pyhd8ed1ab\_0 conda-forge  
pyqt 5.15.7 py39h18e9c17\_2 conda-forge  
pyqt5-sip 12.11.0 py39h5a03fae\_2 conda-forge  
pyqtwebengine 5.15.7 py39h18e9c17\_2 conda-forge  
pyrsistent 0.19.3 py39h72bdee0\_0 conda-forge  
pysocks 1.7.1 pyha2e5f31\_6 conda-forge  
python 3.9.15 hba424b6\_0\_cpython conda-forge  
python-dateutil 2.8.2 pyhd8ed1ab\_0 conda-forge  
python-fastjsonschema 2.16.2 pyhd8ed1ab\_0 conda-forge  
python-lsp-black 1.2.1 pyhd8ed1ab\_0 conda-forge  
python-lsp-jsonrpc 1.0.0 pyhd8ed1ab\_0 conda-forge  
python-lsp-server 1.7.1 hd8ed1ab\_0 conda-forge  
python-lsp-server-base 1.7.1 pyhd8ed1ab\_0 conda-forge  
python-slugify 7.0.0 pyhd8ed1ab\_0 conda-forge  
python\_abi 3.9 3\_cp39 conda-forge  
pytoolconfig 1.2.4 pyhd8ed1ab\_1 conda-forge  
pytz 2022.7.1 pyhd8ed1ab\_0 conda-forge  
pyxdg 0.28 pyhd8ed1ab\_0 conda-forge  
pyyaml 6.0 py39hb9d737c\_5 conda-forge  
pyzmq 25.0.0 py39h0be026e\_0 conda-forge  
qdarkstyle 3.0.3 pyhd8ed1ab\_0 conda-forge  
qstylizer 0.2.2 pyhd8ed1ab\_0 conda-forge  
qt-main 5.15.6 h602db52\_6 conda-forge  
qt-webengine 5.15.4 h325cec9\_3 conda-forge  
qtawesome 1.2.2 pyhd8ed1ab\_0 conda-forge  
qtconsole 5.4.0 pyhd8ed1ab\_0 conda-forge  
qtconsole-base 5.4.0 pyha770c72\_0 conda-forge  
qtpy 2.3.0 pyhd8ed1ab\_0 conda-forge  
r-base 4.2.2 ha7d60f8\_3 conda-forge  
readline 8.1.2 h0f457ee\_0 conda-forge  
requests 2.28.2 pyhd8ed1ab\_0 conda-forge  
rope 1.6.0 pyhd8ed1ab\_0 conda-forge  
rtree 1.0.1 py39hb102c33\_1 conda-forge  
secretstorage 3.3.3 py39hf3d152e\_1 conda-forge  
sed 4.8 he412f7d\_0 conda-forge  
setuptools 66.1.1 pyhd8ed1ab\_0 conda-forge  
sip 6.7.5 py39h5a03fae\_0 conda-forge  
six 1.16.0 pyh6c4a22f\_0 conda-forge  
snowballstemmer 2.2.0 pyhd8ed1ab\_0 conda-forge  
sortedcontainers 2.4.0 pyhd8ed1ab\_0 conda-forge  
soupsieve 2.3.2.post1 pyhd8ed1ab\_0 conda-forge  
sphinx 6.1.3 pyhd8ed1ab\_0 conda-forge  
sphinxcontrib-applehelp 1.0.4 pyhd8ed1ab\_0 conda-forge  
sphinxcontrib-devhelp 1.0.2 py\_0 conda-forge  
sphinxcontrib-htmlhelp 2.0.0 pyhd8ed1ab\_0 conda-forge  
sphinxcontrib-jsmath 1.0.1 py\_0 conda-forge  
sphinxcontrib-qthelp 1.0.3 py\_0 conda-forge  
sphinxcontrib-serializinghtml 1.1.5 pyhd8ed1ab\_2 conda-forge  
spyder 5.4.2 py39hf3d152e\_0 conda-forge  
spyder-kernels 2.4.2 unix\_pyhd8ed1ab\_0 conda-forge  
stack\_data 0.6.2 pyhd8ed1ab\_0 conda-forge  
sysroot\_linux-64 2.12 he073ed8\_15 conda-forge  
text-unidecode 1.3 py\_0 conda-forge  
textdistance 4.5.0 pyhd8ed1ab\_0 conda-forge  
three-merge 0.1.1 pyh9f0ad1d\_0 conda-forge  
tinycss2 1.2.1 pyhd8ed1ab\_0 conda-forge  
tk 8.6.12 h27826a3\_0 conda-forge  
tktable 2.10 hb7b940f\_3 conda-forge  
toml 0.10.2 pyhd8ed1ab\_0 conda-forge  
tomli 2.0.1 pyhd8ed1ab\_0 conda-forge  
tomlkit 0.11.6 pyha770c72\_0 conda-forge  
tornado 6.2 py39hb9d737c\_1 conda-forge  
traitlets 5.8.1 pyhd8ed1ab\_0 conda-forge  
typing 3.10.0.0 pyhd8ed1ab\_0 conda-forge  
typing-extensions 4.4.0 hd8ed1ab\_0 conda-forge  
typing\_extensions 4.4.0 pyha770c72\_0 conda-forge  
tzdata 2022g h191b570\_0 conda-forge  
ujson 5.5.0 py39h5a03fae\_1 conda-forge  
unidecode 1.3.6 pyhd8ed1ab\_0 conda-forge  
urllib3 1.26.14 pyhd8ed1ab\_0 conda-forge  
watchdog 2.2.1 py39hf3d152e\_0 conda-forge  
wcwidth 0.2.6 pyhd8ed1ab\_0 conda-forge  
webencodings 0.5.1 py\_1 conda-forge  
whatthepatch 1.0.3 pyhd8ed1ab\_0 conda-forge  
wheel 0.38.4 pyhd8ed1ab\_0 conda-forge  
wrapt 1.14.1 py39hb9d737c\_1 conda-forge  
wurlitzer 3.0.3 pyhd8ed1ab\_0 conda-forge  
xarray 2022.6.0 pyhd8ed1ab\_1 conda-forge  
xcb-util 0.4.0 h166bdaf\_0 conda-forge  
xcb-util-image 0.4.0 h166bdaf\_0 conda-forge  
xcb-util-keysyms 0.4.0 h166bdaf\_0 conda-forge  
xcb-util-renderutil 0.3.9 h166bdaf\_0 conda-forge  
xcb-util-wm 0.4.1 h166bdaf\_0 conda-forge  
xorg-kbproto 1.0.7 h7f98852\_1002 conda-forge  
xorg-libice 1.0.10 h7f98852\_0 conda-forge  
xorg-libsm 1.2.3 hd9c2040\_1000 conda-forge  
xorg-libx11 1.7.2 h7f98852\_0 conda-forge  
xorg-libxau 1.0.9 h7f98852\_0 conda-forge  
xorg-libxdmcp 1.1.3 h7f98852\_0 conda-forge  
xorg-libxext 1.3.4 h7f98852\_1 conda-forge  
xorg-libxrender 0.9.10 h7f98852\_1003 conda-forge  
xorg-libxt 1.2.1 h7f98852\_2 conda-forge  
xorg-renderproto 0.11.1 h7f98852\_1002 conda-forge  
xorg-xextproto 7.3.0 h7f98852\_1002 conda-forge  
xorg-xproto 7.0.31 h7f98852\_1007 conda-forge  
xz 5.2.6 h166bdaf\_0 conda-forge  
yaml 0.2.5 h7f98852\_2 conda-forge  
yapf 0.32.0 pyhd8ed1ab\_0 conda-forge  
zeromq 4.3.4 h9c3ff4c\_1 conda-forge  
zipp 3.11.0 pyhd8ed1ab\_0 conda-forge  
zlib 1.2.13 h166bdaf\_4 conda-forge  
zstd 1.5.2 h3eb15da\_6 conda-forge

---

<div class="post-metadata">

### Author: ![sander.niemeijer](https://forum.atmospherictoolbox.org/user_avatar/forum.atmospherictoolbox.org/sander.niemeijer/32/5_2.png) [@sander.niemeijer](https://forum.atmospherictoolbox.org/u/sander.niemeijer)
#### Post date: [October 6, 2023, 9:15am UTC](https://forum.atmospherictoolbox.org/t/problem-with-harp-1-20-and-the-s5p-pal-l2-aer-ot-via-spyder-python-ingestion/699/4 "2023-10-06T09:15:49Z")

</div>

I think it will still apply. You can check this from your python script by using `print(os.environ['CODA_DEFINITION'])`

---

<div class="post-metadata">

### Author: ![mariliza](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/m/c77e96/32.png) [@mariliza](https://forum.atmospherictoolbox.org/u/mariliza)
#### Post date: [October 6, 2023, 9:49am UTC](https://forum.atmospherictoolbox.org/t/problem-with-harp-1-20-and-the-s5p-pal-l2-aer-ot-via-spyder-python-ingestion/699/5 "2023-10-06T09:49:54Z")

</div>

Ok, I am getting a different error from Andreas:

MariLiza:

In [2]: print(os.environ[‘CODA\_DEFINITION’])  
/mnt/apps/prebuilt/harp/1.17/share/coda/definitions

Andreas:

print(os.environ[‘CODA\_DEFINITION’])  
Traceback (most recent call last):

Cell In[3], line 1  
print(os.environ[‘CODA\_DEFINITION’])

File :679 in **getitem**

KeyError: ‘CODA\_DEFINITION’

---

<div class="post-metadata">

### Author: ![sander.niemeijer](https://forum.atmospherictoolbox.org/user_avatar/forum.atmospherictoolbox.org/sander.niemeijer/32/5_2.png) [@sander.niemeijer](https://forum.atmospherictoolbox.org/u/sander.niemeijer)
#### Post date: [October 6, 2023, 10:02am UTC](https://forum.atmospherictoolbox.org/t/problem-with-harp-1-20-and-the-s5p-pal-l2-aer-ot-via-spyder-python-ingestion/699/6 "2023-10-06T10:02:06Z")

</div>

Ok. So in your case, the problem is that you are still referring to the codadefs of a HARP 1.17 installation. And you thus won’t find the codadef for the S5P-PAL products.

In the case of Andreas, there is indeed no explicit codadef path set, so there is another issue. Is he using HARP 1.20?

---

<div class="post-metadata">

### Author: ![mariliza](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/m/c77e96/32.png) [@mariliza](https://forum.atmospherictoolbox.org/u/mariliza)
#### Post date: [October 6, 2023, 10:07am UTC](https://forum.atmospherictoolbox.org/t/problem-with-harp-1-20-and-the-s5p-pal-l2-aer-ot-via-spyder-python-ingestion/699/7 "2023-10-06T10:07:43Z")

</div>

Re. my trouble. I took out the codadefs from my .bashrc and of course it worked, but I do not understand why. Doesn’t the conda environment superceed the local variables/local installation? well, it obviously doesn’t, but this mean that every time I update harp within my envs I have to ask the sys admins to also update harp in the whole system. Okeeey…

Re. Andreas, he is indeed using harp1.20, we both made new envs with just harp and spyder on. Let’s see what our local people can opine on his case.

Many thanks,  
MariLiza

---

<div class="post-metadata">

### Author: ![sander.niemeijer](https://forum.atmospherictoolbox.org/user_avatar/forum.atmospherictoolbox.org/sander.niemeijer/32/5_2.png) [@sander.niemeijer](https://forum.atmospherictoolbox.org/u/sander.niemeijer)
#### Post date: [October 6, 2023, 10:25am UTC](https://forum.atmospherictoolbox.org/t/problem-with-harp-1-20-and-the-s5p-pal-l2-aer-ot-via-spyder-python-ingestion/699/8 "2023-10-06T10:25:09Z")

</div>

You shouldn’t have to explicitly set the `CODA_DEFINITION` or `UDUNITS2_XML_PATH` at all.  
For the IDL interface, you should be setting `IDL_DLM_PATH`. See also the [HARP installation instructions](http://stcorp.github.io/harp/doc/html/install.html).

---

<div class="post-metadata">

### Author: ![mariliza](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/m/c77e96/32.png) [@mariliza](https://forum.atmospherictoolbox.org/u/mariliza)
#### Post date: [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/9 "2023-10-06T10:44:11Z")

</div>

It should be enough to set the IDL\_DLM\_PATH, but for some reason I do not understand, it is not.  
In any case, this is not your trouble, but our sys admin’s so thanks again!
