htmie

Optical properties of water droplets
git clone git://git.meso-star.fr/htmie.git
Log | Files | Refs | README | LICENSE

commit 22186850cdca35da4e3cae0e958bff167db2c0e5
parent fa3213d9342c8dc118a314c4606adf962bc4ac91
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 11 Oct 2023 09:23:39 +0200

Fix dump_netcdf_data.sh script

This script uses ncdump to extract data from a NetCDF file for
test_htmie_load cross-comparisons. However, it didn't write the expected
variable data from the ncdump output: only the data section had to be
taken into account, whereas we were processing the data from the
dimension section.

Diffstat:
Msrc/dump_netcdf_data.sh | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/dump_netcdf_data.sh b/src/dump_netcdf_data.sh @@ -30,9 +30,10 @@ fi name=${2##*/} name=${name%.*} -blanks="[[:blank:]]\{0,\}" +blanks="[[:space:]]\{0,\}" ncdump -v "$1" "$2" \ + | sed -n "/^${blanks}data:${blanks}/,\$p" \ | sed -n "/^${blanks}$1${blanks}=/,\$p" \ | sed "s/^${blanks}$1${blanks}=${blanks}//g" \ | sed "s/[;} ]//g" \