Skip to content

Commit

Permalink
Temporary file for use while constructing functionalit.
Browse files Browse the repository at this point in the history
Will turn into a test at some point.
  • Loading branch information
Bryan Lawrence committed Feb 22, 2024
1 parent 473fa36 commit 3ee8f25
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions bnl/playing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import pyfive
from pathlib import Path
from pyfive.as_dataobjects import ADataObjects

MYFILE = 'da193o_25_day__grid_T_198807-198807.nc'
MYFILE = '../tests/chunked.hdf5'
MYPATH = Path(__file__).parent

#f = h5py.File(MYPATH/MYFILE,'r')
f2 = pyfive.File(MYPATH/MYFILE)
path = 'dataset1'
link_target = f2._links[path]
dsref = ADataObjects(f2.file._fh, link_target)
chunk_index = dsref.get_offset_addresses()
print(chunk_index)


#v='tos'
#tos =f2[v]
#v='dataset1'
#print(tos)
#x = tos[2,:]
#print(x)
#print(tos.shape)



0 comments on commit 3ee8f25

Please sign in to comment.