-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1155 from Unidata/fillmismatch.dmh
Modify DAP2 and DAP4 to optionally allow Fillvalue/Variable mismatch
- Loading branch information
Showing
58 changed files
with
1,250 additions
and
422 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ FAST=1 | |
|
||
HDF5=1 | ||
DAP=1 | ||
SZIP=1 | ||
#SZIP=1 | ||
#HDF4=1 | ||
#PNETCDF=1 | ||
#PAR4=1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
netcdf test_fillmismatch { | ||
variables: | ||
ubyte uv8 ; | ||
short v16 ; | ||
uint uv32 ; | ||
uv32:_FillValue = 17U ; | ||
|
||
// global attributes: | ||
:_DAP4_Little_Endian = 1UB ; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FILE(GLOB COPY_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*) | ||
FILE(COPY ${COPY_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/ FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE) | ||
|
||
FILE(GLOB CUR_EXTRA_DIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*) | ||
SET(CUR_EXTRA_DIST ${CUR_EXTRA_DIST} CMakeLists.txt) | ||
ADD_EXTRA_DIST("${CUR_EXTRA_DIST}") |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/sh | ||
|
||
if test "x$srcdir" = x ; then srcdir=`pwd`; fi | ||
. ../test_common.sh | ||
|
||
set -e | ||
. ${srcdir}/d4test_common.sh | ||
|
||
echo "test_fillmismatch.sh:" | ||
|
||
F="test_fillmismatch.nc" | ||
|
||
URL='[dap4]file://' | ||
URL="${URL}${srcdir}/misctestfiles/$F" | ||
|
||
# First check that without [fillmismatch], we get a failure | ||
rm -f ./tmp_dap4_mismatch | ||
if ${NCDUMP} -h "${URL}" > ./tmp_dap4_mismatch 2>&1 ; then | ||
echo "*** Fail: ${NCDUMP} ${URL} passed" | ||
exit 1 | ||
else | ||
echo "*** XFail: ${NCDUMP} ${URL} failed" | ||
fi | ||
|
||
# Now check that with [fillmismatch], we get sucess | ||
URL="[fillmismatch]${URL}" | ||
rm -f ./tmp_dap4_mismatch | ||
if ${NCDUMP} -h "${URL}" > ./tmp_dap4_mismatch ; then | ||
echo "*** Pass: ${NCDUMP} ${URL} passed" | ||
else | ||
echo "*** Fail: ${NCDUMP} ${URL} failed" | ||
exit 1 | ||
fi | ||
|
||
# Verify result | ||
diff -w ${srcdir}/baselineraw/$F.dmp ./tmp_dap4_mismatch | ||
#cleanup | ||
rm -f ./tmp_dap4_mismatch | ||
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.