geosoft.gxpy.grid

Geosoft grid and image handling, including all supported file formats .

Classes:
Grid:

grid dataset

Constants:
FILE_READ:

0 open for read, files are not changed

FILE_READWRITE:

1 open for read and write, files can be changed

FILE_NEW:

2 new grid file, accompanied by overwrite= parameter

Note

Regression tests provide usage examples: Tests

Functions

_t(s)

_transform_color_int_to_rgba(np_values)

array_locations(properties)

Create an array of (x,y,z) points for a grid defined by properties :param properties: grid properties :returns: array of points, shaped (ny, nx, 3)

decorate_name(name[, decorations])

Properly decorate a grid name.

delete_files(file_name)

Delete all files associates with this grid name.

figure_map(grid_file[, map_file, shade, ...])

Create a map figure from a grid file.

gridBool(*args, **kwargs)

Deprecated since version 9.2: use grid_bool

gridMosaic(*args, **kwargs)

Deprecated since version 9.2: use :py:method: grid_mosaic

grid_bool(*args, **kwargs)

Deprecated since version 9.4: use geosoft.gxpy.grid_utility.grid_bool

grid_mosaic(*args, **kwargs)

Deprecated since version 9.4: use geosoft.gxpy.grid_utility.grid_mosaic

image_file(grid_file[, image_file, ...])

Save a grid file grid as a georeferenced image file.

name_parts(name)

Return folder, undecorated file name + ext, file root, ext, decorations.

reopen(g[, dtype, mode])

Reopen a grid to access the grid as an existing grid.

Classes

Grid([file_name, in_memory, dtype, mode, ...])

Grid and image class.

Exceptions

GridException(message)

Exceptions from geosoft.gxpy.grid.