The MetCheck is a tool that validates the inventory metadata in .met
file
using the description file .desc
as the reference.
This tool depends on only the C standard library. Users do not need to have HDF4 , HDF5 , HDF-EOS2 or HDF-EOS5 to build this tool. However, during installation, we notice that there are a few errors that require to be fixed.
At the line 399 in metcheck.c
, CheckSynErr
function was defined
as static
. We had to remove static
modifier. Without this fix,
we got a compiler error because this function is declared as a non-static function in the
header file and this introduces inconsistency.
At the line 142 and 143 in lstList.c
, two fields were initialized with
stderr
, and GCC gave an error saying that the initializer is not constant.
We replaced stderr
by NULL
just to make this program compile.
To fix this problem correctly, users need to write a function that initializes this global
variable and call this function before any other functions.
The same compiler error occurred at the line 81 and 82 in strUtilities
.
This program takes at least two inputs: a .met
file for test and
a .desc
file as the reference. The following command will validate
test.met
file using ref.desc
as the reference:
.met
file is not consistent with the reference file,
error messages will be printed. For example, the following message was generated
when the value of INPUTPOINTER
object differs: