From 9e48986910b31a7639b2a2cc2fabdcf085b14b03 Mon Sep 17 00:00:00 2001 From: Alexander Crosby Date: Thu, 22 Jan 2026 13:36:26 -0500 Subject: [PATCH 1/2] update Dockerfile to allow build args for alma linux version (ALMALINUX_VER) and aspenqc version (ASPEN_VER), defaulting to ALMALINUX_VER=9.6 and ASPEN_VER=4.0.5 to add support minisondes, README.md updated to reference 4.0.5 as well --- Dockerfile | 9 ++++++--- README.md | 10 ++++++++-- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0550324..9213ba4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,12 @@ -FROM --platform=linux/amd64 almalinux:9.5 +ARG ALMALINUX_VER=9.6 +FROM --platform=linux/amd64 almalinux:${ALMALINUX_VER} RUN yum install -y epel-release # extra packages (netcdf etc...) RUN yum install -y boost-regex boost-filesystem xerces-c boost-program-options netcdf netcdf-cxx4 # dependencies RUN mkdir /src WORKDIR /src -RUN curl "https://archive.eol.ucar.edu/docs/software/aspen/AspenV4.0.4_AlmaLinux9.5_x86_64.tar.gz" | tar -xzf - -WORKDIR /src/AspenV4.0.4_AlmaLinux9.5_x86_64/bin/ +ARG ALMALINUX_VER=9.6 +ARG ASPEN_VER=4.0.5 +RUN curl "https://archive.eol.ucar.edu/docs/software/aspen/AspenV${ASPEN_VER}_AlmaLinux${ALMALINUX_VER}_x86_64.tar.gz" | tar -xzf - +WORKDIR /src/AspenV${ASPEN_VER}_AlmaLinux${ALMALINUX_VER}_x86_64/bin/ ENTRYPOINT ["./Aspen-QC"] CMD ["-i", "-e"] diff --git a/README.md b/README.md index 0ad128a..f9d81d6 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,8 @@ In principle, the software can be run on a few operating systems. However, hosting the software in form of a docker image makes it independent from the operating system which is the purpose of this repository. The repository includes a `Dockerfile` and the respective GitHub workflows needed to generate the image and push it to the [GitHub container registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry). -Currently, there is only the [ASPEN version 4.0.2](https://www.eol.ucar.edu/software/aspen) (Jun 7, 2024) available. +Up to [ASPEN version 4.0.5](https://www.eol.ucar.edu/software/aspen) (Jun 16, 2025) is available, +which includes support for mini-dropsonde configs. Older as well as newer versions could also be added in a similar way and you can open an issue if you would like to have them or add them yourself. ## Usage @@ -17,28 +18,33 @@ The simplest way would be to install `Docker Desktop` (on MacOS also possible vi The name of the image is `ghcr.io/atmdrops/aspenqc`. Run ASPEN and display the help statement: + ``` docker run --rm -i ghcr.io/atmdrops/aspenqc --help ``` To process a single `Level_0` file (e.g. `D20240730_100114.1`)and write the output to stdout: + ``` cat D20240730_100114.1 | docker run --rm -i ghcr.io/atmdrops/aspenqc ``` You can add a tag a the end to point to a specific version, e.g. `4.0.2` or `latest`. For an overview of available versions/tags, have a look [here](https://github.com/atmdrops/aspenqc/pkgs/container/aspenqc). + ``` cat D20240730_100114.1 | docker run --rm -i ghcr.io/atmdrops/aspenqc:4.0.2 ``` ### Generating a Level_1 netCDF files + The idea of docker is that you can run software detached from you local operating system. Therefore, writing any generated output to your local disc is not straight forward, but possible via explicitly mounting a specified folder. For details have a look at docker’s documentation on [bind mounts](https://docs.docker.com/storage/bind-mounts/). -TL;DR you need to specify a *source* directory (local) which the docker image can see and has access to and you also need to specify a *target*, which is the name of the source directory within the docker image. +TL;DR you need to specify a _source_ directory (local) which the docker image can see and has access to and you also need to specify a _target_, which is the name of the source directory within the docker image. An example would be: + ``` docker run --rm --mount type=bind,source=path/to/dropsondes/data,target=/data ghcr.io/atmdrops/aspenqc -i /data/20240730/Level_0/D20240730_100114.1 -n /data/20240730/Level_1/D20240730_100114.1.nc ``` From c7cecc3b568b9bf35b7bc7c049451c183e22ea51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20K=C3=B6lling?= Date: Thu, 22 Jan 2026 21:59:43 +0100 Subject: [PATCH 2/2] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9213ba4..aa9b941 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ RUN yum install -y epel-release # extra packages (netcdf etc...) RUN yum install -y boost-regex boost-filesystem xerces-c boost-program-options netcdf netcdf-cxx4 # dependencies RUN mkdir /src WORKDIR /src -ARG ALMALINUX_VER=9.6 +ARG ALMALINUX_VER ARG ASPEN_VER=4.0.5 RUN curl "https://archive.eol.ucar.edu/docs/software/aspen/AspenV${ASPEN_VER}_AlmaLinux${ALMALINUX_VER}_x86_64.tar.gz" | tar -xzf - WORKDIR /src/AspenV${ASPEN_VER}_AlmaLinux${ALMALINUX_VER}_x86_64/bin/