File: tst_hdf4_read_var.sh

package info (click to toggle)
netcdf 1%3A4.4.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 96,828 kB
  • ctags: 15,369
  • sloc: ansic: 163,650; sh: 9,294; yacc: 2,457; makefile: 1,208; lex: 1,161; xml: 173; f90: 7; fortran: 6; awk: 2
file content (23 lines) | stat: -rwxr-xr-x 671 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# This shell script tests that an hdf4 file can be read a
# variable at a time.
#
# this was added in support of https://github.com/Unidata/netcdf-c/issues/264

FILE=tst_interops2.h4

set -e

echo ""
echo "*** Testing reading an individual variable from an HDF4 file."

../ncdump/ncdump -v hdf4_dataset_type_0 $FILE
../ncdump/ncdump -v hdf4_dataset_type_1 $FILE
../ncdump/ncdump -v hdf4_dataset_type_2 $FILE
../ncdump/ncdump -v hdf4_dataset_type_3 $FILE
../ncdump/ncdump -v hdf4_dataset_type_4 $FILE
../ncdump/ncdump -v hdf4_dataset_type_5 $FILE
../ncdump/ncdump -v hdf4_dataset_type_6 $FILE
../ncdump/ncdump -v hdf4_dataset_type_7 $FILE

echo "*** Success."