License Required for gxgrd.Grid.minimum_curvature ?

EdwardBiegert
EdwardBiegert Posts: 4
edited March 2023 in Oasis montaj
(1) Is there a license restriction for running gxgrd.Grid.minimum_curvature from stand-alone python script?
(2) If so, where in the documentation can I find license restrictions for various functions?
(3) Or is there another problem?


I am running the OM Viewer and this script (pretty much straight from the documentation) failed:


import numpy as np
import geosoft.gxpy as gxpy
import geosoft.gxpy.grid as gxgrd

# ******************************************************
# Gridding test
gxc = gxpy.gx.GXpy() # create Geosoft context
print(gxc.gid) # Prints Geosoft userID

xyv = [(45., 10., 100), (60., 25., 77.), (50., 8., 80.)] # simple data array
grid = gxgrd.Grid.minimum_curvature(xyv)
print('Properties ', grid.properties())

exit()



This is the python response:

C:\ProgramData\Anaconda3\python.exe C:/Users/EKB/PycharmProjects/Test_Project/GX_GDB_Gridding_Failure.py
biegert@alumni.rice.edu
Traceback (most recent call last):
File "C:/Users/EKB/PycharmProjects/Test_Project/GX_GDB_Gridding_Failure.py", line 11, in
grid = gxgrd.Grid.minimum_curvature(xyv)
File "c:\programdata\anaconda3\lib\site-packages\geosoft\gxpy\grid.py", line 705, in minimum_curvature
gxapi.GXRGRD.run2(gdb.gxdb, xc, yc, vc, con_file, file_name)
File "c:\programdata\anaconda3\lib\site-packages\geosoft\gxapi\GXRGRD.py", line 226, in run2
ret_val = gxapi_cy.WrapRGRD._run2(GXContext._get_tls_geo(), db, x.encode(), y.encode(), z.encode(), ctl.encode(), grd.encode())
File "gxapi_cy.pyx", line 54084, in gxapi_cy.WrapRGRD._run2
File "gxapi_cy.pyx", line 11118, in gxapi_cy._raise_on_gx_errors
geosoft.gxapi.GXAPIError: Unable to bind the "?iRun2_RGRD@@YAJPEAVH_GXX@@PEBJPEBD2222@Z" wrapper function. This might be due to a missing DLL or license, or you are running an application outside of Oasis montaj.

Process finished with exit code 1



Tagged:

Comments