MetCheck -- Unsupported

The MetCheck is a tool that validates the inventory metadata in .met file using the description file .desc as the reference.

Installation

This tool depends on only the C standard library. Users do not need to have HDF4external , HDF5external , 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.

Usage

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:

Figure 1 Usage of MetCheck
$ ./metcheck -f ref.desc -m test.met
When the tested .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:
Figure 2 An error message
ERROR :: The Aggeragate= INPUTPOINTERhave the parmeter NUM_VAl missing
or the number of values > NUM_VAL in the descriptor file


Last modified: 11/11/2020
About Us | Contact Info | Archive Info | Disclaimer
Sponsored by Subcontract number 4400528183 under Raytheon Contract number NNG15HZ39C, funded by NASA / Maintained by The HDF Group