Advertisement
Guest User

Untitled

a guest
Feb 29th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.56 KB | None | 0 0
  1. import h5py
  2. import os
  3. import numpy as np
  4. import matplotlib.pyplot as plt
  5. cwd = os.getcwd()
  6.  
  7. #Open the data file
  8.  
  9. 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')
  10.  
  11. #Show all channels available in file
  12. chanIDs = f['DYNAMIC DATA']
  13.  
  14. print("Channels available in this data file")
  15. print(list(chanIDs.keys()))
  16.  
  17. ChannelName = 'ch_1'
  18. dset = chanIDs[ChannelName]['MEASURED']
  19. dset_as_array = np.array(dset)
  20. print (dset_as_array)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement