Atmospheric Toolbox

Issue with CODA with Python

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://atmospherictoolbox.org/coda/

I am using Anaconda Python 3.0 on my Centos7 operating system.

Now, I want to know how I can install and set the path for CODA_DEFINITION. I am struck here.

Inside the ‘coda’ directory, I am following the instructions given in the INSTALL file.

Following are steps and error messages I am getting:


$ ./bootstrap
—removing generated files—
—autoreconf—
./bootstrap: line 24: autoreconf: command not found

$ conda install -c stcorp coda
Collecting package metadata (current_repodata.json): done
Solving environment: done

Preparing transaction: done
Verifying transaction: done
Executing transaction: done

$ ./configure --enable-python

bash: ./configure: No such file or directory

$ sh configure.ac --enable-python
[configure.ac]: line 2: syntax error near unexpected token [CODA],[2.22.1]' [configure.ac]: line 2: AC_INIT([CODA],[2.22.1])’


Can you please suggest me how to rectify the above issues?

Install instructions for CODA itself are provided in the INSTALL file. You are mixing up installation from source from github with installation via conda. So please read the documentation carefully.

Assuming you are using the conda installation of CODA, then just put the AEOLUS .codadef file in your conda environment in the share/coda/definitions sub-directory. This way CODA will automatically find it.

The alternative is to put the .codadef somewhere else and point to it with a CODA_DEFINITION environment variable. Instructions for this can also be found in the documentation.