return_chunked_fil¶
- HSTB.kluster.xarray_conversion.return_chunked_fil(fil, startoffset=0, chunksize=20971520)¶
With given file, determine the best size of the chunk to read from it, given a minimum chunksize and a max number of chunks.
- Parameters
fil (
str) – path to file we want to analyzestartoffset (
int) – byte offset for the start location of the read in the filechunksize (
int) – calculated chunksize desired for read operation in bytes
- Returns
List containing [filepath, starting offset in bytes, end of chunk pointer in bytes] for each chunk to be read from file
- Return type
list