Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import h5py
- import os
- import numpy as np
- import matplotlib.pyplot as plt
- cwd = os.getcwd()
- #Open the data file
- f = h5py.File('C:/Users/Jason/Downloads/2020_Challenge_IOT_Analytics-master/2020_Challenge_IOT_Analytics-master/competitionfiles/COOLCAT_20091220_103626_08_20091220_103626_080.hdf', 'r')
- #Show all channels available in file
- chanIDs = f['DYNAMIC DATA']
- print("Channels available in this data file")
- print(list(chanIDs.keys()))
- ChannelName = 'ch_1'
- dset = chanIDs[ChannelName]['MEASURED']
- dset_as_array = np.array(dset)
- print (dset_as_array)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement