GX Developer - Creating a new string channel in python
SandTeam
Unconfirmed Posts: 4
in GX Developer
Hello,
I have a script which generates a pd channel with string data. When i try to make a new channel in the database it only allows byte or double. Is there a was to put string data e.g. dipole into the database via python GX?
I am using Oasis montaj 2025.1
Tagged:
0
Answers
-
@ArtemGorbunov @EmilNielsen have any of you encountered this and been able to resolve?
0 -
Hi SandTeam
Maybe these lines can help.
import geosoft.gxpy.gdb as gxgdb
gxp = gxpy.gx.GXpy()
gdbPath = r'c:\GeosoftPY\test_str_channel.gdb'
gsdb = gxgdb.Geosoft_gdb.open(gdbPath)
gsdb.write_channel('L0','String',['A1','A2'],fid=(0.0, 1.0))
gsdb.close()1 -
Thank you! this works for me now!
1
Categories
- All Categories
- 5 Community
- 3 Get Started
- 16 Latest Releases
- 15 Member Spotlight
- 39 Learning
- 2 Products
- 1 Geology
- 535 Leapfrog
- 1 Volsung
- 26 Visible Geology
- Data Management & Collaboration
- 14 MX Deposit
- 13 Central
- 9 Imago
- Geotechnical
- 136 GeoStudio
- Geophysics
- 319 Oasis montaj
- 1 Workbench
- SPIA
- 9 Res2DInv & Res3DInv
- 3 Evo
- 26 GX Developer

