read_bnd()#
- liesel_gam.io.read_bnd(filename, delimiter=',')[source]#
Reads a .bnd file with geographical information, returns a polys dictionary.
- Parameters:
- Return type:
dict[str,ndarray[tuple[Any,...],dtype[TypeVar(_ScalarT, bound=generic)]]]
Notes
The expected file format looks like this:
"A", 66 25.6422, -17.8037 25.6477, -17.7607 ... "B", 192 27.276, -17.0096 27.6848, -17.1684 ...
Where the lines
"A",66and"B",192are header lines that indicate the region label, and the number of following lines that define the polygon for the respective region. In this case, the region labelled"A"is defined by the following 66 lines, and the region labelled"B"is defined by the following 192 lines.