!head ../data/Surfer/surfer-6-ascii-tiny.grd

import gio

da = gio.read_surfer('../data/Surfer/surfer-6-ascii-tiny.grd')
da

da.max()

"""
Explanation: Read surfer grids
There are 3 varieties:

Surfer 6 binary
Surfer 6 ASCII
Surfer 7 binary

In theory we can read all of these, but I don't have a Surfer 6 binary file to test on.
A small binary file
From the docs.
End of explanation
"""


import gio

da = gio.read_surfer('../data/Surfer/surfer-6-ascii.grd')
da

da.plot()

"""
Explanation: Another ASCII
End of explanation
"""


import gio

da = gio.read_surfer('../data/Surfer/WDS1_Si_TAP_Quant.grd')
da

da.plot()

da.shape

"""
Explanation: A binary file
End of explanation
"""


