Check whether the input data file is packaged. If it is, only option -o1
can be performed, and a message will be printed to that effect. It should
be possible to process packaged files, but will require more work.
Add code to check properties of each dataset in the file to be processed
and create a dimension scale with matching properties - current size,
maximum dimension size and chunked or not.
Tested on jam and koala.
Saved Mark's corrections in HDF5_Augmentation_Tool_Design120508.docx as new version of HDF5_Augmentation_Tool_Design.docx, and as new version of HDF5_Augmentation_Tool_Design.pdf.
Changed Copyright section of document to contents of COPYING file.
Update default to run all -o options.
Update help to reflect this.
Improve readability of test output.
Add instructions to README.txt to correct location of ncdump and h5dump in test_h5augjpss.sh.
Add test instructions to README.txt
Check that datafile is hdf5 format, print errors if not.
Added tests to see that expected number of attributes is present after running all options of h5augjpss.
Put back the call to add attributes.
Tested on jam and koala.
Made changes to support any order of executing options.
Added more error handling, including checking for empty strings from parsing xml file when the strings are passed to atoi or atof functions.
Added more tests to test_h5ajpss.sh
Comment out h5aj_check_geolocation_dimensions function and calls to it. The function incorrectly assumes that all geolocation datasets have 2 dimensions - "AlongTrack" and "CrossTrack". At present it appears to be unnecessary to add dimension scales to geolocation datasets.
Addresses issue JPSS-21.
Maintenance: Updated help page to use simplified location for the spec along with some
information for level 2 (mapping from xml file done according the spec, not
xsd file, but xsd did play role in designing the mapping)
Added environment variable H5AUGJPSS_DATADIR to specify location of input files.
Added README.txt file.
Made restore commands to run without error when repeated.
Added code to find xml and geolocation files according to H5AUGJPSS_DATADIR, path to datafile, or current working directory.
Return meaningful error messages when geolocation file is missing, xmlfile doesn't match datafile, or groups in data file can't be opened because they have already been hidden. Level 3 will now either multiple times without failing, and level 1 and -t IDV will explain that the group to be accessed can't be found. If the xml file specified can't be found, the nmae of the file will be printed with a message explaining that it must be in the current working directory.
Fixed xml parsing to process all of H5AJ_MAX_DIMS dimensions, not all but 1.
CrIS-SDR files dimension scale names aren't AlongTrack and CrossTrack. Updated h5ajcommand.c to set a flag when executing level 2 - the addition of dimension scales and other attributes from the xml file, and to check the flag when executing level 3 instead of looking for dimension scales named AlongTrack and CrossTrack.