vis_tools.SpatialBinaryHeader module#

SpatialBinaryHeader.py

This file contains:

  • SpatialBinaryHeader - a class for extracting just the header from SpatialReport files.

SpatialBinaryHeader is a class that allows access to the dimensions of a spatial report without actually reading the entire file.

class vis_tools.SpatialBinaryHeader.SpatialBinaryHeader(file_path='', verbose=False)[source]#

Bases: object

Class to read header off a spatial binary without reading the contents.

Usage:

bin_header = SpatialBinaryHeader("output/SpatialReport_Prevalence")
print bin_header