Welcome to Golden Software Support

how can I skip header when grid a data file?

Comments

2 comments

  • Official comment
    Avatar
    Justine Carstairs

    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 Permalink
  • Avatar
    Y.C.Wong

    Thank a lot! I use the surfer object hierarchy in the online help.And those can be used in Python way! Now I can handle many features of surfer with Python.

     

    0
    Comment actions Permalink

Please sign in to leave a comment.