mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-21 08:39:46 +08:00
446348ed18
re: PR https://github.com/Unidata/netcdf-c/pull/2088 re: PR https://github.com/Unidata/netcdf-c/pull/2130 replaces: https://github.com/Unidata/netcdf-c/pull/2140 Changes: * Add NCZarr-specific quantize functions to the dispatch table. * Copy (modified) quantize code from libhdf5 to NCZarr * Add quantize invocation to zvar.c * Add support for _QuantizeBitgroomNumberOfSignificantDigits and _QuantizeGranularBitgroomNumberOfSignificantDigits to ncgen. * Modify nc_test4/tst_quantize.c to allow it to be used both for hdf5 and for nczarr. * Make dap4 properly handle quantize functions in dispatch table. * Add quantize attribute support to ncgen. Other changes: * Caught and fixed some S3 problems * Fixed some nczarr fillvalue problems. * Fixed some nczarr cache problems. * Cleanup some flaws in libdispatch/dinfermodel.c * Allow byterange requests to S3 be readable by dinfermodel.c/check_file_type * Remove the libnczarr ztracedispatch code (big change).
53 lines
1.2 KiB
Bash
Executable File
53 lines
1.2 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
|
. ../test_common.sh
|
|
|
|
echo "*** Test Maximum dimension sizes X mode"
|
|
|
|
# This shell script tests max dimension sizes X mode
|
|
|
|
RETURN=0
|
|
|
|
echo ""
|
|
|
|
rm -f tst_dimsize_classic.nc tst_dimsize_64offset.nc tst_dimsize_64data.nc
|
|
|
|
echo "*** Generate: tst_dimsize_classic.nc tst_dimsize_64offset.nc tst_dimsize_64data.nc"
|
|
${execdir}/tst_dimsizes
|
|
|
|
echo "*** Verify that ncdump can read dimsizes"
|
|
|
|
rm -fr ./tmp_tst_dimsizes
|
|
if ${NCDUMP} -h tst_dimsize_classic.nc > ./tmp_tst_dimsizes ; then
|
|
echo "*** PASS: ncdump tst_dimsize_classic.nc"
|
|
else
|
|
echo "*** FAIL: ncdump tst_dimsize_classic.nc"
|
|
RETURN=1
|
|
fi
|
|
|
|
rm -fr ./tmp_tst_dimsizes
|
|
if ${NCDUMP} -h tst_dimsize_64offset.nc > ./tmp_tst_dimsizes ; then
|
|
echo "*** PASS: ncdump tst_dimsize_64offset.nc"
|
|
else
|
|
echo "*** FAIL: ncdump tst_dimsize_64offset.nc"
|
|
RETURN=1
|
|
fi
|
|
|
|
if test -f tst_dimsize_64data.nc ; then
|
|
rm -fr ./tmp_tst_dimsizes
|
|
if ${NCDUMP} -h tst_dimsize_64data.nc > ./tmp_tst_dimsizes ; then
|
|
echo "*** PASS: ncdump tst_dimsize_64data.nc"
|
|
else
|
|
echo "*** FAIL: ncdump tst_dimsize_64data.nc"
|
|
RETURN=1
|
|
fi
|
|
fi
|
|
|
|
# Cleanup
|
|
rm -f tmp_tst_dimsizes tst_dimsize_classic.nc tst_dimsize_64offset.nc tst_dimsize_64data.nc
|
|
|
|
exit $RETURN
|