slippy.surface.assurface

slippy.surface.assurface(profile, grid_spacing=None)[source]

make a surface from a profile

Parameters
  • profile (array-like) – The surface profile

  • grid_spacing (float optional (None)) – The spacing between grid points on the surface

Returns

surface – A surface object with the specified profile and grid size

Return type

Surface object

See also

Surface, read_surface

Notes

Examples

>>> profile=np.random.normal(size=[10,10])
>>> my_surface=assurface(profile, 0.1)
>>> my_surface.extent
[1,1]