lspestrip / striptease

Strip TEst Analysis for System Evaluation
MIT License
4 stars 3 forks source link

Add the ability to "fix" HDF5 MJD ranges #65

Closed ziotom78 closed 2 years ago

ziotom78 commented 2 years ago

The Strip acquisition software does not save valid values in the two attributes FIRST_SAMPLE and LAST_SAMPLE of the root group, because this would be too time-consuming. The solution I adopted in hdf5db.py was to compute these number by iterating over all the datasets and looking for the minimum and maximum valid MJD values.

This PR implements the --update-hdf5 switch in the script build_hdf5_database.py, which forces the code to write the compute MJD range back in the HDF5 files, if this is not already in place.