how can I skip header when grid a data file?
I'm trying to do surfer automation with python.I've found a python script in surfer sample directory which grids a data file ands add a contour:
app.GridData (DataFile=DataFile,
Algorithm = win32com.client.constants.srfMinCurvature,
NumRows=150, NumCols=150, ShowReport=False, OutGrid= OutFile)
Is there any argument for skipping header in GridData function?
Besides can I found any all-sided document about surfer automation APIs anywhere?Thanks!
-
Official comment
Hello,
Although Surfer can be run using Python, we do not explicitly support this so are unable to provide any support for scripting in this language. We do support automation of Surfer using Scripter, so I will answer your question with reference to this language.
The GridData method has been superseded by GridData4, which allows you to specify DataFileOptions such as excluding header rows. The StartRow option allows you to specify which line to begin data import on. The lines of code might look something like this:
SurferApp.GridData4(DataFile:="c:\temp\book1.xlsx",DataFileOptions:="StartRow=3", Algorithm:=srfKriging, ShowReport:=False, OutGrid:="c:\temp\sheet2.grd")
Surfer does not have an API, but you can run it using any ActiveX compatible language. For support documentation, please refer to our Online Help and Automation Knowledge Base.
Thanks.
Justine
Golden Software
Comment actions
Please sign in to leave a comment.
Comments
2 comments