-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python hdf5 reader #236
Comments
I was using the py docs for h5 in the data dictionary issue (#237), but it should be pretty helpful for this issue too. Preliminary reading of the documentation suggests element hierarchy (group>dataset>attribute) is more defined, with clearer relationships between each "level". Additionally, the functions for modifying (set) and retrieving (get) attribute data have clearer syntax (might just be personal preference). The following are some of the h5py functions and syntax useful in the conversion from R to python: Opening .h5 files:
Datasets:
Attributes
Closing .h5 files:
|
6/24/2022: Successfully located and converted timestamp using PythonThe following are the steps for locating the timestamps and then manually converting them to UTC.
From here, the values reported need to be divided by 1x10^9, and then manually input into the python funtion
Next steps are to streamline the conversion process using a python script Note: Data from TIMESERIES/TS011/table is output as a 'tuple' which is displayed as (#, #). First number is the timestamp and second is called 'value' but we are unsure so far of significance
The original UCI from #211 had the end date as 2019/12/31, but Python showed that the last timestamp from the hdf5 was 2020/12/31... is this a problem? |
Helpful Source for HDF5 Files in Python:https://pythonnumericalmethods.berkeley.edu/notebooks/chapter11.05-HDF5-Files.html
|
Source for Creating Python Script in Command Linehttps://www.jcchouinard.com/create-python-script-from-terminal/ |
Python script for converting timestamps from Unix time to datetime formatA script for timestamp conversion has been committed to the Harp Archive folder.
|
|
See use of hdf5 to create new datasets for the Equation type: HARPgroup/HSPsquared#25 (comment) |
Exploring how to use Python to help us find a solution to finding timestamps in .h5 files
See also:
The text was updated successfully, but these errors were encountered: