readgssi.dzt (reads DZTs)¶
Function to print relevant header data.
readdzt(infile, gps=Empty DataFrame Columns:  Index: , spm=None, start_scan=0, num_scans=-1, epsr=None, antfreq=[None, None, None, None], verbose=False, zero=[None, None, None, None])¶
Function to unpack and return things the program needs from the file header, and the data itself.
infile (str) – The DZT file location
spm (float) – User value of samples per meter, if specified. Defaults to None.
epsr (float) – User value of relative permittivity, if specified. Defaults to None.
verbose (bool) – Verbose, defaults to False
- Return type
Function to read dates from
rfDateBytebinary objects in DZT headers.
rfDateByteobjects are 32 bits of binary (01001010111110011010011100101111), structured as little endian u5u6u5u5u4u7 where all numbers are base 2 unsigned int (uX) composed of X number of bits. Four bytes is an unnecessarily high level of compression for a single date object in a filetype that often contains tens or hundreds of megabytes of array information anyway.
So this function reads (seconds/2, min, hr, day, month, year-1980) then does seconds*2 and year+1980 and returns a datetime object.
For more information on
rfDateByte, see page 55 of GSSI’s SIR 3000 manual.