Command syntax changed to allow multiple input file arguments instead just
one argument that could "space separated multiple filenames.".
Removed protocols of parse_inputFiles and get_inputFiles_bydir as they are not
needed for now.
nagg_get_granules.c:
Fixed the protocol signature to remove the warning message.
Tested: jam, koala, linew and heiwa
Added a new type, granule_p_t which is *granule_t so that it is clearer
to know it is a pointer to a granule structure.
Changed the prototype of nagg_get_granules, nagg_print_granules, write_granules
to relect this new type. No code changes.
Also added NAGG_InputFiles_Max, inputfilenames used by the input file name
parsing routine which is not working yet.
Added a pile of HDstrXXX macros to use the strings.h routines.
Tested: jam and koala but segment fault in linew, heiwas and freedom.
nagg_main.c
Removed debug calls to dump granules and verify that the granule table
is now correctly returned by nagg_get_granules.
nagg_get_granules.c
Removed debug calls to dump granules and verify that the granule table
is now correctly returned by nagg_get_granules.
Added more function descriptions and reordered the functions from upper
to lower level.
Removed the granule_finder header for the iterator function that was removed in revision 12.
Tested on amani.
Corrected the
nagg_get_granules(char **file_list, int number_of_files,
granule_t **granule_info_p[], int *number_of_granules_p);
nagg_get_granules should received the addresses of granule_info and
number_of_granules so that it can return the values. Changed name of both
parameters to XX_p as pointer of XX to reflect the nature of the parameter.
The debug statments of nagg_print_granules were left in to demonstrate
it actually works. Should be cleaned up later.
Tested: Koala. linew.
Changed to recommended hdf5 failure detection form:
if((dset = H5Dopen2(file, name)) < 0)
fprintf(stderr, "unable to open the requested dataset\n");
Malloc struct for each granule as it is found.
Made error messages for failure to open file more specific.
Assigned &granule_info_array to **granule_info.
This works in this file but still becomes 0 when back in main.
Tested on amani.
nagg_main.c:
Hardcoded assumeing single file calling; added calls to nagg_get_granules;
Turned off HDF5's automatic error printing.
Still more work is needed.
nagg.h:
added definitions of function return values (SUCCEED and FAIL). Can be used
by all function with int return values.
Added nagg_print_granules() prototype.
nagg_posix.h:
Cosmetic change to error message.
nagg_get_granules.c:
Removed unused FILENAME_SIZE macro.
Changed function return type from ...
Moved prototype of get_granule_info() from nagg_get_granules.c to nagg.h since
it is called by main in a differenet source module.
Removed duplicated definitions of EXIT_FAILURE and EXIT_SUCCESS.
Removed duplicated #include of string.h. (Already included by nagg.h).
Tested: koala and linew.
Added granule_version_number into the granule_t struct definition.
Added granule_t *granule_info_array[NAGG_Granule_info_max] to hold all
granules found in input files.
Tested: koala
Initial versions committed.
Some are just dummy empty files. Committed for structure sake.
Tested: compiled alright in Jam. Parse_options is not called yet.